KVIrc  4.9.2
DeveloperAPIs
OptionsWidgetContainer.h
Go to the documentation of this file.
1 #ifndef _CONTAINER_H_
2 #define _CONTAINER_H_
3 //=============================================================================
4 //
5 // File : OptionsWidgetContainer.h
6 // Creation date : Wed Nov 21 17:09:50 2001 GMT by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 2001-208 Szymon Stefanek (pragma at kvirc dot net)
10 //
11 // This program is FREE software. You can redistribute it and/or
12 // modify it under the terms of the GNU General Public License
13 // as published by the Free Software Foundation; either version 2
14 // of the License, or (at your option) any later version.
15 //
16 // This program is distributed in the HOPE that it will be USEFUL,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 // See the GNU General Public License for more details.
20 //
21 // You should have received a copy of the GNU General Public License
22 // along with this program. If not, write to the Free Software Foundation,
23 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 //
25 //=============================================================================
26 
27 #include "KviOptionsWidget.h"
28 
29 #include <QDialog>
30 
31 class QPushButton;
32 class QGridLayout;
33 
34 class OptionsWidgetContainer : public QDialog
35 {
36  Q_OBJECT
37 public:
38  OptionsWidgetContainer(QWidget * par, bool bModal = false);
40 
41 protected:
43  QPushButton * m_pCancel;
44  QGridLayout * m_pLayout;
45 
46 public:
47  void setup(KviOptionsWidget * w);
48  void setLeftCornerWidget(QWidget * pWidget);
49  void setNextToLeft(QWidget * pWidget);
50 
51 protected:
52  virtual void closeEvent(QCloseEvent * e);
53  virtual void showEvent(QShowEvent * e);
54  virtual void childEvent(QChildEvent * e);
55  virtual void reject();
56 protected slots:
57  void okClicked();
58  void cancelClicked();
60 };
61 
62 #endif //_CONTAINER_H_
void setup(KviOptionsWidget *w)
Definition: OptionsWidgetContainer.cpp:99
void setLeftCornerWidget(QWidget *pWidget)
Definition: OptionsWidgetContainer.cpp:63
virtual void showEvent(QShowEvent *e)
Definition: OptionsWidgetContainer.cpp:143
QPushButton * m_pCancel
Definition: OptionsWidgetContainer.h:43
void optionsWidgetDestroyed()
Definition: OptionsWidgetContainer.cpp:77
void setNextToLeft(QWidget *pWidget)
Definition: OptionsWidgetContainer.cpp:70
void okClicked()
Definition: OptionsWidgetContainer.cpp:160
virtual void closeEvent(QCloseEvent *e)
Definition: OptionsWidgetContainer.cpp:137
#define e
Definition: detector.cpp:69
Definition: KviOptionsWidget.h:40
Definition: OptionsWidgetContainer.h:34
KviOptionsWidget * m_pOptionsWidget
Definition: OptionsWidgetContainer.h:42
QGridLayout * m_pLayout
Definition: OptionsWidgetContainer.h:44
void cancelClicked()
Definition: OptionsWidgetContainer.cpp:168
~OptionsWidgetContainer()
Definition: OptionsWidgetContainer.cpp:57
#define w
Definition: detector.cpp:87
virtual void childEvent(QChildEvent *e)
Definition: OptionsWidgetContainer.cpp:82
virtual void reject()
Definition: OptionsWidgetContainer.cpp:155
OptionsWidgetContainer(QWidget *par, bool bModal=false)
Definition: OptionsWidgetContainer.cpp:44