kalarm Library API Documentation

mainwindowbase.h

00001 /*
00002  *  mainwindowbase.h  -  base class for main application windows
00003  *  Program:  kalarm
00004  *  (C) 2002 by David Jarvie  software@astrojar.org.uk
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019  */
00020 
00021 #ifndef MAINWINDOWBASE_H
00022 #define MAINWINDOWBASE_H
00023 
00024 #include <kmainwindow.h>
00025 
00026 
00027 class MainWindowBase : public KMainWindow
00028 {
00029                 Q_OBJECT
00030 
00031         public:
00032                 MainWindowBase(QWidget* parent = 0, const char* name = 0, WFlags f = WType_TopLevel | WDestructiveClose)
00033                                     : KMainWindow(parent, name, f), disableQuit(false) { }
00034 
00035         protected:
00036                 virtual void closeEvent(QCloseEvent*);
00037                 virtual bool queryExit();
00038 
00039         private:
00040                 bool  disableQuit;       // allow the application to quit
00041 };
00042 
00043 #endif // MAINWINDOWBASE_H
00044 
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:26 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001