git-svn-id: file:///svnroot/family-shop-mgr@35 26eb2498-383b-47a6-be48-5d6f36779e85
[family-shop-mgr] / code / family-shop-mgr / GUI / FamilyShoppingManagerMainWindow.h
1 /*
2  * This file is part of family-shop-mgr.
3  *
4  * family-shop-mgr is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * family-shop-mgr is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with family-shop-mgr.  If not, see <http://www.gnu.org/licenses/>.
16  *
17  * Author: Unai IRIGOYEN
18  * Date: 12/07/2009
19  *
20  */
21
22 #ifndef FAMILYSHOPPINGMANAGERMAINWINDOW_H
23 #define FAMILYSHOPPINGMANAGERMAINWINDOW_H
24
25 #include <QMainWindow>
26 #include <QModelIndex>
27
28 class FamilyShoppingManagerMainWindow : public QMainWindow
29 {
30     Q_OBJECT
31
32 public:
33     FamilyShoppingManagerMainWindow(QWidget *parent = 0);
34     ~FamilyShoppingManagerMainWindow();
35
36 private slots:
37     void showListManager();
38     void showGoShopping();
39     void showAbout();
40
41     void addCategory();
42     //void addSubCategory();
43     void addItem();
44     void removeCategoryOrItem();
45     //void insertChild();
46
47 private:
48     QWidget *activityView;
49
50     QAction *showCheckedItemsAction;
51     QAction *goShoppingAction;
52     QAction *endShoppingAction;
53     QAction *aboutAction;
54
55     QAction *addCategoryAction;
56     QAction *addSubCategoryAction();
57     QAction *removeCategoryAction;
58     QAction *addItemAction;
59     QAction *removeItemAction;
60 };
61
62 #endif // FAMILYSHOPPINGMANAGERMAINWINDOW_H