44 lines
874 B
C
44 lines
874 B
C
|
#ifndef __GAPPLICATION_H
|
||
|
#define __GAPPLICATION_H
|
||
|
|
||
|
class gControl;
|
||
|
class gMainWindow;
|
||
|
|
||
|
class gApplication
|
||
|
{
|
||
|
public:
|
||
|
static void init(int *argc, char ***argv);
|
||
|
static void quit();
|
||
|
static void exit();
|
||
|
|
||
|
static int controlCount();
|
||
|
|
||
|
static gControl* controlItem(int index);
|
||
|
static gControl* controlItem(GtkWidget *wid);
|
||
|
|
||
|
static void setBusy(bool b);
|
||
|
static bool isBusy() { return _busy; }
|
||
|
|
||
|
static void suspendEvents(bool vl);
|
||
|
static void enableEvents();
|
||
|
static bool userEvents();
|
||
|
static bool allEvents();
|
||
|
|
||
|
static void enableTooltips(bool vl);
|
||
|
static bool toolTips();
|
||
|
static gFont* toolTipsFont();
|
||
|
static void setToolTipsFont(gFont *ft);
|
||
|
|
||
|
static void setDefaultTitle(const char *title);
|
||
|
static char *defaultTitle() { return _title; }
|
||
|
|
||
|
static void setDirty();
|
||
|
|
||
|
//"Private"
|
||
|
static GtkTooltips *tipHandle();
|
||
|
static bool _busy;
|
||
|
static char *_title;
|
||
|
};
|
||
|
|
||
|
#endif
|