git-svn-id: file:///svnroot/family-shop-mgr@35 26eb2498-383b-47a6-be48-5d6f36779e85
[family-shop-mgr] / code / family-shop-mgr / GUI / ListManagerView.h
diff --git a/code/family-shop-mgr/GUI/ListManagerView.h b/code/family-shop-mgr/GUI/ListManagerView.h
new file mode 100644 (file)
index 0000000..b6058f3
--- /dev/null
@@ -0,0 +1,41 @@
+/*\r
+ * This file is part of family-shop-mgr.\r
+ *\r
+ * family-shop-mgr is free software: you can redistribute it and/or modify\r
+ * it under the terms of the GNU General Public License as published by\r
+ * the Free Software Foundation, either version 3 of the License, or\r
+ * (at your option) any later version.\r
+ *\r
+ * family-shop-mgr is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with family-shop-mgr.  If not, see <http://www.gnu.org/licenses/>.\r
+ *\r
+ * Author: Unai IRIGOYEN\r
+ * Date: 12/17/2009\r
+ *\r
+ */\r
+\r
+#ifndef LISTMANAGERVIEW_H\r
+#define LISTMANAGERVIEW_H\r
+\r
+#include <QTreeView>\r
+\r
+class ListManagerView : public QTreeView\r
+{\r
+Q_OBJECT\r
+\r
+public:\r
+    ListManagerView(QString xmlFileName, QWidget *parent = 0);\r
+    ~ListManagerView();\r
+\r
+    bool addCategory(QString name);\r
+    bool addItem(QString name);\r
+\r
+    void updateActions();\r
+};\r
+\r
+#endif // LISTMANAGERVIEW_H\r