FactDev  0.1
projectswidget.h
1 #ifndef PROJECTSWIDGET_H
2 #define PROJECTSWIDGET_H
3 
4 #include <QWidget>
5 
6 #include "gui/dialogs/addprojectdialog.h"
7 
8 namespace Ui {
9 class ProjectsWidget;
10 }
11 
12 namespace Gui {
13 namespace Widgets {
18 class ProjectsWidget : public QWidget
19 {
20  Q_OBJECT
21 
22 public:
27  explicit ProjectsWidget(QWidget *parent = 0);
28  ~ProjectsWidget();
29 
30 public slots:
35  void newProject();
40  void editSelectedProject();
41 
46  void removeSelectedProject();
47 
52  void updateBtn(bool b, bool remove=true, bool isLocked=false);
53 
57  void lockSelectedProject();
58 signals:
63  void addProject();
64 
68  void editProject();
69 
73  void removeProject();
74 
78  void lockProject();
79 
80 
81 private:
82  Ui::ProjectsWidget *ui;
83 };
84 }
85 }
86 #endif // PROJECTSWIDGET_H
void lockSelectedProject()
lockSelectedProject Event which sends a signal to lock the selected project.
Definition: projectswidget.cpp:37
The ProjectsWidget class Actions on Project.
Definition: projectswidget.h:18
void newProject()
ProjectsWidget::addProject Event which sends a signal to add a new project.
Definition: projectswidget.cpp:18
void editSelectedProject()
ProjectsWidget::editSelectedProject Event which sends a signal to edit the project selected...
Definition: projectswidget.cpp:23
void updateBtn(bool b, bool remove=true, bool isLocked=false)
ProjectsWidget::updateBtn Update the toolbar in tblProjects.
Definition: projectswidget.cpp:31
ProjectsWidget(QWidget *parent=0)
ProjectsWidget::ProjectsWidget Construct a ProjectsWidget.
Definition: projectswidget.cpp:6
void addProject()
ProjectsWidget::addProject Add a new project to the current Customer.
void removeProject()
ProjectsWidget::removeProject Remove the current Project selected.
void removeSelectedProject()
ProjectsWidget::removeSelectedProject Event which sends a signal to remove the project selected...
Definition: projectswidget.cpp:27
void editProject()
ProjectsWidget::editProject Edit the current Project selected.
void lockProject()
lockProject Lock the current project.