gambas-source-code/gb.gtk/src/gapplication.h
Benoît Minisini c17951fcd3 [DEVELOPMENT ENVIRONMENT]
* BUG: Use the new Begins and Ends operators instead of Like where it was 
  necessary or faster.

[INTERPRETER]
* BUG: The &/ operator keeps only one slash if both the last character of 
  the left string and the first character of the right string is a slash.
* NEW: 'Begins' is a new string operator that checks if the beginning of a 
  string is equal to another string.
* NEW: 'Ends' is a new string operator that checks if the end of a string 
  is equal to another string.
* BUG: Errors raised by Eval() are correctly displayed again.
* NEW: The 'Like' operator has a new pattern: '{x,y,...}' tests if a 
  string matches one of the strings between square brackets, each one being
  separated by a comma.

[GB.DB.FORM]
* BUG: Use the new Begins and Ends operators instead of Like where it was 
  necessary or faster.

[GB.DESKTOP]
* BUG: Use the new Begins and Ends operators instead of Like where it was 
  necessary or faster.

[GB.GTK]
* BUG: Modal windows do not block mouse, keyboard, enter and leave events 
  anymore.

[GB.FORM]
* BUG: Use the new Begins and Ends operators instead of Like where it was 
  necessary or faster.

[GB.FORM.MDI]
* BUG: Use the new Begins and Ends operators instead of Like where it was 
  necessary or faster.

[GB.WEB]
* BUG: Use the new Begins and Ends operators instead of Like where it was 
  necessary or faster.


git-svn-id: svn://localhost/gambas/trunk@2365 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-09-27 09:28:52 +00:00

83 lines
2.4 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 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;
};
#endif