summaryrefslogtreecommitdiff
path: root/noncore/net/opie-smb/qsmbbase.cpp
blob: 21cd30658bdcfa10b5f1523db93301473c766bd6 (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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
/****************************************************************************
** Form implementation generated from reading ui file 'qsmbbase.ui'
**
** Created: Thu Aug 11 19:30:44 2005
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "qsmbbase.h"

#include <qcheckbox.h>
#include <qcombobox.h>
#include <qheader.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qlistview.h>
#include <qpushbutton.h>
#include <qtabwidget.h>
#include <qtextview.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  Constructs a FormQPESMBBase which is a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f' 
 */
FormQPESMBBase::FormQPESMBBase( QWidget* parent,  const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "FormQPESMBBase" );
    resize( 254, 352 ); 
    QFont f( font() );
    setFont( f ); 
    setCaption( tr( "Opie Smb" ) );
    FormQPESMBBaseLayout = new QGridLayout( this ); 
    FormQPESMBBaseLayout->setSpacing( 2 );
    FormQPESMBBaseLayout->setMargin( 0 );

    TabWidget2 = new QTabWidget( this, "TabWidget2" );

    tab = new QWidget( TabWidget2, "tab" );
    tabLayout = new QGridLayout( tab ); 
    tabLayout->setSpacing( 0 );
    tabLayout->setMargin( 2 );

    CBHost = new QComboBox( FALSE, tab, "CBHost" );

    tabLayout->addMultiCellWidget( CBHost, 1, 1, 0, 3 );

    mountpt = new QComboBox( FALSE, tab, "mountpt" );

    tabLayout->addMultiCellWidget( mountpt, 4, 4, 1, 3 );

    LScan = new QLabel( tab, "LScan" );
    LScan->setText( tr( "" ) );

    tabLayout->addWidget( LScan, 0, 3 );

    textLabel1 = new QLabel( tab, "textLabel1" );
    textLabel1->setText( tr( "mount pt:" ) );

    tabLayout->addWidget( textLabel1, 4, 0 );

    ListViewScan = new QListView( tab, "ListViewScan" );
    ListViewScan->addColumn( tr( "Shares" ) );

    tabLayout->addMultiCellWidget( ListViewScan, 2, 2, 0, 3 );

    BtnScan = new QPushButton( tab, "BtnScan" );
    BtnScan->setText( tr( "&Scan" ) );

    tabLayout->addMultiCellWidget( BtnScan, 0, 0, 0, 1 );

    BtnClear = new QPushButton( tab, "BtnClear" );
    BtnClear->setText( tr( "&Clear" ) );

    tabLayout->addWidget( BtnClear, 0, 2 );

    onbootBtn = new QCheckBox( tab, "onbootBtn" );
    onbootBtn->setText( tr( "Reconnect on boot" ) );

    tabLayout->addMultiCellWidget( onbootBtn, 3, 3, 0, 2 );

    DoItBtn = new QPushButton( tab, "DoItBtn" );
    DoItBtn->setText( tr( "&Login" ) );

    tabLayout->addMultiCellWidget( DoItBtn, 5, 5, 0, 1 );

    Layout6 = new QGridLayout; 
    Layout6->setSpacing( 6 );
    Layout6->setMargin( 0 );

    Layout2 = new QHBoxLayout; 
    Layout2->setSpacing( 6 );
    Layout2->setMargin( 0 );

    pwdlabel = new QLabel( tab, "pwdlabel" );
    pwdlabel->setText( tr( "password" ) );
    Layout2->addWidget( pwdlabel );

    password = new QLineEdit( tab, "password" );
    Layout2->addWidget( password );

    Layout6->addLayout( Layout2, 1, 0 );

    Layout5 = new QHBoxLayout; 
    Layout5->setSpacing( 6 );
    Layout5->setMargin( 0 );

    usrlabel = new QLabel( tab, "usrlabel" );
    usrlabel->setText( tr( "username" ) );
    Layout5->addWidget( usrlabel );

    username = new QLineEdit( tab, "username" );
    Layout5->addWidget( username );

    Layout6->addLayout( Layout5, 0, 0 );

    tabLayout->addMultiCellLayout( Layout6, 5, 5, 2, 3 );
    TabWidget2->insertTab( tab, tr( "Scan" ) );

    tab_2 = new QWidget( TabWidget2, "tab_2" );
    tabLayout_2 = new QGridLayout( tab_2 ); 
    tabLayout_2->setSpacing( 6 );
    tabLayout_2->setMargin( 11 );

    TextViewOutput = new QTextView( tab_2, "TextViewOutput" );
    TextViewOutput->setTextFormat( QTextView::PlainText );

    tabLayout_2->addWidget( TextViewOutput, 0, 0 );
    TabWidget2->insertTab( tab_2, tr( "SMB Output" ) );

    FormQPESMBBaseLayout->addWidget( TabWidget2, 0, 0 );
}

/*  
 *  Destroys the object and frees any allocated resources
 */
FormQPESMBBase::~FormQPESMBBase()
{
    // no need to delete child widgets, Qt does it all for us
}