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