summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-03-13 02:49:01 (UTC)
committer llornkcor <llornkcor>2002-03-13 02:49:01 (UTC)
commitad4f318f600a00905d45a780cd100bcf1e08efaa (patch) (unidiff)
tree37365b4b994057b36223663d0d6e7454e9dd6965
parentfac27f0d83dd361e27bacdf552932c9ea60e66e8 (diff)
downloadopie-ad4f318f600a00905d45a780cd100bcf1e08efaa.zip
opie-ad4f318f600a00905d45a780cd100bcf1e08efaa.tar.gz
opie-ad4f318f600a00905d45a780cd100bcf1e08efaa.tar.bz2
took out my testing defaults
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieftp/opieftp.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp
index 0cdac79..523a36c 100644
--- a/noncore/net/opieftp/opieftp.cpp
+++ b/noncore/net/opieftp/opieftp.cpp
@@ -125,71 +125,75 @@ OpieFtp::OpieFtp( )
125 Remote_View->setGeometry( QRect( 3, 2, 225, 195 ) ); 125 Remote_View->setGeometry( QRect( 3, 2, 225, 195 ) );
126 Remote_View->addColumn( "File",120); 126 Remote_View->addColumn( "File",120);
127 Remote_View->addColumn( "Size",-1); 127 Remote_View->addColumn( "Size",-1);
128 Remote_View->setColumnAlignment(1,QListView::AlignRight); 128 Remote_View->setColumnAlignment(1,QListView::AlignRight);
129 Remote_View->addColumn( "Date",-1); 129 Remote_View->addColumn( "Date",-1);
130 Remote_View->setColumnAlignment(2,QListView::AlignRight); 130 Remote_View->setColumnAlignment(2,QListView::AlignRight);
131 Remote_View->setAllColumnsShowFocus(TRUE); 131 Remote_View->setAllColumnsShowFocus(TRUE);
132 QPEApplication::setStylusOperation( Remote_View->viewport(),QPEApplication::RightOnHold); 132 QPEApplication::setStylusOperation( Remote_View->viewport(),QPEApplication::RightOnHold);
133 133
134 connect( Remote_View, SIGNAL( doubleClicked( QListViewItem*)), 134 connect( Remote_View, SIGNAL( doubleClicked( QListViewItem*)),
135 this,SLOT( remoteListClicked(QListViewItem *)) ); 135 this,SLOT( remoteListClicked(QListViewItem *)) );
136 connect( Remote_View, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int)), 136 connect( Remote_View, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int)),
137 this,SLOT( RemoteListPressed(int, QListViewItem *, const QPoint&, int)) ); 137 this,SLOT( RemoteListPressed(int, QListViewItem *, const QPoint&, int)) );
138 138
139 TabWidget->insertTab( tab_2, tr( "Remote" ) ); 139 TabWidget->insertTab( tab_2, tr( "Remote" ) );
140 140
141 tab_3 = new QWidget( TabWidget, "tab_3" ); 141 tab_3 = new QWidget( TabWidget, "tab_3" );
142 142
143 TextLabel1 = new QLabel( tab_3, "TextLabel1" ); 143 TextLabel1 = new QLabel( tab_3, "TextLabel1" );
144 TextLabel1->setGeometry( QRect( 10, 10, 60, 16 ) ); 144 TextLabel1->setGeometry( QRect( 10, 10, 60, 16 ) );
145 TextLabel1->setText( tr( "Username" ) ); 145 TextLabel1->setText( tr( "Username" ) );
146 UsernameComboBox = new QComboBox( FALSE, tab_3, "UsernameComboBox" ); 146 UsernameComboBox = new QComboBox( FALSE, tab_3, "UsernameComboBox" );
147 UsernameComboBox->setGeometry( QRect( 10, 25, 196, 21 ) ); 147 UsernameComboBox->setGeometry( QRect( 10, 25, 196, 21 ) );
148 UsernameComboBox->setEditable(TRUE); 148 UsernameComboBox->setEditable(TRUE);
149 UsernameComboBox->lineEdit()->setText("llornkcor"); 149 UsernameComboBox->lineEdit()->setText("anonymous");
150// UsernameComboBox->lineEdit()->setText("llornkcor");
150 151
151 TextLabel2 = new QLabel( tab_3, "TextLabel2" ); 152 TextLabel2 = new QLabel( tab_3, "TextLabel2" );
152 TextLabel2->setGeometry( QRect( 10, 50, 65, 16 ) ); 153 TextLabel2->setGeometry( QRect( 10, 50, 65, 16 ) );
153 TextLabel2->setText( tr( "Password" ) ); 154 TextLabel2->setText( tr( "Password" ) );
154 PasswordEdit = new QLineEdit( "", tab_3, "PasswordComboBox" ); 155 PasswordEdit = new QLineEdit( "", tab_3, "PasswordComboBox" );
155 PasswordEdit->setGeometry( QRect( 10, 65, 195, 16 ) ); 156 PasswordEdit->setGeometry( QRect( 10, 65, 195, 16 ) );
156 PasswordEdit->setEchoMode(QLineEdit::Password); 157 PasswordEdit->setEchoMode(QLineEdit::Password);
158 PasswordEdit->setText( tr( "me@opieftp.org" ) );
157 159
158 TextLabel3 = new QLabel( tab_3, "TextLabel3" ); 160 TextLabel3 = new QLabel( tab_3, "TextLabel3" );
159 TextLabel3->setGeometry( QRect( 10, 90, 95, 16 ) ); 161 TextLabel3->setGeometry( QRect( 10, 90, 95, 16 ) );
160 TextLabel3->setText( tr( "Remote server" ) ); 162 TextLabel3->setText( tr( "Remote server" ) );
161 ServerComboBox = new QComboBox( FALSE, tab_3, "ServerComboBox" ); 163 ServerComboBox = new QComboBox( FALSE, tab_3, "ServerComboBox" );
162 ServerComboBox->setGeometry( QRect( 10, 105, 195, 21 ) ); 164 ServerComboBox->setGeometry( QRect( 10, 105, 195, 21 ) );
163 ServerComboBox->setEditable(TRUE); 165 ServerComboBox->setEditable(TRUE);
164 ServerComboBox->lineEdit()->setText( tr( "llornkcor.com" ) ); 166 ServerComboBox->lineEdit()->setText( tr( "" ) );
167// ServerComboBox->lineEdit()->setText( tr( "llornkcor.com" ) );
165 168
166 QLabel *TextLabel5 = new QLabel( tab_3, "TextLabel5" ); 169 QLabel *TextLabel5 = new QLabel( tab_3, "TextLabel5" );
167 TextLabel5->setGeometry( QRect( 10, 130, 95, 16 ) ); 170 TextLabel5->setGeometry( QRect( 10, 130, 95, 16 ) );
168 TextLabel5->setText( tr( "Remote path" ) ); 171 TextLabel5->setText( tr( "Remote path" ) );
169 remotePath = new QLineEdit( "/", tab_3, "remotePath" ); 172 remotePath = new QLineEdit( "/", tab_3, "remotePath" );
170 remotePath->setGeometry( QRect( 10, 145, 195, 16 ) ); 173 remotePath->setGeometry( QRect( 10, 145, 195, 16 ) );
171 remotePath->setText( currentRemoteDir = "/home/llornkcor/"); 174 remotePath->setText( currentRemoteDir = "/");
175// remotePath->setText( currentRemoteDir = "/home/llornkcor/");
172 176
173 TextLabel4 = new QLabel( tab_3, "TextLabel4" ); 177 TextLabel4 = new QLabel( tab_3, "TextLabel4" );
174 TextLabel4->setGeometry( QRect( 10, 170, 30, 21 ) ); 178 TextLabel4->setGeometry( QRect( 10, 170, 30, 21 ) );
175 TextLabel4->setText( tr( "Port" ) ); 179 TextLabel4->setText( tr( "Port" ) );
176 PortSpinBox = new QSpinBox( tab_3, "PortSpinBox" ); 180 PortSpinBox = new QSpinBox( tab_3, "PortSpinBox" );
177 PortSpinBox->setGeometry( QRect( 40, 175, 75, 20 ) ); 181 PortSpinBox->setGeometry( QRect( 40, 175, 75, 20 ) );
178 PortSpinBox->setButtonSymbols( QSpinBox::UpDownArrows ); 182 PortSpinBox->setButtonSymbols( QSpinBox::UpDownArrows );
179 PortSpinBox->setMaxValue(32786); 183 PortSpinBox->setMaxValue(32786);
180 PortSpinBox->setValue( 21); 184 PortSpinBox->setValue( 21);
181 185
182 TabWidget->insertTab( tab_3, tr( "Config" ) ); 186 TabWidget->insertTab( tab_3, tr( "Config" ) );
183 187
184 connect(TabWidget,SIGNAL(currentChanged(QWidget *)), 188 connect(TabWidget,SIGNAL(currentChanged(QWidget *)),
185 this,SLOT(tabChanged(QWidget*))); 189 this,SLOT(tabChanged(QWidget*)));
186 190
187 currentDir.setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All); 191 currentDir.setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All);
188 currentDir.setPath( QDir::currentDirPath()); 192 currentDir.setPath( QDir::currentDirPath());
189// currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); 193// currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst);
190 currentPathEdit = new QLineEdit( "/", this, "currentPathEdit" ); 194 currentPathEdit = new QLineEdit( "/", this, "currentPathEdit" );
191 currentPathEdit->setGeometry( QRect( 5, 248, 220, 18 ) ); 195 currentPathEdit->setGeometry( QRect( 5, 248, 220, 18 ) );
192 currentPathEdit->setText( currentDir.canonicalPath()); 196 currentPathEdit->setText( currentDir.canonicalPath());
193 connect( currentPathEdit,SIGNAL(returnPressed()),this,SLOT(currentPathEditChanged())); 197 connect( currentPathEdit,SIGNAL(returnPressed()),this,SLOT(currentPathEditChanged()));
194 198
195 filterStr="*"; 199 filterStr="*";