KVIrc 5.2.6
Developer APIs
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
31class QGridLayout;
32class QPushButton;
33
34class OptionsWidgetContainer : public QDialog
35{
36 Q_OBJECT
37public:
38 OptionsWidgetContainer(QWidget * par, bool bModal = false);
40
41protected:
43 QPushButton * m_pCancel = nullptr;
44 QGridLayout * m_pLayout = nullptr;
45
46public:
47 void setup(KviOptionsWidget * w);
48 void setLeftCornerWidget(QWidget * pWidget);
49 void setNextToLeft(QWidget * pWidget);
50
51protected:
52 void closeEvent(QCloseEvent * e) override;
53 void showEvent(QShowEvent * e) override;
54 void childEvent(QChildEvent * e) override;
55 void reject() override;
56protected slots:
57 void okClicked();
58 void cancelClicked();
60};
61
62#endif //_CONTAINER_H_
Definition KviOptionsWidget.h:40
QGridLayout * m_pLayout
Definition OptionsWidgetContainer.h:44
void okClicked()
Definition OptionsWidgetContainer.cpp:158
void childEvent(QChildEvent *e) override
Definition OptionsWidgetContainer.cpp:80
~OptionsWidgetContainer()
Definition OptionsWidgetContainer.cpp:55
void setNextToLeft(QWidget *pWidget)
Definition OptionsWidgetContainer.cpp:68
QPushButton * m_pCancel
Definition OptionsWidgetContainer.h:43
void closeEvent(QCloseEvent *e) override
Definition OptionsWidgetContainer.cpp:135
void showEvent(QShowEvent *e) override
Definition OptionsWidgetContainer.cpp:141
void optionsWidgetDestroyed()
Definition OptionsWidgetContainer.cpp:75
void setup(KviOptionsWidget *w)
Definition OptionsWidgetContainer.cpp:97
OptionsWidgetContainer(QWidget *par, bool bModal=false)
Definition OptionsWidgetContainer.cpp:44
void cancelClicked()
Definition OptionsWidgetContainer.cpp:166
KviOptionsWidget * m_pOptionsWidget
Definition OptionsWidgetContainer.h:42
void reject() override
Definition OptionsWidgetContainer.cpp:153
void setLeftCornerWidget(QWidget *pWidget)
Definition OptionsWidgetContainer.cpp:61
#define e
Definition detector.cpp:70
#define w
Definition detector.cpp:88