added db conversions and new menu into project panel

This commit is contained in:
itsmattkc
2019-07-21 19:04:32 -07:00
parent f8830beac7
commit 1d25fbd9e7
6 changed files with 50 additions and 0 deletions
+14
View File
@@ -20,9 +20,11 @@
#include "project.h"
#include <QMenu>
#include <QVBoxLayout>
#include "core.h"
#include "widget/menu/menushared.h"
#include "widget/projecttoolbar/projecttoolbar.h"
ProjectPanel::ProjectPanel(QWidget *parent) :
@@ -39,6 +41,9 @@ ProjectPanel::ProjectPanel(QWidget *parent) :
ProjectToolbar* toolbar = new ProjectToolbar(this);
layout->addWidget(toolbar);
// Make toolbar connections
connect(toolbar, SIGNAL(NewClicked()), this, SLOT(ShowNewMenu()));
// Set up main explorer object
explorer_ = new ProjectExplorer(this);
layout->addWidget(explorer_);
@@ -117,3 +122,12 @@ void ProjectPanel::ItemDoubleClickSlot(Item *item)
// FIXME: Double click Item should do something
}
void ProjectPanel::ShowNewMenu()
{
Menu new_menu(this);
olive::menu_shared.AddItemsForNewMenu(&new_menu);
new_menu.exec(QCursor::pos());
}