-rw-r--r-- | libopie2/opieui/fileselector/ofileselector.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libopie2/opieui/fileselector/ofileselector.cpp b/libopie2/opieui/fileselector/ofileselector.cpp index 069b625..8b53038 100644 --- a/libopie2/opieui/fileselector/ofileselector.cpp +++ b/libopie2/opieui/fileselector/ofileselector.cpp | |||
@@ -323,63 +323,69 @@ OFileViewFileListView::OFileViewFileListView( QWidget* parent, const QString& st | |||
323 | /* | 323 | /* |
324 | * now we add a special bar | 324 | * now we add a special bar |
325 | * One Button For Up | 325 | * One Button For Up |
326 | * Home | 326 | * Home |
327 | * Doc | 327 | * Doc |
328 | * And a dropdown menu with FileSystems | 328 | * And a dropdown menu with FileSystems |
329 | * FUTURE: one to change dir with lineedit | 329 | * FUTURE: one to change dir with lineedit |
330 | * Bookmarks | 330 | * Bookmarks |
331 | * Create Dir | 331 | * Create Dir |
332 | */ | 332 | */ |
333 | QHBox* box = new QHBox(this ); | 333 | QHBox* box = new QHBox(this ); |
334 | box->setBackgroundMode( PaletteButton ); | 334 | box->setBackgroundMode( PaletteButton ); |
335 | box->setSpacing( 0 ); | 335 | box->setSpacing( 0 ); |
336 | 336 | ||
337 | QPixmap pic; | 337 | QPixmap pic; |
338 | QToolButton *btn = new QToolButton( box ); | 338 | QToolButton *btn = new QToolButton( box ); |
339 | btn->setUsesBigPixmap( true ); | ||
339 | pic.convertFromImage( Resource::loadImage( "up" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); | 340 | pic.convertFromImage( Resource::loadImage( "up" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); |
340 | btn->setPixmap( pic ); | 341 | btn->setPixmap( pic ); |
341 | connect(btn, SIGNAL(clicked() ), | 342 | connect(btn, SIGNAL(clicked() ), |
342 | this, SLOT( cdUP() ) ); | 343 | this, SLOT( cdUP() ) ); |
343 | 344 | ||
344 | btn = new QToolButton( box ); | 345 | btn = new QToolButton( box ); |
346 | btn->setUsesBigPixmap( true ); | ||
345 | pic.convertFromImage( Resource::loadImage( "home" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); | 347 | pic.convertFromImage( Resource::loadImage( "home" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); |
346 | btn->setPixmap( pic ); | 348 | btn->setPixmap( pic ); |
347 | connect(btn, SIGNAL(clicked() ), | 349 | connect(btn, SIGNAL(clicked() ), |
348 | this, SLOT( cdHome() ) ); | 350 | this, SLOT( cdHome() ) ); |
349 | 351 | ||
350 | btn = new QToolButton( box ); | 352 | btn = new QToolButton( box ); |
353 | btn->setUsesBigPixmap( true ); | ||
351 | pic.convertFromImage( Resource::loadImage( "DocsIcon" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); | 354 | pic.convertFromImage( Resource::loadImage( "DocsIcon" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); |
352 | btn->setPixmap( pic ); | 355 | btn->setPixmap( pic ); |
353 | connect(btn, SIGNAL(clicked() ), | 356 | connect(btn, SIGNAL(clicked() ), |
354 | this, SLOT(cdDoc() ) ); | 357 | this, SLOT(cdDoc() ) ); |
355 | 358 | ||
356 | m_btnNew = new QToolButton( box ); | 359 | m_btnNew = new QToolButton( box ); |
360 | m_btnNew->setUsesBigPixmap( true ); | ||
357 | pic.convertFromImage( Resource::loadImage( "new" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); | 361 | pic.convertFromImage( Resource::loadImage( "new" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); |
358 | m_btnNew->setPixmap( pic ); | 362 | m_btnNew->setPixmap( pic ); |
359 | connect(m_btnNew, SIGNAL(clicked() ), | 363 | connect(m_btnNew, SIGNAL(clicked() ), |
360 | this, SLOT(slotNew() ) ); | 364 | this, SLOT(slotNew() ) ); |
361 | 365 | ||
362 | 366 | ||
363 | m_btnClose = new QToolButton( box ); | 367 | m_btnClose = new QToolButton( box ); |
368 | m_btnClose->setUsesBigPixmap( true ); | ||
364 | pic.convertFromImage( Resource::loadImage( "close" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); | 369 | pic.convertFromImage( Resource::loadImage( "close" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); |
365 | m_btnClose->setPixmap( pic ); | 370 | m_btnClose->setPixmap( pic ); |
366 | connect(m_btnClose, SIGNAL(clicked() ), | 371 | connect(m_btnClose, SIGNAL(clicked() ), |
367 | selector(), SIGNAL(closeMe() ) ); | 372 | selector(), SIGNAL(closeMe() ) ); |
368 | 373 | ||
369 | btn = new QToolButton( box ); | 374 | btn = new QToolButton( box ); |
375 | btn->setUsesBigPixmap( true ); | ||
370 | pic.convertFromImage( Resource::loadImage( "cardmon/pcmcia" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); | 376 | pic.convertFromImage( Resource::loadImage( "cardmon/pcmcia" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); |
371 | btn->setPixmap( pic ); | 377 | btn->setPixmap( pic ); |
372 | 378 | ||
373 | m_fsButton = btn; | 379 | m_fsButton = btn; |
374 | /* let's fill device parts */ | 380 | /* let's fill device parts */ |
375 | QPopupMenu* pop = new QPopupMenu(this); | 381 | QPopupMenu* pop = new QPopupMenu(this); |
376 | connect(pop, SIGNAL( activated(int) ), | 382 | connect(pop, SIGNAL( activated(int) ), |
377 | this, SLOT(slotFSActivated(int) ) ); | 383 | this, SLOT(slotFSActivated(int) ) ); |
378 | 384 | ||
379 | StorageInfo storage; | 385 | StorageInfo storage; |
380 | const QList<FileSystem> &fs = storage.fileSystems(); | 386 | const QList<FileSystem> &fs = storage.fileSystems(); |
381 | QListIterator<FileSystem> it(fs); | 387 | QListIterator<FileSystem> it(fs); |
382 | for ( ; it.current(); ++it ) | 388 | for ( ; it.current(); ++it ) |
383 | { | 389 | { |
384 | const QString disk = (*it)->name(); | 390 | const QString disk = (*it)->name(); |
385 | const QString path = (*it)->path(); | 391 | const QString path = (*it)->path(); |