gambas-source-code/gb.qt4/src/CMessage.h
Benoît Minisini 026c739f3d [DEVELOPMENT ENVIRONMENT]
* NEW: New control property type "Menu", for properties that receive a 
  popup menu name.
* NEW: New paste button with a menu in the code editor.

[GB.FORM]
* NEW: A new control, MenuButton, that is a ToolButton with a little arrow
  and a popup menu attached.

[GB.FORM.MDI]
* BUG: Some fixes in shortcut editing in the shortcut configuration dialog.
* BUG: The toolbar configuration works correctly again.

[GB.IMAGE.IMLIB]
* BUG: Image.Blur() and Image.Sharpen() now have the same signature as 
  their counterpart in gb.image.effect.
* BUG: Image.Draw() works correctly now.

[GB.QT4]
* BUG: Do not quit the application while a message box is displayed.
* BUG: Window.Center() works correctly now.
* BUG: Do not delay ScrollView contents layouting, otherwise it is done 
  when the widget is visible, which is not pretty.


git-svn-id: svn://localhost/gambas/trunk@2319 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-09-08 12:22:03 +00:00

63 lines
1.3 KiB
C++

/***************************************************************************
CMessage.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 __CMESSAGE_H
#define __CMESSAGE_H
#include <qobject.h>
#include <qmessagebox.h>
//Added by qt3to4:
#include <QEvent>
#include "gambas.h"
#ifndef __CMESSAGE_CPP
extern GB_DESC CMessageDesc[];
#else
enum {
MSG_INFO = 0,
MSG_WARNING = 1,
MSG_QUESTION = 2,
MSG_ERROR = 3,
MSG_DELETE = 4
};
#endif
class CMessage : public QObject
{
Q_OBJECT
public:
static CMessage manager;
protected:
bool eventFilter(QObject *, QEvent *);
};
#endif