summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2016-11-11 10:25:53 +0100
committerArno <arno@disconnect.de>2016-11-11 10:25:53 +0100
commit57c8d4751f2a6e4ab0cd675c269cd950e4f270be (patch)
tree06dba7cf00be8bfcf18bea764957b843edb4a85e /shemov.cpp
parentd44cada7cd8eee4a0967da2649a8332bdb12346f (diff)
downloadSheMov-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.cpp6
1 files changed, 6 insertions, 0 deletions
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(){