blob: 5b1f6a6c20edd2a95f0ea4b60b33aebf3a9eff1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
/***************************************************************************
kadddevicecontainer.h - description
-------------------
begin : Wed Jun 15 00:40:33 UTC 2005
copyright : (C) 2005 by Juan Luis Baptiste
email : juan.baptiste@kdemail.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 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef KADDDEVICECONTAINER_H
#define KADDDEVICECONTAINER_H
#include <qcheckbox.h>
#include <qgroupbox.h>
#include <qlabel.h>
#include <qlayout.h>
#include <qradiobutton.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <kcombobox.h>
#include <kdialog.h>
#include <kiconloader.h>
#include <klineedit.h>
#include <kpassdlg.h>
#include <klocale.h>
#include <kmessagebox.h>
#include <kpushbutton.h>
#include "kadddevicedlg.h"
#include "kadddevicedlgextension.h"
#include "kadddevicewifiext.h"
#include "kaddressvalidator.h"
/**
Network interface configuration dialog. This dialog contains the KAddDeviceDlg and KAddDeviceWifiExt widgets.
@author Juan Luis Baptiste
*/
class KAddDeviceContainer : public KDialog
{
Q_OBJECT
public:
KAddDeviceContainer(QWidget *parent = 0, const char *name = 0);
~KAddDeviceContainer();
KPushButton* kpbAdvanced;
KPushButton* kpbApply;
KPushButton* kpbCancel;
void addButtons();
KAddDeviceDlg *addDlg;
KAddDeviceWifiExt *extDlg;
void addWirelessWidget();
bool modified();
bool advanced();
private:
void makeButtonsResizeable();
protected:
QVBoxLayout* mainLayout;
QHBoxLayout* buttonsLayout;
QSpacerItem* buttonsSpacer;
QSpacerItem* widgetHSpacer;
bool _modified;
bool _advanced;
protected slots:
void toggleApplyButtonSlot( const QString & );
void toggleApplyButtonSlot( int );
void toggleAdvancedOptionsSlot(bool enabled );
void verifyDeviceInfoSlot();
void advancedOptionsSlot();
void cancelSlot();
};
#endif
|