blob: d749576378cb3b82caf70e97f8bef8889e62ac9d (
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 <tqcheckbox.h>
#include <tqgroupbox.h>
#include <tqlabel.h>
#include <tqlayout.h>
#include <tqradiobutton.h>
#include <tqtooltip.h>
#include <tqwhatsthis.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(TQWidget *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:
TQVBoxLayout* mainLayout;
TQHBoxLayout* buttonsLayout;
TQSpacerItem* buttonsSpacer;
TQSpacerItem* widgetHSpacer;
bool _modified;
bool _advanced;
protected slots:
void toggleApplyButtonSlot( const TQString & );
void toggleApplyButtonSlot( int );
void toggleAdvancedOptionsSlot(bool enabled );
void verifyDeviceInfoSlot();
void advancedOptionsSlot();
void cancelSlot();
};
#endif
|