diff options
author | Arno <arno@disconnect.de> | 2016-11-11 10:25:53 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2016-11-11 10:25:53 +0100 |
commit | 57c8d4751f2a6e4ab0cd675c269cd950e4f270be (patch) | |
tree | 06dba7cf00be8bfcf18bea764957b843edb4a85e /shemov.cpp | |
parent | d44cada7cd8eee4a0967da2649a8332bdb12346f (diff) | |
download | SheMov-57c8d4751f2a6e4ab0cd675c269cd950e4f270be.tar.gz SheMov-57c8d4751f2a6e4ab0cd675c269cd950e4f270be.tar.bz2 SheMov-57c8d4751f2a6e4ab0cd675c269cd950e4f270be.zip |
Hook up Actions for RandomTab
Create edit and context menus.
Diffstat (limited to 'shemov.cpp')
-rw-r--r-- | shemov.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -94,6 +94,7 @@ SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, fla splash.showMessage(tr("Creating Random Browser..."), Qt::AlignHCenter, Qt::yellow); qApp->processEvents(); mRandomTab = new RandomTab; + connect(mRandomTab, SIGNAL(configure()), this, SLOT(configure())); mTab->addTab(mRandomTab, tr("Random")); //newmoviewizard + dbanalyzer + newpicsdialog + searchdialog @@ -205,6 +206,7 @@ void SheMov::tabChanged(int newTab){ mNewPicsA->setEnabled(newTab == FileManager); mNewMovieWizardA->setEnabled(newTab == FileManager); mArchiveBrowserViewMenuA->setVisible(newTab == ArchiveBrowserTab); + mRandomEditMenuA->setVisible(newTab == RandomDisp); statusbarMessage(QString()); ArchiveController *c = SmGlobals::instance()->archiveController(); switch(newTab){ @@ -940,6 +942,10 @@ void SheMov::createMenus(){ mArchiveEditMenu->addMenu(archiveTreeM); mArchiveEditMenu->addMenu(archiveFilesM); + + // Random + mRandomEditMenu = mRandomTab->editMenu(); + mRandomEditMenuA = menuBar()->insertMenu(mArchiveMenuA, mRandomEditMenu); } void SheMov::createOpenWithMenuFS(){ |