From 57c8d4751f2a6e4ab0cd675c269cd950e4f270be Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 11 Nov 2016 10:25:53 +0100 Subject: Hook up Actions for RandomTab Create edit and context menus. --- shemov.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'shemov.cpp') diff --git a/shemov.cpp b/shemov.cpp index 27c3345..9804e94 100644 --- a/shemov.cpp +++ b/shemov.cpp @@ -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(){ -- cgit v1.2.3-70-g09d2