#include "ishowframe.h" #include #include "mainwindow.h" #include "ishowstack.h" #include "dragproxy.h" IShowFrame::IShowFrame(MainWindow *_gui) : QWidget(_gui),gui(_gui) { // Leave HBox hook for adding a list view later QHBoxLayout *IShowFrameLayout = new QHBoxLayout(this); setContentsMargins(0,0,0,0); iShowStack = new IShowStack(this); iShowStack->setMainGUI(gui); IShowFrameLayout->setContentsMargins(0,0,0,0); IShowFrameLayout->addWidget(iShowStack); } IShowFrame::~IShowFrame() { } bool IShowFrame::addIShow(const QString& name) { return iShowStack->addIShow(name); } bool IShowFrame::setCurrentIShow(const QString& name) { // TODO: Check if valid name iShowStack->setCurrentIShow(name); return true; } void IShowFrame::removeAllIShows() { iShowStack->removeAllIShows(); } void IShowFrame::gotoOverviewPage() { iShowStack->gotoOverviewPage(); }