summaryrefslogtreecommitdiff
authordrw <drw>2005-03-21 16:53:48 (UTC)
committer drw <drw>2005-03-21 16:53:48 (UTC)
commit958b13474d09d8cdf1f018abc1f48f80d24bf22f (patch) (unidiff)
tree21e8ff75ad792124b407d7dda543bc4349254dc9
parentbe3e262e107a8592a478f7c4114d2a54395885a5 (diff)
downloadopie-958b13474d09d8cdf1f018abc1f48f80d24bf22f.zip
opie-958b13474d09d8cdf1f018abc1f48f80d24bf22f.tar.gz
opie-958b13474d09d8cdf1f018abc1f48f80d24bf22f.tar.bz2
Fix for bug #1613 - scale toolbar icons
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfmData.cpp20
1 files changed, 14 insertions, 6 deletions
diff --git a/noncore/apps/advancedfm/advancedfmData.cpp b/noncore/apps/advancedfm/advancedfmData.cpp
index 3664c75..b43d2ba 100644
--- a/noncore/apps/advancedfm/advancedfmData.cpp
+++ b/noncore/apps/advancedfm/advancedfmData.cpp
@@ -1,268 +1,276 @@
1/*************************************************************************** 1/***************************************************************************
2 advancedfmData.cpp 2 advancedfmData.cpp
3 ------------------- 3 -------------------
4** Created: Mon 09-23-2002 13:24:11 4** Created: Mon 09-23-2002 13:24:11
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#include "advancedfm.h" 12#include "advancedfm.h"
13 13
14/* OPIE */ 14/* OPIE */
15#include <opie2/odebug.h> 15#include <opie2/odebug.h>
16#include <qpe/applnk.h>
16#include <qpe/storage.h> 17#include <qpe/storage.h>
17#include <qpe/qpeapplication.h> 18#include <qpe/qpeapplication.h>
18#include <qpe/resource.h> 19#include <qpe/resource.h>
19#include <qpe/menubutton.h> 20#include <qpe/menubutton.h>
20using namespace Opie::Core; 21using namespace Opie::Core;
21using namespace Opie::Ui; 22using namespace Opie::Ui;
22 23
23/* QT */ 24/* QT */
24#include <qlayout.h> 25#include <qlayout.h>
25#include <qhbox.h> 26#include <qhbox.h>
26#include <qmenubar.h> 27#include <qmenubar.h>
27#include <qcombobox.h> 28#include <qcombobox.h>
28#include <qtoolbutton.h> 29#include <qtoolbutton.h>
29#include <qlineedit.h> 30#include <qlineedit.h>
30#include <qlistview.h> 31#include <qlistview.h>
31 32
32/* STD */ 33/* STD */
33#include <sys/utsname.h> 34#include <sys/utsname.h>
34 35
35void AdvancedFm::init() { 36void AdvancedFm::init() {
36 b = false; 37 b = false;
37 setCaption( tr( "AdvancedFm" ) ); 38 setCaption( tr( "AdvancedFm" ) );
38 39
39 QVBoxLayout *layout = new QVBoxLayout( this ); 40 QVBoxLayout *layout = new QVBoxLayout( this );
40 layout->setSpacing( 2); 41 layout->setSpacing( 2);
41 layout->setMargin( 0); // squeeze 42 layout->setMargin( 0); // squeeze
42 43
43 QMenuBar *menuBar = new QMenuBar(this); 44 QMenuBar *menuBar = new QMenuBar(this);
44 menuBar->setMargin( 0 ); // squeeze 45 menuBar->setMargin( 0 ); // squeeze
45 fileMenu = new QPopupMenu( this ); 46 fileMenu = new QPopupMenu( this );
46 viewMenu = new QPopupMenu( this ); 47 viewMenu = new QPopupMenu( this );
47// customDirMenu = new QPopupMenu( this ); 48// customDirMenu = new QPopupMenu( this );
48 49
49 layout->addWidget( menuBar ); 50 layout->addWidget( menuBar );
50 51
51 menuBar->insertItem( tr( "File" ), fileMenu); 52 menuBar->insertItem( tr( "File" ), fileMenu);
52 menuBar->insertItem( tr( "View" ), viewMenu); 53 menuBar->insertItem( tr( "View" ), viewMenu);
53 54
55 QPixmap pm;
54 cdUpButton = new QToolButton( 0,"cdUpButton"); 56 cdUpButton = new QToolButton( 0,"cdUpButton");
55 cdUpButton->setPixmap(Resource::loadPixmap("up")); 57 pm.convertFromImage( Resource::loadImage( "up" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
58 cdUpButton->setPixmap( pm );
56 cdUpButton->setAutoRaise( true ); 59 cdUpButton->setAutoRaise( true );
57 menuBar->insertItem( cdUpButton ); 60 menuBar->insertItem( cdUpButton );
58 61
59 qpeDirButton= new QToolButton( 0,"QPEButton"); 62 qpeDirButton= new QToolButton( 0,"QPEButton");
60 qpeDirButton->setPixmap( Resource::loadPixmap("launcher/opielogo16x16"));//,"",this,"QPEButton"); 63 pm.convertFromImage( Resource::loadImage( "logo/opielogo" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
64 qpeDirButton->setPixmap( pm );//,"",this,"QPEButton");
61 qpeDirButton->setAutoRaise( true ); 65 qpeDirButton->setAutoRaise( true );
62 menuBar->insertItem( qpeDirButton ); 66 menuBar->insertItem( qpeDirButton );
63 67
64 cfButton = new QToolButton( 0, "CFButton"); 68 cfButton = new QToolButton( 0, "CFButton");
65 cfButton->setPixmap(Resource::loadPixmap("cardmon/pcmcia")); 69 pm.convertFromImage( Resource::loadImage( "cardmon/pcmcia" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
70 cfButton->setPixmap( pm );
66 cfButton->setAutoRaise( true ); 71 cfButton->setAutoRaise( true );
67 menuBar->insertItem( cfButton ); 72 menuBar->insertItem( cfButton );
68 73
69 sdButton = new QToolButton( 0, "SDButton"); 74 sdButton = new QToolButton( 0, "SDButton");
70 sdButton->setPixmap(Resource::loadPixmap("advancedfm/sdcard")); 75 pm.convertFromImage( Resource::loadImage( "advancedfm/sdcard" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
76 sdButton->setPixmap( pm );
71 sdButton->setAutoRaise( true ); 77 sdButton->setAutoRaise( true );
72 menuBar->insertItem( sdButton ); 78 menuBar->insertItem( sdButton );
73 79
74 docButton = new QToolButton( 0,"docsButton"); 80 docButton = new QToolButton( 0,"docsButton");
75 docButton->setPixmap(Resource::loadPixmap("DocsIcon")); 81 pm.convertFromImage( Resource::loadImage( "DocsIcon" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
82 docButton->setPixmap( pm );
76 docButton->setAutoRaise( true ); 83 docButton->setAutoRaise( true );
77 menuBar->insertItem( docButton ); 84 menuBar->insertItem( docButton );
78 85
79 homeButton = new QToolButton( 0, "homeButton"); 86 homeButton = new QToolButton( 0, "homeButton");
80 homeButton->setPixmap(Resource::loadPixmap("home")); 87 pm.convertFromImage( Resource::loadImage( "home" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
88 homeButton->setPixmap( pm );
81 homeButton->setAutoRaise( true ); 89 homeButton->setAutoRaise( true );
82 menuBar->insertItem( homeButton ); 90 menuBar->insertItem( homeButton );
83 91
84 fileMenu->insertItem( tr( "Show Hidden Files" ), this, SLOT( showMenuHidden() )); 92 fileMenu->insertItem( tr( "Show Hidden Files" ), this, SLOT( showMenuHidden() ));
85 fileMenu->setItemChecked( fileMenu->idAt(0),TRUE); 93 fileMenu->setItemChecked( fileMenu->idAt(0),TRUE);
86 fileMenu->insertSeparator(); 94 fileMenu->insertSeparator();
87 fileMenu->insertItem( tr( "File Search" ), this, SLOT( openSearch() )); 95 fileMenu->insertItem( tr( "File Search" ), this, SLOT( openSearch() ));
88 fileMenu->insertSeparator(); 96 fileMenu->insertSeparator();
89 fileMenu->insertItem( tr( "Make Directory" ), this, SLOT( mkDir() )); 97 fileMenu->insertItem( tr( "Make Directory" ), this, SLOT( mkDir() ));
90 fileMenu->insertItem( tr( "Rename" ), this, SLOT( rn() )); 98 fileMenu->insertItem( tr( "Rename" ), this, SLOT( rn() ));
91 fileMenu->insertItem( tr( "Run Command" ), this, SLOT( runCommandStd() )); 99 fileMenu->insertItem( tr( "Run Command" ), this, SLOT( runCommandStd() ));
92 fileMenu->insertItem( tr( "Run Command with Output" ), this, SLOT( runCommand() )); 100 fileMenu->insertItem( tr( "Run Command with Output" ), this, SLOT( runCommand() ));
93 fileMenu->insertSeparator(); 101 fileMenu->insertSeparator();
94 fileMenu->insertItem( tr( "Make Symlink" ), this, SLOT( mkSym() )); 102 fileMenu->insertItem( tr( "Make Symlink" ), this, SLOT( mkSym() ));
95 fileMenu->insertItem( tr( "Select All" ), this, SLOT( selectAll() )); 103 fileMenu->insertItem( tr( "Select All" ), this, SLOT( selectAll() ));
96 fileMenu->insertItem( tr( "Add To Documents" ), this, SLOT( addToDocs() )); 104 fileMenu->insertItem( tr( "Add To Documents" ), this, SLOT( addToDocs() ));
97 fileMenu->insertItem( tr( "Delete" ), this, SLOT( del() )); 105 fileMenu->insertItem( tr( "Delete" ), this, SLOT( del() ));
98 fileMenu->setCheckable(TRUE); 106 fileMenu->setCheckable(TRUE);
99 107
100 viewMenu->insertItem( tr( "Switch to View 1" ), this, SLOT( switchToLocalTab())); 108 viewMenu->insertItem( tr( "Switch to View 1" ), this, SLOT( switchToLocalTab()));
101 viewMenu->insertItem( tr( "Switch to View 2" ), this, SLOT( switchToRemoteTab())); 109 viewMenu->insertItem( tr( "Switch to View 2" ), this, SLOT( switchToRemoteTab()));
102 viewMenu->insertItem( tr( "Refresh" ), this, SLOT( refreshCurrentTab())); 110 viewMenu->insertItem( tr( "Refresh" ), this, SLOT( refreshCurrentTab()));
103// viewMenu->insertSeparator(); 111// viewMenu->insertSeparator();
104// viewMenu->insertItem( tr( "About" ), this, SLOT( doAbout() )); 112// viewMenu->insertItem( tr( "About" ), this, SLOT( doAbout() ));
105 viewMenu->setCheckable(true); 113 viewMenu->setCheckable(true);
106 viewMenu->setItemChecked( viewMenu->idAt(0), true); 114 viewMenu->setItemChecked( viewMenu->idAt(0), true);
107 viewMenu->setItemChecked( viewMenu->idAt(1), false); 115 viewMenu->setItemChecked( viewMenu->idAt(1), false);
108 116
109 s_addBookmark = tr("Bookmark Directory"); 117 s_addBookmark = tr("Bookmark Directory");
110 s_removeBookmark = tr("Remove Current Directory from Bookmarks"); 118 s_removeBookmark = tr("Remove Current Directory from Bookmarks");
111 119
112// menuButton->insertItem(""); 120// menuButton->insertItem("");
113 121
114// customDirMenu->insertItem(tr("Add This Directory")); 122// customDirMenu->insertItem(tr("Add This Directory"));
115// customDirMenu->insertItem(tr("Remove This Directory")); 123// customDirMenu->insertItem(tr("Remove This Directory"));
116// customDirMenu->insertSeparator(); 124// customDirMenu->insertSeparator();
117 125
118 QHBoxLayout *CBHB = new QHBoxLayout(); // parent layout will be set later 126 QHBoxLayout *CBHB = new QHBoxLayout(); // parent layout will be set later
119 CBHB->setMargin( 0 ); 127 CBHB->setMargin( 0 );
120 CBHB->setSpacing( 1 ); 128 CBHB->setSpacing( 1 );
121 129
122 menuButton = new MenuButton( this ); 130 menuButton = new MenuButton( this );
123 131
124 menuButton->setUseLabel(false); 132 menuButton->setUseLabel(false);
125 menuButton->setMaximumWidth( 20 ); 133 menuButton->setMaximumWidth( 20 );
126 menuButton->insertItem( s_addBookmark); 134 menuButton->insertItem( s_addBookmark);
127 menuButton->insertItem( s_removeBookmark); 135 menuButton->insertItem( s_removeBookmark);
128 menuButton->insertSeparator(); 136 menuButton->insertSeparator();
129// menuButton->setFocusPolicy(NoFocus); 137// menuButton->setFocusPolicy(NoFocus);
130 CBHB->addWidget( menuButton ); 138 CBHB->addWidget( menuButton );
131 139
132 customDirsToMenu(); 140 customDirsToMenu();
133 141
134 currentPathCombo = new QComboBox( FALSE, this, "currentPathCombo" ); 142 currentPathCombo = new QComboBox( FALSE, this, "currentPathCombo" );
135 currentPathCombo->setEditable(TRUE); 143 currentPathCombo->setEditable(TRUE);
136 currentPathCombo->lineEdit()->setText( currentDir.canonicalPath()); 144 currentPathCombo->lineEdit()->setText( currentDir.canonicalPath());
137 // currentPathCombo->setFocusPolicy(NoFocus); 145 // currentPathCombo->setFocusPolicy(NoFocus);
138 CBHB->addWidget( currentPathCombo ); 146 CBHB->addWidget( currentPathCombo );
139 147
140 layout->addLayout( CBHB ); 148 layout->addLayout( CBHB );
141 149
142 TabWidget = new OSplitter( Horizontal, this, "TabWidget" ); 150 TabWidget = new OSplitter( Horizontal, this, "TabWidget" );
143// TabWidget = new QTabWidget( this, "TabWidget" ); 151// TabWidget = new QTabWidget( this, "TabWidget" );
144 layout->addWidget( TabWidget, 4 ); 152 layout->addWidget( TabWidget, 4 );
145 153
146 tab = new QWidget( TabWidget, "tab" ); 154 tab = new QWidget( TabWidget, "tab" );
147 tabLayout = new QGridLayout( tab ); 155 tabLayout = new QGridLayout( tab );
148 tabLayout->setSpacing( 2); 156 tabLayout->setSpacing( 2);
149 tabLayout->setMargin( 2); 157 tabLayout->setMargin( 2);
150 158
151 Local_View = new QListView( tab, "Local_View" ); 159 Local_View = new QListView( tab, "Local_View" );
152 Local_View->addColumn( tr("File"),130); 160 Local_View->addColumn( tr("File"),130);
153 Local_View->addColumn( tr("Size"),-1); 161 Local_View->addColumn( tr("Size"),-1);
154 Local_View->setColumnAlignment(1,QListView::AlignRight); 162 Local_View->setColumnAlignment(1,QListView::AlignRight);
155 Local_View->addColumn( tr("Date"),-1); 163 Local_View->addColumn( tr("Date"),-1);
156 Local_View->setColumnAlignment(2,QListView::AlignRight); 164 Local_View->setColumnAlignment(2,QListView::AlignRight);
157 Local_View->setAllColumnsShowFocus(TRUE); 165 Local_View->setAllColumnsShowFocus(TRUE);
158 Local_View->setMultiSelection( TRUE ); 166 Local_View->setMultiSelection( TRUE );
159 Local_View->setSelectionMode(QListView::Extended); 167 Local_View->setSelectionMode(QListView::Extended);
160 Local_View->setFocusPolicy(StrongFocus); 168 Local_View->setFocusPolicy(StrongFocus);
161 Local_View->installEventFilter( this ); 169 Local_View->installEventFilter( this );
162 170
163 QPEApplication::setStylusOperation( Local_View->viewport() , QPEApplication::RightOnHold); 171 QPEApplication::setStylusOperation( Local_View->viewport() , QPEApplication::RightOnHold);
164 172
165 tabLayout->addWidget( Local_View, 0, 0 ); 173 tabLayout->addWidget( Local_View, 0, 0 );
166 174
167 TabWidget->addWidget( tab,"advancedfm/smFileBrowser.png", tr("1")); 175 TabWidget->addWidget( tab,"advancedfm/smFileBrowser.png", tr("1"));
168// TabWidget->insertTab( tab, tr("1")); 176// TabWidget->insertTab( tab, tr("1"));
169 177
170 tab_2 = new QWidget( TabWidget, "tab_2" ); 178 tab_2 = new QWidget( TabWidget, "tab_2" );
171 tabLayout_2 = new QGridLayout( tab_2 ); 179 tabLayout_2 = new QGridLayout( tab_2 );
172 tabLayout_2->setSpacing( 2); 180 tabLayout_2->setSpacing( 2);
173 tabLayout_2->setMargin( 2); 181 tabLayout_2->setMargin( 2);
174 182
175 Remote_View = new QListView( tab_2, "Remote_View" ); 183 Remote_View = new QListView( tab_2, "Remote_View" );
176 Remote_View->addColumn( tr("File"),130); 184 Remote_View->addColumn( tr("File"),130);
177 Remote_View->addColumn( tr("Size"),-1); 185 Remote_View->addColumn( tr("Size"),-1);
178 Remote_View->setColumnAlignment(1,QListView::AlignRight); 186 Remote_View->setColumnAlignment(1,QListView::AlignRight);
179 Remote_View->addColumn( tr("Date"),-1); 187 Remote_View->addColumn( tr("Date"),-1);
180 Remote_View->setColumnAlignment(2,QListView::AlignRight); 188 Remote_View->setColumnAlignment(2,QListView::AlignRight);
181 Remote_View->setAllColumnsShowFocus(TRUE); 189 Remote_View->setAllColumnsShowFocus(TRUE);
182 Remote_View->setMultiSelection( TRUE ); 190 Remote_View->setMultiSelection( TRUE );
183 Remote_View->setSelectionMode(QListView::Extended); 191 Remote_View->setSelectionMode(QListView::Extended);
184 Remote_View->setFocusPolicy(StrongFocus); 192 Remote_View->setFocusPolicy(StrongFocus);
185 Remote_View->installEventFilter( this ); 193 Remote_View->installEventFilter( this );
186 194
187 QPEApplication::setStylusOperation( Remote_View->viewport(), QPEApplication::RightOnHold); 195 QPEApplication::setStylusOperation( Remote_View->viewport(), QPEApplication::RightOnHold);
188 196
189 tabLayout_2->addWidget( Remote_View, 0, 0 ); 197 tabLayout_2->addWidget( Remote_View, 0, 0 );
190 198
191 TabWidget->addWidget( tab_2, "advancedfm/smFileBrowser.png",tr( "2")); 199 TabWidget->addWidget( tab_2, "advancedfm/smFileBrowser.png",tr( "2"));
192 TabWidget->setSizeChange( 370 ); 200 TabWidget->setSizeChange( 370 );
193// TabWidget->insertTab( tab_2, tr( "2")); 201// TabWidget->insertTab( tab_2, tr( "2"));
194 202
195 /* tab_3 = new QWidget( TabWidget, "tab_3" ); 203 /* tab_3 = new QWidget( TabWidget, "tab_3" );
196 tabLayout_3 = new QGridLayout( tab_3 ); 204 tabLayout_3 = new QGridLayout( tab_3 );
197 tabLayout_3->setSpacing( 2); 205 tabLayout_3->setSpacing( 2);
198 tabLayout_3->setMargin( 2); 206 tabLayout_3->setMargin( 2);
199 207
200 208
201 // OFileDialog fileDialog; 209 // OFileDialog fileDialog;
202 // fileDialog; 210 // fileDialog;
203 // fileSelector = new FileSelector( "*",tab_3, "fileselector" , FALSE, FALSE); //buggy 211 // fileSelector = new FileSelector( "*",tab_3, "fileselector" , FALSE, FALSE); //buggy
204 // fileDialog = new OFileDialog("bangalow", tab_3, 4, 2, "Bungalow"); 212 // fileDialog = new OFileDialog("bangalow", tab_3, 4, 2, "Bungalow");
205 // OFileSelector fileDialog = new OFileSelector( tab_3, 4, 2,"/"); 213 // OFileSelector fileDialog = new OFileSelector( tab_3, 4, 2,"/");
206 214
207 QListView *fileTree; 215 QListView *fileTree;
208 fileTree = new QListView( tab_3, "tree" ); 216 fileTree = new QListView( tab_3, "tree" );
209 217
210 218
211 tabLayout_3->addMultiCellWidget( fileTree, 0, 0, 0, 3 ); 219 tabLayout_3->addMultiCellWidget( fileTree, 0, 0, 0, 3 );
212 220
213 TabWidget->insertTab( tab_3, tr( "Remote" ) ); 221 TabWidget->insertTab( tab_3, tr( "Remote" ) );
214 */ 222 */
215 223
216 /////////////// 224 ///////////////
217 225
218 if( !StorageInfo::hasSd() || !StorageInfo::hasMmc()) { 226 if( !StorageInfo::hasSd() || !StorageInfo::hasMmc()) {
219 sdButton->hide(); 227 sdButton->hide();
220 } 228 }
221 if( !StorageInfo::hasCf() ) { 229 if( !StorageInfo::hasCf() ) {
222 cfButton->hide(); 230 cfButton->hide();
223 } 231 }
224 currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); 232 currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All);
225 currentDir.setPath( QDir::currentDirPath()); 233 currentDir.setPath( QDir::currentDirPath());
226 234
227 currentRemoteDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); 235 currentRemoteDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All);
228 currentRemoteDir.setPath( QDir::currentDirPath()); 236 currentRemoteDir.setPath( QDir::currentDirPath());
229 237
230 filterStr="*"; 238 filterStr="*";
231 showMenuHidden(); 239 showMenuHidden();
232 TabWidget->setCurrentWidget(0); 240 TabWidget->setCurrentWidget(0);
233 241
234} 242}
235 243
236void AdvancedFm::initConnections() 244void AdvancedFm::initConnections()
237{ 245{
238 246
239 connect(qApp,SIGNAL(aboutToQuit()),this,SLOT(cleanUp())); 247 connect(qApp,SIGNAL(aboutToQuit()),this,SLOT(cleanUp()));
240 connect(qpeDirButton,SIGNAL(released()),this,SLOT(QPEButtonPushed())); 248 connect(qpeDirButton,SIGNAL(released()),this,SLOT(QPEButtonPushed()));
241 connect(cfButton,SIGNAL(released()),this,SLOT(CFButtonPushed())); 249 connect(cfButton,SIGNAL(released()),this,SLOT(CFButtonPushed()));
242 connect(sdButton,SIGNAL(released()),this,SLOT(SDButtonPushed())); 250 connect(sdButton,SIGNAL(released()),this,SLOT(SDButtonPushed()));
243 connect(cdUpButton,SIGNAL(released()),this,SLOT(upDir())); 251 connect(cdUpButton,SIGNAL(released()),this,SLOT(upDir()));
244 connect(docButton,SIGNAL(released()),this,SLOT(docButtonPushed())); 252 connect(docButton,SIGNAL(released()),this,SLOT(docButtonPushed()));
245 connect(homeButton,SIGNAL(released()),this,SLOT(homeButtonPushed())); 253 connect(homeButton,SIGNAL(released()),this,SLOT(homeButtonPushed()));
246 connect(currentPathCombo,SIGNAL(activated(const QString&)),this,SLOT(changeTo(const QString&))); 254 connect(currentPathCombo,SIGNAL(activated(const QString&)),this,SLOT(changeTo(const QString&)));
247 255
248 connect(currentPathCombo->lineEdit(),SIGNAL(returnPressed()),this,SLOT(currentPathComboChanged())); 256 connect(currentPathCombo->lineEdit(),SIGNAL(returnPressed()),this,SLOT(currentPathComboChanged()));
249 257
250 connect(Local_View,SIGNAL(clicked(QListViewItem*)),this,SLOT( ListClicked(QListViewItem*))); 258 connect(Local_View,SIGNAL(clicked(QListViewItem*)),this,SLOT( ListClicked(QListViewItem*)));
251 259
252 connect(Local_View,SIGNAL(mouseButtonPressed(int,QListViewItem*,const QPoint&,int)),this,SLOT( ListPressed(int,QListViewItem*,const QPoint&,int)) ); 260 connect(Local_View,SIGNAL(mouseButtonPressed(int,QListViewItem*,const QPoint&,int)),this,SLOT( ListPressed(int,QListViewItem*,const QPoint&,int)) );
253 261
254 connect(Remote_View,SIGNAL(clicked(QListViewItem*)),this,SLOT(ListClicked(QListViewItem*))); 262 connect(Remote_View,SIGNAL(clicked(QListViewItem*)),this,SLOT(ListClicked(QListViewItem*)));
255 connect(Remote_View,SIGNAL(mouseButtonPressed(int,QListViewItem*,const QPoint&,int)),this,SLOT(ListPressed(int,QListViewItem*,const QPoint&,int))); 263 connect(Remote_View,SIGNAL(mouseButtonPressed(int,QListViewItem*,const QPoint&,int)),this,SLOT(ListPressed(int,QListViewItem*,const QPoint&,int)));
256 264
257 connect(TabWidget,SIGNAL(currentChanged(QWidget*)),this,SLOT(tabChanged(QWidget*))); 265 connect(TabWidget,SIGNAL(currentChanged(QWidget*)),this,SLOT(tabChanged(QWidget*)));
258 266
259 connect(Remote_View,SIGNAL(rightButtonPressed(QListViewItem*,const QPoint&,int)),this,SLOT(showFileMenu())); 267 connect(Remote_View,SIGNAL(rightButtonPressed(QListViewItem*,const QPoint&,int)),this,SLOT(showFileMenu()));
260 connect(Local_View,SIGNAL(rightButtonPressed(QListViewItem*,const QPoint&,int)),this,SLOT(showFileMenu())); 268 connect(Local_View,SIGNAL(rightButtonPressed(QListViewItem*,const QPoint&,int)),this,SLOT(showFileMenu()));
261 269
262 connect(menuButton,SIGNAL(selected(const QString&)),SLOT(gotoCustomDir(const QString&))); 270 connect(menuButton,SIGNAL(selected(const QString&)),SLOT(gotoCustomDir(const QString&)));
263// connect( menuButton, SIGNAL( selected(int)), SLOT( dirMenuSelected(int))); 271// connect( menuButton, SIGNAL( selected(int)), SLOT( dirMenuSelected(int)));
264 connect(viewMenu,SIGNAL(activated(int)),this,SLOT(slotSwitchMenu(int))); 272 connect(viewMenu,SIGNAL(activated(int)),this,SLOT(slotSwitchMenu(int)));
265// connect( customDirMenu, SIGNAL( activated(int)), this, SLOT( dirMenuSelected(int))); 273// connect( customDirMenu, SIGNAL( activated(int)), this, SLOT( dirMenuSelected(int)));
266 274
267} 275}
268 276