applicationitems.h
1 /*
2  name: tools/editor/applicationitems.h
3 
4  This file is part of ARCS - Augmented Reality Component System
5  (version 2-current), written by Jean-Yves Didier
6  for IBISC Laboratory (http://www.ibisc.univ-evry.fr)
7 
8  Copyright (C) 2013 Université d'Evry-Val d'Essonne
9 
10  This program is free software: you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation, either version 2 of the License, or
13  (at your option) any later version.
14 
15  This program is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with this program. If not, see <http://www.gnu.org/licenses/>.
22 
23 
24  Please send bugreports with examples or suggestions to
25  jean-yves.didier__at__ibisc.univ-evry.fr
26 */
27 
28 
29 #ifndef __APPLICATIONITEMS_H__
30 #define __APPLICATIONITEMS_H__
31 
32 #include <QTreeWidgetItem>
33 
34 class ComponentItem : public QTreeWidgetItem
35 {
36 
37 public:
38  ComponentItem(QString name, QString type);
39 
40  QString getName() { return text(1); }
41  QString getType() { return text(2); }
42 
43  static int Type;
44 
45 };
46 
47 
48 class ProcessItem : public QTreeWidgetItem
49 {
50 
51 public:
52  ProcessItem(QString controller = QString());
53  QString getController() { return text(1); }
54  void setController(QString s) { setText(0,"Process <- " + s); setText(1,s); }
55  static int Type;
56 
57 };
58 
59 
60 class SheetItem : public QTreeWidgetItem
61 {
62 public:
63  SheetItem(QString name = QString());
64  QString getName() { return text(1); }
65  void setName(QString s) { setText(0,"Sheet: " + s); setText(1,s); }
66  static int Type;
67 
68 
69 };
70 
71 
72 
73 #endif // __APPLICATIONITEMS_H__