MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / drivers / net / wireless / rtlink / Utility / hiddenssiddlg.cpp
blob8c20fb2dcdcb10651b690a4e8add3060b0159fad
1 /****************************************************************************
2 ** Form implementation generated from reading ui file 'hiddenssiddlg.ui'
3 **
4 ** Created: Tue Dec 23 18:23:18 2003
5 ** by: The User Interface Compiler (uic)
6 **
7 ** WARNING! All changes made in this file will be lost!
8 ****************************************************************************/
9 #include "hiddenssiddlg.h"
11 #include <qvariant.h>
12 #include <qlabel.h>
13 #include <qlineedit.h>
14 #include <qpushbutton.h>
15 #include <qlayout.h>
16 #include <qtooltip.h>
17 #include <qwhatsthis.h>
18 #include <qmessagebox.h>
20 /*
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 )
30 if ( !name )
31 setName( "HiddenSsidDlg" );
32 resize( 350, 115 );
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() ) );
56 m_isClickOk = FALSE;
59 /*
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()
74 return (m_isClickOk);
77 void HiddenSsidDlg::OnCancel()
79 m_isClickOk = FALSE;
80 close();
83 void HiddenSsidDlg::OnOK()
85 QString qstr;
87 qstr = LineEdit_SSID->text();
88 if (qstr.isEmpty())
90 QMessageBox::warning(this, "Warning", "Please manually config SSID");
91 return;
94 m_isClickOk = TRUE;
95 close();