summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp44
1 files changed, 25 insertions, 19 deletions
diff --git a/shemov.cpp b/shemov.cpp
index 2b7666d..9941964 100644
--- a/shemov.cpp
+++ b/shemov.cpp
@@ -433,9 +433,9 @@ void SheMov::createActions(){
//View menu (FS)
mRefreshA = new QAction(tr("Refresh"), this);
connect(mRefreshA, SIGNAL(triggered()), mFSWidget->fileModel(), SLOT(refresh()));
- mFSViewPropertiesA = new QAction(tr("Properties..."), this);
+ mFSViewPropertiesA = new QAction(QIcon(":/bizarre_amputee.png"), tr("Properties..."), this);
connect(mFSViewPropertiesA, SIGNAL(triggered()), mFSWidget->fileView(), SLOT(properties()));
- mFSPreviewA = new QAction(tr("Preview..."), this);
+ mFSPreviewA = new QAction(QIcon(":/male_chastity_belt.png"), tr("Preview..."), this);
connect(mFSPreviewA, SIGNAL(triggered()), mFSWidget, SLOT(preview()));
//Help menu
@@ -587,22 +587,22 @@ void SheMov::createActions(){
mArchiveFilesPlayA = new QAction(tr("Play selected..."), this);
connect(mArchiveFilesPlayA, SIGNAL(triggered()), c, SLOT(playSelectedFiles()));
// set quality
- mArchiveFilesQualityA = new QAction(tr("Set Quality..."), this);
+ mArchiveFilesQualityA = new QAction(QIcon(":/letter_q.png"), tr("Set Quality..."), this);
connect(mArchiveFilesQualityA, SIGNAL(triggered()), c, SLOT(editQuality()));
// set dvd
- mArchiveFilesDvdNoA = new QAction(tr("Set Dvd No. ..."), this);
+ mArchiveFilesDvdNoA = new QAction(QIcon(":/letter_d.png"), tr("Set Dvd No. ..."), this);
connect(mArchiveFilesDvdNoA, SIGNAL(triggered()), c, SLOT(editDvdNo()));
// set file type
- mArchiveFilesTypeA = new QAction(tr("Set file type..."), this);
+ mArchiveFilesTypeA = new QAction(QIcon(":/letter_t.png"), tr("Set file type..."), this);
connect(mArchiveFilesTypeA, SIGNAL(triggered()), c, SLOT(editFileType()));
// set file no
- mArchiveFilesFileNoA = new QAction(tr("Set File No. ..."), this);
+ mArchiveFilesFileNoA = new QAction(QIcon(":/letter_n.png"), tr("Set File No. ..."), this);
connect(mArchiveFilesFileNoA, SIGNAL(triggered()), c, SLOT(editFileNo()));
// show properties
- mArchiveFilesPropertiesA = new QAction(tr("Properties..."), this);
+ mArchiveFilesPropertiesA = new QAction(QIcon(":/bizarre_amputee.png"), tr("Properties..."), this);
connect(mArchiveFilesPropertiesA, SIGNAL(triggered()), c, SLOT(showProperties()));
// preview
- mArchiveFilesPreviewA = new QAction(tr("Preview..."), this);
+ mArchiveFilesPreviewA = new QAction(QIcon(":/male_chastity_belt.png"), tr("Preview..."), this);
connect(mArchiveFilesPreviewA, SIGNAL(triggered()), c, SLOT(showPreview()));
// db analyzer dialogs
@@ -828,17 +828,23 @@ void SheMov::createOpenWithMenuFS(){
}
void SheMov::createToolBar(){
- QToolBar *toolBar = new QToolBar(this);
- toolBar->addAction(mBackDirA);
- toolBar->addAction(mCdupA);
- toolBar->addSeparator();
- toolBar->addAction(mConfigA);
- toolBar->addSeparator();
- toolBar->addActions(mPicActionGroup->actions());
- toolBar->addAction(mPVToggleA);
- toolBar->addSeparator();
- toolBar->addAction(mMountDvdA);
- addToolBar(Qt::LeftToolBarArea, toolBar);
+ mFSWidget->toolBar()->addAction(mBackDirA);
+ mFSWidget->toolBar()->addAction(mCdupA);
+ mFSWidget->toolBar()->addSeparator();
+ mFSWidget->toolBar()->addAction(mConfigA);
+ mFSWidget->toolBar()->addSeparator();
+ mFSWidget->toolBar()->addAction(mFSPreviewA);
+ mFSWidget->toolBar()->addAction(mFSViewPropertiesA);
+
+ mArchive->toolBar()->addAction(mArchiveFilesQualityA);
+ mArchive->toolBar()->addAction(mArchiveFilesDvdNoA);
+ mArchive->toolBar()->addAction(mArchiveFilesTypeA);
+ mArchive->toolBar()->addAction(mArchiveFilesFileNoA);
+ mArchive->toolBar()->addSeparator();
+ mArchive->toolBar()->addAction(mArchiveFilesPreviewA);
+ mArchive->toolBar()->addAction(mArchiveFilesPropertiesA);
+ mArchive->toolBar()->addSeparator();
+ mArchive->toolBar()->addAction(mConfigA);
}
void SheMov::writeSettings(){