diff options
author | Ken Moore <ken@pcbsd.org> | 2014-10-03 14:16:30 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2014-10-03 14:16:30 -0400 |
commit | d53336d4c7ab48aa384c281ca82284ff8f9761cf (patch) | |
tree | e94650f5c9779ed6d04aa5ac5157eda8b3dba811 /lumina-fm | |
parent | Clean up the icon/list views in Insight. Now the "icon" view will use somethi... (diff) | |
download | lumina-d53336d4c7ab48aa384c281ca82284ff8f9761cf.tar.gz lumina-d53336d4c7ab48aa384c281ca82284ff8f9761cf.tar.bz2 lumina-d53336d4c7ab48aa384c281ca82284ff8f9761cf.zip |
Large update for the lumina-fm:
1) Completely update the theming for the application (now it has one)
2) Add a column of "action" buttons that enable/disable depending on what is selected.
3) Add the ability to mark files/dirs as user favorites (for quick access in the user button).
Diffstat (limited to 'lumina-fm')
-rw-r--r-- | lumina-fm/MainUI.cpp | 150 | ||||
-rw-r--r-- | lumina-fm/MainUI.h | 8 | ||||
-rw-r--r-- | lumina-fm/MainUI.ui | 586 |
3 files changed, 567 insertions, 177 deletions
diff --git a/lumina-fm/MainUI.cpp b/lumina-fm/MainUI.cpp index e662e8e1..50cb798c 100644 --- a/lumina-fm/MainUI.cpp +++ b/lumina-fm/MainUI.cpp @@ -12,6 +12,7 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI){ //Be careful about the QSettings setup, it must match the lumina-desktop setup QSettings::setPath(QSettings::NativeFormat, QSettings::UserScope, QDir::homePath()+"/.lumina"); settings = new QSettings( QSettings::UserScope, "LuminaDE", "lumina-fm", this); + favdir = QDir::homePath()+"/.lumina/favorites/"; //save this for later //Reset the UI to the previously used size (if possible) int height = settings->value("geometry/height",-1).toInt(); if(height>100 && height <= QApplication::desktop()->availableGeometry(this).height()){ this->resize(this->width(), height); } @@ -127,6 +128,14 @@ void MainUI::setupIcons(){ ui->tool_goToImages->setIcon( LXDG::findIcon("fileview-preview","") ); ui->tool_goToPlayer->setIcon( LXDG::findIcon("applications-multimedia","") ); ui->tool_goToRestore->setIcon( LXDG::findIcon("document-revert","") ); + ui->tool_act_run->setIcon( LXDG::findIcon("run-build-file","") ); + ui->tool_act_runwith->setIcon( LXDG::findIcon("run-build-configure","") ); + ui->tool_act_cut->setIcon( LXDG::findIcon("edit-cut","") ); + ui->tool_act_copy->setIcon( LXDG::findIcon("edit-copy","") ); + ui->tool_act_paste->setIcon( LXDG::findIcon("edit-paste","") ); + ui->tool_act_rename->setIcon( LXDG::findIcon("edit-rename","") ); + ui->tool_act_rm->setIcon( LXDG::findIcon("edit-delete","") ); + ui->tool_act_fav->setIcon( LXDG::findIcon("quickopen","") ); //Multimedia Player page ui->tool_player_next->setIcon( LXDG::findIcon("media-skip-forward","") ); @@ -157,13 +166,25 @@ void MainUI::setupConnections(){ connect(radio_view_details, SIGNAL(toggled(bool)), this, SLOT(viewModeChanged(bool)) ); connect(radio_view_list, SIGNAL(toggled(bool)), this, SLOT(viewModeChanged(bool)) ); connect(radio_view_icons, SIGNAL(toggled(bool)), this, SLOT(viewModeChanged(bool)) ); + + //Action buttons on browser page + connect(ui->tool_act_run, SIGNAL(clicked()), this, SLOT(OpenItem()) ); + connect(ui->tool_act_runwith, SIGNAL(clicked()), this, SLOT(OpenItemWith()) ); + connect(ui->tool_act_rm, SIGNAL(clicked()), this, SLOT(RemoveItem()) ); + connect(ui->tool_act_rename, SIGNAL(clicked()), this, SLOT(RenameItem()) ); + connect(ui->tool_act_paste, SIGNAL(clicked()), this, SLOT(PasteItems()) ); + connect(ui->tool_act_cut, SIGNAL(clicked()), this, SLOT(CutItems()) ); + connect(ui->tool_act_copy, SIGNAL(clicked()), this, SLOT(CopyItems()) ); + connect(ui->tool_act_fav, SIGNAL(clicked()), this, SLOT(FavoriteItem()) ); //Tree Widget interaction connect(ui->tree_dir_view, SIGNAL(activated(const QModelIndex&)), this, SLOT(ItemRun(const QModelIndex&)) ); connect(ui->list_dir_view, SIGNAL(activated(const QModelIndex&)), this, SLOT(ItemRun(const QModelIndex&)) ); connect(ui->tree_dir_view, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(OpenContextMenu(const QPoint&)) ); connect(ui->list_dir_view, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(OpenContextMenu(const QPoint&)) ); - + connect(ui->tree_dir_view->selectionModel(), SIGNAL(selectionChanged(const QItemSelection, const QItemSelection)), this, SLOT(ItemSelectionChanged()) ); + connect(ui->list_dir_view->selectionModel(), SIGNAL(selectionChanged(const QItemSelection, const QItemSelection)), this, SLOT(ItemSelectionChanged()) ); + //Page Switching connect(ui->tool_goToPlayer, SIGNAL(clicked()), this, SLOT(goToMultimediaPage()) ); connect(ui->tool_goToRestore, SIGNAL(clicked()), this, SLOT(goToRestorePage()) ); @@ -208,6 +229,8 @@ void MainUI::loadSettings(){ // but before the first directory gets loaded ui->actionView_Hidden_Files->setChecked( settings->value("showhidden", false).toBool() ); on_actionView_Hidden_Files_triggered(); //make sure to update the models too + ui->actionShow_Action_Buttons->setChecked(settings->value("showactions", true).toBool() ); + on_actionShow_Action_Buttons_triggered(); //make sure to update the UI QString view = settings->value("viewmode","details").toString(); if(view=="icons"){ radio_view_icons->setChecked(true); } else if(view=="list"){ radio_view_list->setChecked(true); } @@ -329,12 +352,11 @@ void MainUI::setCurrentDir(QString dir){ currentDir->setWhatsThis(dir); //save the full path internally if(radio_view_details->isChecked()){ ui->tree_dir_view->setRootIndex(fsmod->index(dir)); + ui->tree_dir_view->selectionModel()->clearSelection(); }else{ ui->list_dir_view->setRootIndex(fsmod->index(dir)); + ui->list_dir_view->selectionModel()->clearSelection(); } - //Setup the directory watcher here - //if( !fswatcher->directories().isEmpty() ){ fswatcher->removePaths(fswatcher->directories()); } - //fswatcher->addPath(dir); //Adjust the tab data tabBar->setTabWhatsThis( tabBar->currentIndex(), rawdir ); if(dir!="/"){ tabBar->setTabText( tabBar->currentIndex(), dir.section("/",-1) ); } @@ -353,6 +375,7 @@ void MainUI::setCurrentDir(QString dir){ ui->actionUpDir->setEnabled(dir!="/"); ui->actionBack->setEnabled(history.length() > 1); ui->actionBookMark->setEnabled( rawdir!=QDir::homePath() && settings->value("bookmarks", QStringList()).toStringList().filter("::::"+rawdir).length()<1 ); + ItemSelectionChanged(); RebuildDeviceMenu(); //keep this refreshed } @@ -601,6 +624,10 @@ void MainUI::on_actionView_Hidden_Files_triggered(){ setCurrentDir(getCurrentDir()); } +void MainUI::on_actionShow_Action_Buttons_triggered(){ + ui->group_actions->setVisible(ui->actionShow_Action_Buttons->isChecked()); + settings->setValue("showactions", ui->actionShow_Action_Buttons->isChecked()); +} void MainUI::goToBookmark(QAction *act){ if(act==ui->actionManage_Bookmarks){ BMMDialog dlg(this); @@ -776,34 +803,6 @@ void MainUI::ItemRun(const QModelIndex &index){ } } -void MainUI::ItemRun(QTreeWidgetItem *item){ - //This is called when the user double clicks a file/directory - QString val = item->text(0); - QString itemPath = getCurrentDir(); - if( !itemPath.endsWith("/")){ itemPath.append("/"); } - itemPath.append(val); - if(QFileInfo(itemPath).isDir()){ - setCurrentDir( itemPath ); - }else{ - //Must be a file, try to run it - QProcess::startDetached("lumina-open \""+itemPath+"\""); - } -} - -void MainUI::ItemRun(QListWidgetItem *item){ - //This is called when the user double clicks a file/directory - QString val = item->text(); - QString itemPath = getCurrentDir(); - if( !itemPath.endsWith("/")){ itemPath.append("/"); } - itemPath.append(val); - if(QFileInfo(itemPath).isDir()){ - setCurrentDir( itemPath ); - }else{ - //Must be a file, try to run it - QProcess::startDetached("lumina-open \""+itemPath+"\""); - } -} - void MainUI::OpenContextMenu(const QPoint &pt){ QFileInfo info; if(radio_view_details->isChecked()){ @@ -827,8 +826,8 @@ void MainUI::OpenContextMenu(const QPoint &pt){ if(info.isDir()){ contextMenu->addAction(LXDG::findIcon("tab-new-background",""), tr("Open in new tab"), this, SLOT(OpenDir()) ); }else{ - contextMenu->addAction(LXDG::findIcon("quickopen-file",""), tr("Open"), this, SLOT(OpenItem()) ); - contextMenu->addAction(tr("Open With..."), this, SLOT(OpenItemWith()) ); + contextMenu->addAction(LXDG::findIcon("run-build-file",""), tr("Open"), this, SLOT(OpenItem()) ); + contextMenu->addAction(LXDG::findIcon("run-build-configure",""), tr("Open With..."), this, SLOT(OpenItemWith()) ); } contextMenu->addAction(LXDG::findIcon("edit-rename",""), tr("Rename"), this, SLOT(RenameItem()) )->setEnabled(info.isWritable()); contextMenu->addSeparator(); @@ -848,6 +847,26 @@ void MainUI::OpenContextMenu(const QPoint &pt){ } } +void MainUI::ItemSelectionChanged(){ + //Enable/disable the action buttons + QFileInfoList sel = getSelectedItems(); + ui->tool_act_run->setEnabled(sel.length()==1); + ui->tool_act_runwith->setEnabled(sel.length()==1); + ui->tool_act_rm->setEnabled(!sel.isEmpty() && isUserWritable); + ui->tool_act_rename->setEnabled(sel.length()==1 && isUserWritable); + ui->tool_act_cut->setEnabled(!sel.isEmpty() && isUserWritable); + ui->tool_act_copy->setEnabled(!sel.isEmpty()); + ui->tool_act_paste->setEnabled(QApplication::clipboard()->mimeData()->hasFormat("x-special/lumina-copied-files") && isUserWritable); + if(ui->tool_act_paste->isEnabled()){ + ui->tool_act_paste->setToolTip( QString(tr("Currently on clipboard:\n%1")).arg( QString(QApplication::clipboard()->mimeData()->data("x-special/lumina-copied-files")).replace("::::",": ") ) ); + }else{ + ui->tool_act_paste->setToolTip(""); + } + QString itname; + if(sel.length()==1){ itname = sel[0].fileName(); } + ui->tool_act_fav->setEnabled(!itname.isEmpty() && !QFile::exists(favdir+itname) ); +} + //------------------------------- //Slideshow Functions //------------------------------- @@ -1055,20 +1074,37 @@ void MainUI::playerFileChanged(){ // Context Menu Actions //---------------------------------- void MainUI::OpenItem(){ - if(CItem.isEmpty()){ return; } + if(CItem.isEmpty()){ + QFileInfoList sel = getSelectedItems(); + if(sel.isEmpty()){ return; } + else{ CItem = sel[0].absoluteFilePath(); } + if(sel[0].isDir()){ OpenDir(); return; } //just in case - open it in a new tab + } qDebug() << "Opening File:" << CItem; QProcess::startDetached("lumina-open \""+CItem+"\""); + CItem.clear(); } void MainUI::OpenItemWith(){ - if(CItem.isEmpty()){ return; } + if(CItem.isEmpty()){ + QFileInfoList sel = getSelectedItems(); + if(sel.isEmpty()){ return; } + else{ CItem = sel[0].absoluteFilePath(); } + if(sel[0].isDir()){ OpenDir(); return; } //just in case - open it in a new tab + } qDebug() << "Opening File:" << CItem; QProcess::startDetached("lumina-open -select \""+CItem+"\""); + CItem.clear(); } void MainUI::OpenDir(){ - if(CItem.isEmpty()){ return; } - OpenDirs(QStringList() << CItem); + if(CItem.isEmpty()){ + QFileInfoList sel = getSelectedItems(); + if(sel.isEmpty()){ return; } + else{ CItem = sel[0].absoluteFilePath(); } + } + OpenDirs(QStringList() << CItem); + CItem.clear(); } void MainUI::RemoveItem(){ @@ -1097,8 +1133,12 @@ void MainUI::RemoveItem(){ void MainUI::RenameItem(){ //Only let this run if viewing the browser page if(ui->stackedWidget->currentWidget()!=ui->page_browser){ return; } - if(CItem.isEmpty()){ return; } if(!checkUserPerms()){ return; } + if(CItem.isEmpty()){ + QFileInfoList sel = getSelectedItems(); + if(sel.isEmpty()){ return; } + else{ CItem = sel[0].absoluteFilePath(); } + } QString fname = CItem; QString path = fname; fname = fname.section("/",-1); //turn this into just the file name @@ -1106,7 +1146,7 @@ void MainUI::RenameItem(){ //Now prompt for the new filename bool ok = false; QString nname = QInputDialog::getText(this, tr("Rename File"),tr("New Name:"), QLineEdit::Normal, fname, &ok); - if(!ok || nname.isEmpty()){ return; } //cancelled + if(!ok || nname.isEmpty()){ CItem.clear(); return; } //cancelled //Now check for a file extension and add it if necessary QString oext = fname.section(".",-1); if(oext==fname){ oext.clear(); } //no extension @@ -1119,7 +1159,7 @@ void MainUI::RenameItem(){ bool overwrite = QFile::exists(path+nname); if(overwrite){ if(QMessageBox::Yes != QMessageBox::question(this, tr("Overwrite File?"), tr("An existing file with the same name will be replaced. Are you sure you want to proceed?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::No) ){ - return; //cancelled + CItem.clear(); return; //cancelled } } //Now perform the move @@ -1128,6 +1168,21 @@ void MainUI::RenameItem(){ dlg.setOverwrite(overwrite); dlg.MoveFiles(QStringList() << path+fname, QStringList() << path+nname); dlg.exec(); + CItem.clear(); +} + +void MainUI::FavoriteItem(){ + if(CItem.isEmpty()){ + QFileInfoList sel = getSelectedItems(); + if(sel.isEmpty()){ return; } + else{ CItem = sel[0].absoluteFilePath(); } + } + QString fname = CItem; + QString fullpath = fname; + fname = fname.section("/",-1); //turn this into just the file name + QFile::link(fullpath, favdir+fname); + CItem.clear(); + ItemSelectionChanged(); } void MainUI::CutItems(){ @@ -1138,10 +1193,6 @@ void MainUI::CutItems(){ QFileInfoList sel = getSelectedItems(); QStringList items; if(sel.isEmpty()){ return; } //nothing selected - /*for(int i=0; i<sel.length(); i++){ - sel[i].prepend(base); - } - qDebug() << "Cut Items:" << sel;*/ //Format the data string for(int i=0; i<sel.length(); i++){ items << "cut::::"+sel[i].absoluteFilePath(); @@ -1154,6 +1205,7 @@ void MainUI::CutItems(){ dat->setData("x-special/lumina-copied-files", items.join("\n").toLocal8Bit()); QApplication::clipboard()->clear(); QApplication::clipboard()->setMimeData(dat); + ItemSelectionChanged(); } void MainUI::CopyItems(){ @@ -1163,12 +1215,6 @@ void MainUI::CopyItems(){ QFileInfoList sel = getSelectedItems(); QStringList items; if(sel.isEmpty()){ return; } //nothing selected - /*QString base = getCurrentDir(); - if(!base.endsWith("/")){ base.append("/"); } - for(int i=0; i<sel.length(); i++){ - sel[i].prepend(base); - } - qDebug() << "Copy Items:" << sel;*/ //Format the data string for(int i=0; i<sel.length(); i++){ items << "copy::::"+sel[i].absoluteFilePath(); @@ -1180,6 +1226,7 @@ void MainUI::CopyItems(){ dat->setData("x-special/lumina-copied-files", items.join("\n").toLocal8Bit()); QApplication::clipboard()->clear(); QApplication::clipboard()->setMimeData(dat); + ItemSelectionChanged(); } void MainUI::PasteItems(){ @@ -1230,6 +1277,7 @@ void MainUI::PasteItems(){ QApplication::clipboard()->setMimeData(dat); } } + ItemSelectionChanged(); } diff --git a/lumina-fm/MainUI.h b/lumina-fm/MainUI.h index d065d3fc..3984e109 100644 --- a/lumina-fm/MainUI.h +++ b/lumina-fm/MainUI.h @@ -78,6 +78,7 @@ private: QMenu *contextMenu; QRadioButton *radio_view_details, *radio_view_list, *radio_view_icons; QWidgetAction *detWA, *listWA, *icoWA; + QString favdir; //Phonon Widgets for the multimedia player Phonon::MediaObject *mediaObj; @@ -133,6 +134,7 @@ private slots: void on_actionNew_Tab_triggered(); void on_actionClose_triggered(); void on_actionView_Hidden_Files_triggered(); + void on_actionShow_Action_Buttons_triggered(); void goToBookmark(QAction*); void goToDevice(QAction*); void viewModeChanged(bool); @@ -153,9 +155,10 @@ private slots: void prevTab(); void nextTab(); void ItemRun( const QModelIndex&); - void ItemRun(QTreeWidgetItem *item); - void ItemRun(QListWidgetItem *item); + //void ItemRun(QTreeWidgetItem *item); + //void ItemRun(QListWidgetItem *item); void OpenContextMenu(const QPoint&); + void ItemSelectionChanged(); //Slideshow Functions void showNewPicture(); @@ -190,6 +193,7 @@ private slots: void OpenDir(); //open the dir in a new tab void RemoveItem(); //Remove the item permanently void RenameItem(); + void FavoriteItem(); // - full selection actions void CutItems(); void CopyItems(); diff --git a/lumina-fm/MainUI.ui b/lumina-fm/MainUI.ui index d26e20b1..041a5ee5 100644 --- a/lumina-fm/MainUI.ui +++ b/lumina-fm/MainUI.ui @@ -6,13 +6,81 @@ <rect> <x>0</x> <y>0</y> - <width>543</width> - <height>395</height> + <width>567</width> + <height>415</height> </rect> </property> <property name="windowTitle"> <string>Insight</string> </property> + <property name="styleSheet"> + <string notr="true">QWidget{ color: black; } +QWidget#page_browser,#page_audioPlayer,#page_zfs,#page_image_view{background: +qradialgradient(cx: 0.5, cy: -1.8, fx: 0.5, fy: 0, radius: 2, +stop: 0 #9abbbe, +stop: 1 #7292bf); +} +QMainWindow, QMenu{ background: #f4f0e8; } +QMenuBar, QMenuBar::item, QToolBar{ background: transparent; } +QMenuBar::item:selected, QMenuBar::item:pressed, QMenu::item:selected{ background: qradialgradient(cx: 0.5, cy: -1.8, fx: 0.5, fy: 0, radius: 2, +stop: 0 #f9fafc, +stop: 1 #7292bf); +color: black; +} +QMenu::item{ background: transparent; border: none; color: black; padding: 2px 25px 2px 20px;} +QMenu::indicator{ width: 14px; height: 14px; } + + QMenu::indicator:non-exclusive:unchecked { + image: url(:/trolltech/styles/commonstyle/images/standardbutton-no-16.png); + } + + QMenu::indicator:non-exclusive:unchecked:selected { + image: url(:/trolltech/styles/commonstyle/images/standardbutton-no-16.png); + } + + QMenu::indicator:non-exclusive:checked { + image: url(:/trolltech/styles/commonstyle/images/standardbutton-yes-16.png); + } + + QMenu::indicator:non-exclusive:checked:selected { + image: url(:/trolltech/styles/commonstyle/images/standardbutton-yes-16.png); + } + + QTabBar::tab { + background: qradialgradient(cx: 0.5, cy: -1.8, fx: 0.5, fy: 0, radius: 2, +stop: 0 #f5f0e7, +stop: 1 #efeeed); + border-bottom: 2px solid white; + border-bottom-color: white; /* same as the pane color */ + border-top-left-radius: 4px; + border-top-right-radius: 4px; + min-width: 8ex; + padding: 2px; + } + + QTabBar::tab:selected{ + background: qradialgradient(cx: 0.5, cy: -1.8, fx: 0.5, fy: 0, radius: 2, +stop: 0 #f5f0e7, +stop: 1 #fbf2e1); + } +QTabBar::tab:hover { + background: qradialgradient(cx: 0.5, cy: -1.8, fx: 0.5, fy: 0, radius: 2, +stop: 0 #f5f0e7, +stop: 1 #d0dbea); + } + + QTabBar::tab:!selected { + margin-top: 2px; /* make non-selected tabs look smaller */ + } + +QToolTip{ + background: #f4f0e8; + border: 1px solid #d0dbea; + border-radius: 2px; + padding: 1px; + color: black; +}</string> + </property> <widget class="QWidget" name="centralwidget"> <layout class="QHBoxLayout" name="horizontalLayout_2"> <property name="margin"> @@ -25,13 +93,34 @@ </property> <widget class="QWidget" name="page_browser"> <layout class="QGridLayout" name="gridLayout"> - <item row="0" column="0"> + <property name="leftMargin"> + <number>1</number> + </property> + <property name="topMargin"> + <number>2</number> + </property> + <property name="rightMargin"> + <number>2</number> + </property> + <property name="bottomMargin"> + <number>0</number> + </property> + <property name="spacing"> + <number>1</number> + </property> + <item row="0" column="1"> <layout class="QVBoxLayout" name="verticalLayout_browser"> + <property name="spacing"> + <number>0</number> + </property> <item> <widget class="QListView" name="list_dir_view"> <property name="contextMenuPolicy"> <enum>Qt::CustomContextMenu</enum> </property> + <property name="frameShape"> + <enum>QFrame::NoFrame</enum> + </property> <property name="selectionMode"> <enum>QAbstractItemView::ExtendedSelection</enum> </property> @@ -69,6 +158,12 @@ <property name="contextMenuPolicy"> <enum>Qt::CustomContextMenu</enum> </property> + <property name="frameShape"> + <enum>QFrame::NoFrame</enum> + </property> + <property name="frameShadow"> + <enum>QFrame::Sunken</enum> + </property> <property name="selectionMode"> <enum>QAbstractItemView::ExtendedSelection</enum> </property> @@ -101,128 +196,356 @@ </attribute> </widget> </item> + </layout> + </item> + <item row="0" column="0"> + <widget class="QGroupBox" name="group_actions"> + <property name="title"> + <string/> + </property> + <layout class="QVBoxLayout" name="verticalLayout_3"> + <property name="margin"> + <number>0</number> + </property> + <item> + <widget class="QToolButton" name="tool_act_run"> + <property name="toolTip"> + <string>Open item</string> + </property> + <property name="statusTip"> + <string>Open item</string> + </property> + <property name="text"> + <string notr="true"/> + </property> + <property name="iconSize"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + <property name="toolButtonStyle"> + <enum>Qt::ToolButtonIconOnly</enum> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="tool_act_runwith"> + <property name="toolTip"> + <string>Open item (select application)</string> + </property> + <property name="statusTip"> + <string>Open item (select application)</string> + </property> + <property name="text"> + <string notr="true"/> + </property> + <property name="iconSize"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="Line" name="line_5"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="tool_act_fav"> + <property name="toolTip"> + <string>Add item to personal favorites</string> + </property> + <property name="statusTip"> + <string>Add item to personal favorites</string> + </property> + <property name="text"> + <string notr="true"/> + </property> + <property name="iconSize"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="tool_act_rename"> + <property name="toolTip"> + <string>Rename item</string> + </property> + <property name="statusTip"> + <string>Rename item</string> + </property> + <property name="text"> + <string notr="true"/> + </property> + <property name="iconSize"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="Line" name="line_7"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="tool_act_cut"> + <property name="toolTip"> + <string>Cut items</string> + </property> + <property name="statusTip"> + <string>Cut items (add to the clipboard)</string> + </property> + <property name="text"> + <string notr="true"/> + </property> + <property name="iconSize"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="tool_act_copy"> + <property name="toolTip"> + <string>Copy items</string> + </property> + <property name="statusTip"> + <string>Copy items to the clipboard</string> + </property> + <property name="text"> + <string/> + </property> + <property name="iconSize"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="tool_act_paste"> + <property name="toolTip"> + <string>Paste items from clipboard</string> + </property> + <property name="statusTip"> + <string>Paste items from clipboard</string> + </property> + <property name="text"> + <string notr="true"/> + </property> + <property name="iconSize"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="Line" name="line_6"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="tool_act_rm"> + <property name="toolTip"> + <string>Delete Items</string> + </property> + <property name="statusTip"> + <string>Delete Items</string> + </property> + <property name="text"> + <string/> + </property> + <property name="iconSize"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + </layout> + </widget> + </item> + <item row="1" column="0" colspan="2"> + <layout class="QHBoxLayout" name="horizontalLayout_4"> + <property name="spacing"> + <number>0</number> + </property> <item> - <layout class="QHBoxLayout" name="horizontalLayout_4"> - <property name="spacing"> - <number>0</number> + <widget class="QLabel" name="label_dir_stats"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> </property> - <item> - <widget class="QLabel" name="label_dir_stats"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string notr="true"/> - </property> - </widget> - </item> - <item> - <widget class="QToolButton" name="tool_addToDir"> - <property name="focusPolicy"> - <enum>Qt::NoFocus</enum> - </property> - <property name="statusTip"> - <string>Create a new subdirectory</string> - </property> - <property name="text"> - <string notr="true">&New Dir</string> - </property> - <property name="shortcut"> - <string>Ctrl+N</string> - </property> - <property name="popupMode"> - <enum>QToolButton::InstantPopup</enum> - </property> - <property name="toolButtonStyle"> - <enum>Qt::ToolButtonTextBesideIcon</enum> - </property> - <property name="autoRaise"> - <bool>true</bool> - </property> - </widget> - </item> - <item> - <widget class="QToolButton" name="tool_goToPlayer"> - <property name="focusPolicy"> - <enum>Qt::NoFocus</enum> - </property> - <property name="toolTip"> - <string>Open Multimedia Player</string> - </property> - <property name="statusTip"> - <string>Play any multimedia files in this directory</string> - </property> - <property name="text"> - <string>Play</string> - </property> - <property name="toolButtonStyle"> - <enum>Qt::ToolButtonTextBesideIcon</enum> - </property> - <property name="autoRaise"> - <bool>true</bool> - </property> - </widget> - </item> - <item> - <widget class="QToolButton" name="tool_goToImages"> - <property name="focusPolicy"> - <enum>Qt::NoFocus</enum> - </property> - <property name="toolTip"> - <string>View Slideshow</string> - </property> - <property name="statusTip"> - <string>View all the images in this directory as a slideshow</string> - </property> - <property name="text"> - <string>&Slideshow</string> - </property> - <property name="shortcut"> - <string>Ctrl+S</string> - </property> - <property name="toolButtonStyle"> - <enum>Qt::ToolButtonTextBesideIcon</enum> - </property> - <property name="autoRaise"> - <bool>true</bool> - </property> - </widget> - </item> - <item> - <widget class="QToolButton" name="tool_goToRestore"> - <property name="focusPolicy"> - <enum>Qt::NoFocus</enum> - </property> - <property name="toolTip"> - <string>Restore File(s)</string> - </property> - <property name="statusTip"> - <string>Restore old versions of files or directories</string> - </property> - <property name="text"> - <string>&Backups</string> - </property> - <property name="shortcut"> - <string>Ctrl+B</string> - </property> - <property name="toolButtonStyle"> - <enum>Qt::ToolButtonTextBesideIcon</enum> - </property> - <property name="autoRaise"> - <bool>true</bool> - </property> - </widget> - </item> - </layout> + <property name="font"> + <font> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string notr="true"/> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="tool_addToDir"> + <property name="focusPolicy"> + <enum>Qt::NoFocus</enum> + </property> + <property name="statusTip"> + <string>Create a new subdirectory</string> + </property> + <property name="text"> + <string notr="true">&New Dir</string> + </property> + <property name="shortcut"> + <string>Ctrl+N</string> + </property> + <property name="popupMode"> + <enum>QToolButton::InstantPopup</enum> + </property> + <property name="toolButtonStyle"> + <enum>Qt::ToolButtonTextBesideIcon</enum> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="tool_goToPlayer"> + <property name="focusPolicy"> + <enum>Qt::NoFocus</enum> + </property> + <property name="toolTip"> + <string>Open Multimedia Player</string> + </property> + <property name="statusTip"> + <string>Play any multimedia files in this directory</string> + </property> + <property name="text"> + <string>&Play</string> + </property> + <property name="shortcut"> + <string>Ctrl+P, Ctrl+S</string> + </property> + <property name="toolButtonStyle"> + <enum>Qt::ToolButtonTextBesideIcon</enum> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="tool_goToImages"> + <property name="focusPolicy"> + <enum>Qt::NoFocus</enum> + </property> + <property name="toolTip"> + <string>View Slideshow</string> + </property> + <property name="statusTip"> + <string>View all the images in this directory as a slideshow</string> + </property> + <property name="text"> + <string>&Slideshow</string> + </property> + <property name="shortcut"> + <string>Ctrl+S</string> + </property> + <property name="toolButtonStyle"> + <enum>Qt::ToolButtonTextBesideIcon</enum> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="tool_goToRestore"> + <property name="focusPolicy"> + <enum>Qt::NoFocus</enum> + </property> + <property name="toolTip"> + <string>Restore File(s)</string> + </property> + <property name="statusTip"> + <string>Restore old versions of files or directories</string> + </property> + <property name="text"> + <string>&Backups</string> + </property> + <property name="shortcut"> + <string>Ctrl+B</string> + </property> + <property name="toolButtonStyle"> + <enum>Qt::ToolButtonTextBesideIcon</enum> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> </item> </layout> </item> @@ -644,6 +967,9 @@ <property name="focusPolicy"> <enum>Qt::StrongFocus</enum> </property> + <property name="frameShape"> + <enum>QFrame::NoFrame</enum> + </property> <property name="selectionMode"> <enum>QAbstractItemView::ExtendedSelection</enum> </property> @@ -718,7 +1044,7 @@ <rect> <x>0</x> <y>0</y> - <width>543</width> + <width>567</width> <height>20</height> </rect> </property> @@ -735,6 +1061,7 @@ <string>View</string> </property> <addaction name="actionView_Hidden_Files"/> + <addaction name="actionShow_Action_Buttons"/> <addaction name="separator"/> </widget> <widget class="QMenu" name="menuBookmarks"> @@ -887,6 +1214,17 @@ <string notr="true"/> </property> </action> + <action name="actionShow_Action_Buttons"> + <property name="checkable"> + <bool>true</bool> + </property> + <property name="checked"> + <bool>true</bool> + </property> + <property name="text"> + <string>Show Action Buttons</string> + </property> + </action> </widget> <resources/> <connections/> |