1 /****************************************************************************
2 ** Form implementation generated from reading ui file 'hiddenssiddlg.ui'
4 ** Created: Tue Dec 23 18:23:18 2003
5 ** by: The User Interface Compiler (uic)
7 ** WARNING! All changes made in this file will be lost!
8 ****************************************************************************/
9 #include "hiddenssiddlg.h"
13 #include <qlineedit.h>
14 #include <qpushbutton.h>
17 #include <qwhatsthis.h>
18 #include <qmessagebox.h>
21 * Constructs a HiddenSsidDlg which is a child of 'parent', with the
22 * name 'name' and widget flags set to 'f'.
24 * The dialog will by default be modeless, unless you set 'modal' to
25 * TRUE to construct a modal dialog.
27 HiddenSsidDlg::HiddenSsidDlg( QWidget
* parent
, const char* name
, bool modal
, WFlags fl
)
28 : QDialog( parent
, name
, modal
, fl
)
31 setName( "HiddenSsidDlg" );
33 setMinimumSize( 350, 115 );
34 setMaximumSize( 350, 115 );
35 setCaption("Hidden SSID");
37 TextLabel1
= new QLabel( this, "TextLabel1" );
38 TextLabel1
->setGeometry( QRect( 10, 8, 330, 31 ) );
39 TextLabel1
->setText("This AP use hidden SSID, please manually config SSID");
41 LineEdit_SSID
= new QLineEdit( this, "LineEdit_SSID" );
42 LineEdit_SSID
->setGeometry( QRect( 10, 40, 330, 30 ) );
43 LineEdit_SSID
->setMaxLength(32);
45 PushButton_OK
= new QPushButton( this, "PushButton_OK" );
46 PushButton_OK
->setGeometry( QRect( 47, 80, 100, 30 ) );
47 PushButton_OK
->setText("&Ok");
49 PushButton_Cancel
= new QPushButton( this, "PushButton_Cancel" );
50 PushButton_Cancel
->setGeometry( QRect( 205, 80, 90, 30 ) );
51 PushButton_Cancel
->setText("&Cancel");
53 connect( PushButton_OK
, SIGNAL( clicked() ), this, SLOT( OnOK() ) );
54 connect( PushButton_Cancel
, SIGNAL( clicked() ), this, SLOT( OnCancel() ) );
60 * Destroys the object and frees any allocated resources
62 HiddenSsidDlg::~HiddenSsidDlg()
64 // no need to delete child widgets, Qt does it all for us
67 QString
HiddenSsidDlg::GetSsidString()
69 return (LineEdit_SSID
->text());
72 bool HiddenSsidDlg::IsClickOk()
77 void HiddenSsidDlg::OnCancel()
83 void HiddenSsidDlg::OnOK()
87 qstr
= LineEdit_SSID
->text();
90 QMessageBox::warning(this, "Warning", "Please manually config SSID");