author | llornkcor <llornkcor> | 2003-05-26 02:51:00 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-05-26 02:51:00 (UTC) |
commit | eaa924af86511fd43fc9eac5438e73972f82158b (patch) (unidiff) | |
tree | f6a0c07eba3951d50935ab1a7edccc95a1659949 | |
parent | 3fee41c94625fdef794a2eaabfc440cd01a1b11a (diff) | |
download | opie-eaa924af86511fd43fc9eac5438e73972f82158b.zip opie-eaa924af86511fd43fc9eac5438e73972f82158b.tar.gz opie-eaa924af86511fd43fc9eac5438e73972f82158b.tar.bz2 |
remove extra includes
-rw-r--r-- | noncore/net/opieftp/filePermissions.cpp | 4 | ||||
-rw-r--r-- | noncore/net/opieftp/inputDialog.cpp | 4 | ||||
-rw-r--r-- | noncore/net/opieftp/main.cpp | 4 | ||||
-rw-r--r-- | noncore/net/opieftp/opieftp.cpp | 14 |
4 files changed, 0 insertions, 26 deletions
diff --git a/noncore/net/opieftp/filePermissions.cpp b/noncore/net/opieftp/filePermissions.cpp index ab094db..f545c1f 100644 --- a/noncore/net/opieftp/filePermissions.cpp +++ b/noncore/net/opieftp/filePermissions.cpp | |||
@@ -1,88 +1,84 @@ | |||
1 | /**************************************************************************** | 1 | /**************************************************************************** |
2 | ** copyright 2002 ljp ljp@llornkcor.com | 2 | ** copyright 2002 ljp ljp@llornkcor.com |
3 | ** Created: Sat Feb 23 19:44:40 2002 L.J. Potter | 3 | ** Created: Sat Feb 23 19:44:40 2002 L.J. Potter |
4 | ** | 4 | ** |
5 | ** This file may be distributed and/or modified under the terms of the | 5 | ** This file may be distributed and/or modified under the terms of the |
6 | ** GNU General Public License version 2 as published by the Free Software | 6 | ** GNU General Public License version 2 as published by the Free Software |
7 | ** Foundation and appearing in the file LICENSE.GPL included in the | 7 | ** Foundation and appearing in the file LICENSE.GPL included in the |
8 | ** packaging of this file. | 8 | ** packaging of this file. |
9 | ** | 9 | ** |
10 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 10 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
11 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 11 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
12 | ** | 12 | ** |
13 | ****************************************************************************/ | 13 | ****************************************************************************/ |
14 | #include "filePermissions.h" | 14 | #include "filePermissions.h" |
15 | 15 | ||
16 | #include <qfile.h> | ||
17 | #include <qfileinfo.h> | 16 | #include <qfileinfo.h> |
18 | 17 | ||
19 | #include <qcheckbox.h> | 18 | #include <qcheckbox.h> |
20 | #include <qlabel.h> | 19 | #include <qlabel.h> |
21 | #include <qlineedit.h> | 20 | #include <qlineedit.h> |
22 | #include <qlayout.h> | ||
23 | #include <qvariant.h> | ||
24 | #include <qtooltip.h> | ||
25 | #include <qmessagebox.h> | 21 | #include <qmessagebox.h> |
26 | 22 | ||
27 | #include <unistd.h> | 23 | #include <unistd.h> |
28 | #include <sys/stat.h> | 24 | #include <sys/stat.h> |
29 | #include <stdlib.h> | 25 | #include <stdlib.h> |
30 | #include <sys/types.h> | 26 | #include <sys/types.h> |
31 | #include <pwd.h> | 27 | #include <pwd.h> |
32 | #include <grp.h> | 28 | #include <grp.h> |
33 | 29 | ||
34 | filePermissions::filePermissions( QWidget* parent, const char* name, bool modal, WFlags fl, const QString &fileName, bool useRemote ) | 30 | filePermissions::filePermissions( QWidget* parent, const char* name, bool modal, WFlags fl, const QString &fileName, bool useRemote ) |
35 | : QDialog( parent, name, modal, fl ) | 31 | : QDialog( parent, name, modal, fl ) |
36 | { | 32 | { |
37 | if ( !name ) | 33 | if ( !name ) |
38 | setName( tr("filePermissions") ); | 34 | setName( tr("filePermissions") ); |
39 | // qDebug("FilePermissions "+fileName); | 35 | // qDebug("FilePermissions "+fileName); |
40 | resize( 236, 210 ); | 36 | resize( 236, 210 ); |
41 | isRemote=useRemote; | 37 | isRemote=useRemote; |
42 | setMaximumSize( QSize( 236, 210 ) ); | 38 | setMaximumSize( QSize( 236, 210 ) ); |
43 | setCaption( tr( "Set File Permissions" ) ); | 39 | setCaption( tr( "Set File Permissions" ) ); |
44 | 40 | ||
45 | TextLabel1 = new QLabel( this, "TextLabel1" ); | 41 | TextLabel1 = new QLabel( this, "TextLabel1" ); |
46 | TextLabel1->setGeometry( QRect( 25, 5, 175, 20 ) ); | 42 | TextLabel1->setGeometry( QRect( 25, 5, 175, 20 ) ); |
47 | TextLabel1->setText( tr( "Set file permissions for:" ) ); | 43 | TextLabel1->setText( tr( "Set file permissions for:" ) ); |
48 | 44 | ||
49 | LineEdit1 = new QLineEdit( this, "LineEdit1" ); | 45 | LineEdit1 = new QLineEdit( this, "LineEdit1" ); |
50 | LineEdit1->setGeometry( QRect( 10, 25, 218, 22 ) ); | 46 | LineEdit1->setGeometry( QRect( 10, 25, 218, 22 ) ); |
51 | LineEdit1->setReadOnly(true); | 47 | LineEdit1->setReadOnly(true); |
52 | 48 | ||
53 | TextLabel4 = new QLabel( this, "TextLabel4" ); | 49 | TextLabel4 = new QLabel( this, "TextLabel4" ); |
54 | TextLabel4->setGeometry( QRect( 5, 85, 50, 15 ) ); | 50 | TextLabel4->setGeometry( QRect( 5, 85, 50, 15 ) ); |
55 | TextLabel4->setText( tr( "owner" ) ); | 51 | TextLabel4->setText( tr( "owner" ) ); |
56 | 52 | ||
57 | TextLabel4_2 = new QLabel( this, "TextLabel4_2" ); | 53 | TextLabel4_2 = new QLabel( this, "TextLabel4_2" ); |
58 | TextLabel4_2->setGeometry( QRect( 5, 105, 50, 15 ) ); | 54 | TextLabel4_2->setGeometry( QRect( 5, 105, 50, 15 ) ); |
59 | TextLabel4_2->setText( tr( "group" ) ); | 55 | TextLabel4_2->setText( tr( "group" ) ); |
60 | 56 | ||
61 | TextLabel4_3 = new QLabel( this, "TextLabel4_3" ); | 57 | TextLabel4_3 = new QLabel( this, "TextLabel4_3" ); |
62 | TextLabel4_3->setGeometry( QRect( 5, 125, 50, 15 ) ); | 58 | TextLabel4_3->setGeometry( QRect( 5, 125, 50, 15 ) ); |
63 | TextLabel4_3->setText( tr( "others" ) ); | 59 | TextLabel4_3->setText( tr( "others" ) ); |
64 | 60 | ||
65 | CheckBox1 = new QCheckBox( this, "CheckBox1" ); | 61 | CheckBox1 = new QCheckBox( this, "CheckBox1" ); |
66 | CheckBox1->setGeometry( QRect( 75, 85, 20, 16 ) ); | 62 | CheckBox1->setGeometry( QRect( 75, 85, 20, 16 ) ); |
67 | connect(CheckBox1, SIGNAL(released()),this,SLOT(ownReadCheck())); | 63 | connect(CheckBox1, SIGNAL(released()),this,SLOT(ownReadCheck())); |
68 | 64 | ||
69 | CheckBox1_2 = new QCheckBox( this, "CheckBox1_2" ); | 65 | CheckBox1_2 = new QCheckBox( this, "CheckBox1_2" ); |
70 | CheckBox1_2->setGeometry( QRect( 135, 85, 20, 16 ) ); | 66 | CheckBox1_2->setGeometry( QRect( 135, 85, 20, 16 ) ); |
71 | connect(CheckBox1_2, SIGNAL(released()),this,SLOT(ownWriteCheck())); | 67 | connect(CheckBox1_2, SIGNAL(released()),this,SLOT(ownWriteCheck())); |
72 | 68 | ||
73 | CheckBox1_3 = new QCheckBox( this, "CheckBox1_3" ); | 69 | CheckBox1_3 = new QCheckBox( this, "CheckBox1_3" ); |
74 | CheckBox1_3->setGeometry( QRect( 195, 85, 20, 16 ) ); | 70 | CheckBox1_3->setGeometry( QRect( 195, 85, 20, 16 ) ); |
75 | connect(CheckBox1_3, SIGNAL(released()),this,SLOT(ownExeCheck())); | 71 | connect(CheckBox1_3, SIGNAL(released()),this,SLOT(ownExeCheck())); |
76 | 72 | ||
77 | CheckBox1_4 = new QCheckBox( this, "CheckBox1_4" ); | 73 | CheckBox1_4 = new QCheckBox( this, "CheckBox1_4" ); |
78 | CheckBox1_4->setGeometry( QRect( 75, 105, 20, 16 ) ); | 74 | CheckBox1_4->setGeometry( QRect( 75, 105, 20, 16 ) ); |
79 | connect(CheckBox1_4, SIGNAL(released()),this,SLOT(grpReadCheck())); | 75 | connect(CheckBox1_4, SIGNAL(released()),this,SLOT(grpReadCheck())); |
80 | 76 | ||
81 | CheckBox1_5 = new QCheckBox( this, "CheckBox1_5" ); | 77 | CheckBox1_5 = new QCheckBox( this, "CheckBox1_5" ); |
82 | CheckBox1_5->setGeometry( QRect( 135, 105, 20, 16 ) ); | 78 | CheckBox1_5->setGeometry( QRect( 135, 105, 20, 16 ) ); |
83 | connect(CheckBox1_5, SIGNAL(released()),this,SLOT(grpWriteCheck())); | 79 | connect(CheckBox1_5, SIGNAL(released()),this,SLOT(grpWriteCheck())); |
84 | 80 | ||
85 | CheckBox1_6 = new QCheckBox( this, "CheckBox1_6" ); | 81 | CheckBox1_6 = new QCheckBox( this, "CheckBox1_6" ); |
86 | CheckBox1_6->setGeometry( QRect( 195, 105, 20, 16 ) ); | 82 | CheckBox1_6->setGeometry( QRect( 195, 105, 20, 16 ) ); |
87 | connect(CheckBox1_6, SIGNAL(released()),this,SLOT(grpExeCheck())); | 83 | connect(CheckBox1_6, SIGNAL(released()),this,SLOT(grpExeCheck())); |
88 | 84 | ||
diff --git a/noncore/net/opieftp/inputDialog.cpp b/noncore/net/opieftp/inputDialog.cpp index 373db3b..23741c0 100644 --- a/noncore/net/opieftp/inputDialog.cpp +++ b/noncore/net/opieftp/inputDialog.cpp | |||
@@ -1,44 +1,40 @@ | |||
1 | /**************************************************************************** | 1 | /**************************************************************************** |
2 | inputDialog.cpp | 2 | inputDialog.cpp |
3 | ------------------- | 3 | ------------------- |
4 | ** Created: Sat Mar 9 23:33:09 2002 | 4 | ** Created: Sat Mar 9 23:33:09 2002 |
5 | copyright : (C) 2002 by ljp | 5 | copyright : (C) 2002 by ljp |
6 | email : ljp@llornkcor.com | 6 | email : ljp@llornkcor.com |
7 | * This program is free software; you can redistribute it and/or modify * | 7 | * This program is free software; you can redistribute it and/or modify * |
8 | * it under the terms of the GNU General Public License as published by * | 8 | * it under the terms of the GNU General Public License as published by * |
9 | * the Free Software Foundation; either version 2 of the License, or * | 9 | * the Free Software Foundation; either version 2 of the License, or * |
10 | * (at your option) any later version. * | 10 | * (at your option) any later version. * |
11 | ***************************************************************************/ | 11 | ***************************************************************************/ |
12 | 12 | ||
13 | #include "inputDialog.h" | 13 | #include "inputDialog.h" |
14 | 14 | ||
15 | #include <qlineedit.h> | 15 | #include <qlineedit.h> |
16 | #include <qlayout.h> | ||
17 | #include <qvariant.h> | ||
18 | #include <qtooltip.h> | ||
19 | #include <qwhatsthis.h> | ||
20 | 16 | ||
21 | 17 | ||
22 | InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) | 18 | InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) |
23 | : QDialog( parent, name, modal, fl ) | 19 | : QDialog( parent, name, modal, fl ) |
24 | { | 20 | { |
25 | if ( !name ) | 21 | if ( !name ) |
26 | setName( "InputDialog" ); | 22 | setName( "InputDialog" ); |
27 | resize( 234, 50 ); | 23 | resize( 234, 50 ); |
28 | setMaximumSize( QSize( 240, 50 ) ); | 24 | setMaximumSize( QSize( 240, 50 ) ); |
29 | setCaption( tr(name ) ); | 25 | setCaption( tr(name ) ); |
30 | 26 | ||
31 | LineEdit1 = new QLineEdit( this, "LineEdit1" ); | 27 | LineEdit1 = new QLineEdit( this, "LineEdit1" ); |
32 | LineEdit1->setGeometry( QRect( 10, 10, 216, 22 ) ); | 28 | LineEdit1->setGeometry( QRect( 10, 10, 216, 22 ) ); |
33 | } | 29 | } |
34 | 30 | ||
35 | InputDialog::~InputDialog() | 31 | InputDialog::~InputDialog() |
36 | { | 32 | { |
37 | inputText= LineEdit1->text(); | 33 | inputText= LineEdit1->text(); |
38 | 34 | ||
39 | } | 35 | } |
40 | 36 | ||
41 | void InputDialog::setTextEdit(const QString &string) | 37 | void InputDialog::setTextEdit(const QString &string) |
42 | { | 38 | { |
43 | LineEdit1->setText(string); | 39 | LineEdit1->setText(string); |
44 | } | 40 | } |
diff --git a/noncore/net/opieftp/main.cpp b/noncore/net/opieftp/main.cpp index 28676e1..4f5a7d4 100644 --- a/noncore/net/opieftp/main.cpp +++ b/noncore/net/opieftp/main.cpp | |||
@@ -1,31 +1,27 @@ | |||
1 | 1 | ||
2 | /*************************************************************************** | 2 | /*************************************************************************** |
3 | main.cpp - description | 3 | main.cpp - description |
4 | ------------------- | 4 | ------------------- |
5 | begin : March 10, 2002 | 5 | begin : March 10, 2002 |
6 | copyright : (C) 2002 by llornkcor | 6 | copyright : (C) 2002 by llornkcor |
7 | email : ljp@llornkcor.com | 7 | email : ljp@llornkcor.com |
8 | * This program is free software; you can redistribute it and/or modify * | 8 | * This program is free software; you can redistribute it and/or modify * |
9 | * it under the terms of the GNU General Public License as published by * | 9 | * it under the terms of the GNU General Public License as published by * |
10 | * the Free Software Foundation; either version 2 of the License, or * | 10 | * the Free Software Foundation; either version 2 of the License, or * |
11 | * (at your option) any later version. * | 11 | * (at your option) any later version. * |
12 | ***************************************************************************/ | 12 | ***************************************************************************/ |
13 | #include <qpe/qpeapplication.h> | 13 | #include <qpe/qpeapplication.h> |
14 | #include <qpe/qcopenvelope_qws.h> | ||
15 | #include <qpe/config.h> | ||
16 | #include <qstring.h> | ||
17 | #include <qstringlist.h> | ||
18 | 14 | ||
19 | 15 | ||
20 | 16 | ||
21 | #include "opieftp.h" | 17 | #include "opieftp.h" |
22 | 18 | ||
23 | int main(int argc, char *argv[]) | 19 | int main(int argc, char *argv[]) |
24 | { | 20 | { |
25 | QPEApplication a(argc, argv); | 21 | QPEApplication a(argc, argv); |
26 | 22 | ||
27 | OpieFtp opieftp; | 23 | OpieFtp opieftp; |
28 | a.showMainWidget( &opieftp); | 24 | a.showMainWidget( &opieftp); |
29 | return a.exec(); | 25 | return a.exec(); |
30 | } | 26 | } |
31 | 27 | ||
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp index e81b7ca..668a03d 100644 --- a/noncore/net/opieftp/opieftp.cpp +++ b/noncore/net/opieftp/opieftp.cpp | |||
@@ -1,117 +1,103 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | opieftp.cpp | 2 | opieftp.cpp |
3 | ------------------- | 3 | ------------------- |
4 | ** Created: Sat Mar 9 23:33:09 2002 | 4 | ** Created: Sat Mar 9 23:33:09 2002 |
5 | copyright : (C) 2002 by ljp | 5 | copyright : (C) 2002 by ljp |
6 | email : ljp@llornkcor.com | 6 | email : ljp@llornkcor.com |
7 | * This program is free software; you can redistribute it and/or modify * | 7 | * This program is free software; you can redistribute it and/or modify * |
8 | * it under the terms of the GNU General Public License as published by * | 8 | * it under the terms of the GNU General Public License as published by * |
9 | * the Free Software Foundation; either version 2 of the License, or * | 9 | * the Free Software Foundation; either version 2 of the License, or * |
10 | * (at your option) any later version. * | 10 | * (at your option) any later version. * |
11 | ***************************************************************************/ | 11 | ***************************************************************************/ |
12 | //#define DEVELOPERS_VERSION | 12 | //#define DEVELOPERS_VERSION |
13 | 13 | ||
14 | #include "opieftp.h" | 14 | #include "opieftp.h" |
15 | 15 | ||
16 | extern "C" { | 16 | extern "C" { |
17 | #include "../ftplib/ftplib.h" | 17 | #include "../ftplib/ftplib.h" |
18 | } | 18 | } |
19 | 19 | ||
20 | #include "inputDialog.h" | 20 | #include "inputDialog.h" |
21 | 21 | ||
22 | #include <qpe/qpemenubar.h> | 22 | #include <qpe/qpemenubar.h> |
23 | #include <qpe/qpetoolbar.h> | ||
24 | #include <qpe/qpeapplication.h> | 23 | #include <qpe/qpeapplication.h> |
25 | #include <qpe/resource.h> | 24 | #include <qpe/resource.h> |
26 | #include <qpe/qcopenvelope_qws.h> | ||
27 | #include <qpe/config.h> | 25 | #include <qpe/config.h> |
28 | #include <qpe/mimetype.h> | 26 | #include <qpe/mimetype.h> |
29 | #include <qpe/qpemessagebox.h> | ||
30 | 27 | ||
31 | #include <qstringlist.h> | ||
32 | #include <qtextstream.h> | 28 | #include <qtextstream.h> |
33 | #include <qpushbutton.h> | 29 | #include <qpushbutton.h> |
34 | #include <qtoolbutton.h> | 30 | #include <qtoolbutton.h> |
35 | #include <qdatetime.h> | ||
36 | #include <qdir.h> | ||
37 | #include <qfile.h> | ||
38 | #include <qstring.h> | ||
39 | #include <qcombobox.h> | 31 | #include <qcombobox.h> |
40 | #include <qpopupmenu.h> | ||
41 | #include <qlistview.h> | 32 | #include <qlistview.h> |
42 | #include <qmainwindow.h> | ||
43 | #include <qlabel.h> | 33 | #include <qlabel.h> |
44 | #include <qprogressbar.h> | 34 | #include <qprogressbar.h> |
45 | #include <qspinbox.h> | 35 | #include <qspinbox.h> |
46 | #include <qtabwidget.h> | 36 | #include <qtabwidget.h> |
47 | #include <qwidget.h> | ||
48 | #include <qlayout.h> | 37 | #include <qlayout.h> |
49 | #include <qimage.h> | ||
50 | #include <qpixmap.h> | ||
51 | #include <qmessagebox.h> | 38 | #include <qmessagebox.h> |
52 | #include <qlineedit.h> | 39 | #include <qlineedit.h> |
53 | #include <qregexp.h> | ||
54 | #include <qlistbox.h> | 40 | #include <qlistbox.h> |
55 | 41 | ||
56 | #include <unistd.h> | 42 | #include <unistd.h> |
57 | #include <stdlib.h> | 43 | #include <stdlib.h> |
58 | 44 | ||
59 | 45 | ||
60 | QProgressBar *ProgressBar; | 46 | QProgressBar *ProgressBar; |
61 | static netbuf *conn=NULL; | 47 | static netbuf *conn=NULL; |
62 | 48 | ||
63 | static int log_progress(netbuf *, int xfered, void *) | 49 | static int log_progress(netbuf *, int xfered, void *) |
64 | { | 50 | { |
65 | // int fsz = *(int *)arg; | 51 | // int fsz = *(int *)arg; |
66 | // int pct = (xfered * 100) / fsz; | 52 | // int pct = (xfered * 100) / fsz; |
67 | // printf("%3d%%\r", pct); | 53 | // printf("%3d%%\r", pct); |
68 | // fflush(stdout); | 54 | // fflush(stdout); |
69 | ProgressBar->setProgress(xfered); | 55 | ProgressBar->setProgress(xfered); |
70 | qApp->processEvents(); | 56 | qApp->processEvents(); |
71 | return 1; | 57 | return 1; |
72 | } | 58 | } |
73 | 59 | ||
74 | OpieFtp::OpieFtp( ) | 60 | OpieFtp::OpieFtp( ) |
75 | : QMainWindow( ) | 61 | : QMainWindow( ) |
76 | { | 62 | { |
77 | setCaption( tr( "OpieFtp" ) ); | 63 | setCaption( tr( "OpieFtp" ) ); |
78 | fuckeduphack=FALSE; | 64 | fuckeduphack=FALSE; |
79 | QGridLayout *layout = new QGridLayout( this ); | 65 | QGridLayout *layout = new QGridLayout( this ); |
80 | layout->setSpacing( 2); | 66 | layout->setSpacing( 2); |
81 | layout->setMargin( 2); | 67 | layout->setMargin( 2); |
82 | 68 | ||
83 | connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); | 69 | connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); |
84 | 70 | ||
85 | QPEMenuBar *menuBar = new QPEMenuBar(this); | 71 | QPEMenuBar *menuBar = new QPEMenuBar(this); |
86 | // QPEToolBar *menuBar = new QPEToolBar(this); | 72 | // QPEToolBar *menuBar = new QPEToolBar(this); |
87 | // menuBar->setHorizontalStretchable( TRUE ); | 73 | // menuBar->setHorizontalStretchable( TRUE ); |
88 | 74 | ||
89 | QWMatrix matrix; | 75 | QWMatrix matrix; |
90 | QPixmap pix(Resource::loadPixmap( "UnknownDocument" )); | 76 | QPixmap pix(Resource::loadPixmap( "UnknownDocument" )); |
91 | matrix.scale( .4, .4); | 77 | matrix.scale( .4, .4); |
92 | unknownXpm = pix.xForm(matrix); | 78 | unknownXpm = pix.xForm(matrix); |
93 | 79 | ||
94 | connectionMenu = new QPopupMenu( this ); | 80 | connectionMenu = new QPopupMenu( this ); |
95 | localMenu = new QPopupMenu( this ); | 81 | localMenu = new QPopupMenu( this ); |
96 | remoteMenu = new QPopupMenu( this ); | 82 | remoteMenu = new QPopupMenu( this ); |
97 | tabMenu = new QPopupMenu( this ); | 83 | tabMenu = new QPopupMenu( this ); |
98 | 84 | ||
99 | layout->addMultiCellWidget( menuBar, 0, 0, 0, 2 ); | 85 | layout->addMultiCellWidget( menuBar, 0, 0, 0, 2 ); |
100 | 86 | ||
101 | menuBar->insertItem( tr( "Connection" ), connectionMenu); | 87 | menuBar->insertItem( tr( "Connection" ), connectionMenu); |
102 | // menuBar->insertItem( tr( "Local" ), localMenu); | 88 | // menuBar->insertItem( tr( "Local" ), localMenu); |
103 | // menuBar->insertItem( tr( "Remote" ), remoteMenu); | 89 | // menuBar->insertItem( tr( "Remote" ), remoteMenu); |
104 | menuBar->insertItem( tr( "View" ), tabMenu); | 90 | menuBar->insertItem( tr( "View" ), tabMenu); |
105 | 91 | ||
106 | tabMenu->insertItem( tr( "Local" ), localMenu); | 92 | tabMenu->insertItem( tr( "Local" ), localMenu); |
107 | tabMenu->insertItem( tr( "Remote" ), remoteMenu); | 93 | tabMenu->insertItem( tr( "Remote" ), remoteMenu); |
108 | 94 | ||
109 | connectionMenu->insertItem( tr( "New" ), this, SLOT( newConnection() )); | 95 | connectionMenu->insertItem( tr( "New" ), this, SLOT( newConnection() )); |
110 | connectionMenu->insertItem( tr( "Connect" ), this, SLOT( connector() )); | 96 | connectionMenu->insertItem( tr( "Connect" ), this, SLOT( connector() )); |
111 | connectionMenu->insertItem( tr( "Disconnect" ), this, SLOT( disConnector() )); | 97 | connectionMenu->insertItem( tr( "Disconnect" ), this, SLOT( disConnector() )); |
112 | 98 | ||
113 | localMenu->insertItem( tr( "Show Hidden Files" ), this, SLOT( showHidden() )); | 99 | localMenu->insertItem( tr( "Show Hidden Files" ), this, SLOT( showHidden() )); |
114 | localMenu->insertSeparator(); | 100 | localMenu->insertSeparator(); |
115 | localMenu->insertItem( tr( "Upload" ), this, SLOT( localUpload() )); | 101 | localMenu->insertItem( tr( "Upload" ), this, SLOT( localUpload() )); |
116 | localMenu->insertItem( tr( "Make Directory" ), this, SLOT( localMakDir() )); | 102 | localMenu->insertItem( tr( "Make Directory" ), this, SLOT( localMakDir() )); |
117 | localMenu->insertItem( tr( "Rename" ), this, SLOT( localRename() )); | 103 | localMenu->insertItem( tr( "Rename" ), this, SLOT( localRename() )); |