HP Views Designer Assistant  1.0.0
TFG - Alberto Gutierrez Perez - Universidad de Valladolid
editor.h
1 #ifndef EDITOR_H
2 #define EDITOR_H
3 
4 #include <QObject>
5 #include <QQuickItem>
6 #include <Model/interfaz.h>
7 
11 class Editor
12 {
13 public:
14 
20  static Interfaz* edit(QString file);
21 
26  static int getType();
27 
32  static QStringList* getErrorList();
33 
34 private:
35 
41  static Interfaz* edit(QObject *interfaz);
42 
48  static int getType(QObject *myobject);
49 
55  static void getBackground(Interfaz *interfaz, QQuickItem *objectLoaded);
56 
62  static void ink(Interfaz *interfaz, QQuickItem *ink);
63 
69  static void menu(Interfaz *interfaz, QQuickItem *menu);
70 
76  static void information(Interfaz *interfaz, QQuickItem *information);
77 
83  static bool fileExist(const QString path);
84 
85 private:
86 
90  static QStringList *errorList;
91 
95  static int type;
96 };
97 
98 #endif // EDITOR_H
static Interfaz * edit(QString file)
edit Constructs an interface model by the path of QML file.
Definition: editor.cpp:82
static int type
type Type of the interface.
Definition: editor.h:95
static void menu(Interfaz *interfaz, QQuickItem *menu)
menu Contructs an menu interface by the menu item.
Definition: editor.cpp:200
static QStringList * errorList
errorList Errors found during the process.
Definition: editor.h:90
The Interfaz class. Represents generic screen.
Definition: interfaz.h:10
static bool fileExist(const QString path)
fileExist Checks if the file exist in the system.
Definition: editor.cpp:429
static void getBackground(Interfaz *interfaz, QQuickItem *objectLoaded)
getBackground Obtains background options of the interface.
Definition: editor.cpp:128
The Editor class. Creates app inteface models by QML files.
Definition: editor.h:11
static void ink(Interfaz *interfaz, QQuickItem *ink)
ink Contructs an ink interface by the ink item.
Definition: editor.cpp:161
static int getType()
getType Returns the interface type.
Definition: editor.cpp:118
static QStringList * getErrorList()
getErrorList Returns the list errors of the last operation.
Definition: editor.cpp:123
static void information(Interfaz *interfaz, QQuickItem *information)
information Contructs an information interface by the information item.
Definition: editor.cpp:291