gambas-source-code/gb.gtk/src/gapplication.h
Benoît Minisini 855acf8d4d [WIKI CGI SCRIPT]
* NEW: Display the list of all undocumented symbols.

[GB.FORM]
* BUG: Fix the behaviour of automatic expanding in the DirView control.
* NEW: Hide DatePicker and MessageLabel controls. They have many problems,
  and I want to see if someone use them.

[GB.GTK]
* BUG: Popup menus now work correctly on tray icons in all cases.
* NEW: TabStrip.Closable is a new property to display little close buttons 
  beside each tab label. When this button is clicked, a Close event is 
  raised, taking the tab index as argument.

[GB.QT4]
* NEW: TabStrip.Closable is a new property to display little close buttons 
  beside each tab label. When this button is clicked, a Close event is 
  raised, taking the tab index as argument.


git-svn-id: svn://localhost/gambas/trunk@3084 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-08-01 00:09:06 +00:00

87 lines
2.6 KiB
C++

/***************************************************************************
gapplication.h
(c) 2000-2009 Benoît Minisini <gambas@users.sourceforge.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
***************************************************************************/
#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 int toolTipsDelay() { return _tooltip_delay; }
static void setToolTipsDelay(int v);
static void setDefaultTitle(const char *title);
static char *defaultTitle() { return _title; }
static void setDirty();
static int loopLevel() { return _loopLevel; }
static void enterLoop(void *owner, bool showIt = false);
static void exitLoop(void *owner);
static bool hasLoop(void *owner) { return _loop_owner == owner; }
static GtkWindowGroup *enterGroup();
static void exitGroup(GtkWindowGroup *oldGroup);
static guint32 lastEventTime() { return _event_time; }
static void updateLastEventTime(GdkEvent *e);
static bool (*onKeyEvent)(int type);
//"Private"
static GtkTooltips *tipHandle();
static bool _busy;
static char *_title;
static int _loopLevel;
static int _tooltip_delay;
static void *_loop_owner;
static GtkWindowGroup *_group;
static GtkWindowGroup *currentGroup();
//static void dispatchEnterLeave(gControl *enter);
static gControl *_enter;
static gControl *_leave;
static guint32 _event_time;
static bool _close_next_window;
};
#endif