00001 #include "actionstab.h" 00002 00003 ActionsTab::ActionsTab(QWidget *parent) : QWidget(parent) 00004 { 00005 setupUi(this); 00006 00007 connect(buttonNewProject, SIGNAL(clicked()), this, SIGNAL(createProject())); 00008 connect(buttonOpenProject, SIGNAL(clicked()), this, SIGNAL(openProject())); 00009 connect(buttonCloseProject, SIGNAL(clicked()), this, SIGNAL(closeProject())); 00010 connect(buttonNewDocument, SIGNAL(clicked()), this, SIGNAL(newDocument())); 00011 connect(buttonImportDocuments, SIGNAL(clicked()), this, SIGNAL(importDocuments())); 00012 } 00013 00014 void ActionsTab::setProjectOpen(bool state) 00015 { 00016 buttonNewProject->setEnabled(!state); 00017 buttonOpenProject->setEnabled(!state); 00018 buttonNewDocument->setEnabled(state); 00019 buttonImportDocuments->setEnabled(state); 00020 buttonCloseProject->setEnabled(state); 00021 }