layout: moved layout source code files
authorGiWoong Kim <giwoong.kim@samsung.com>
Wed, 22 Apr 2015 06:19:53 +0000 (15:19 +0900)
committerGiWoong Kim <giwoong.kim@samsung.com>
Wed, 22 Apr 2015 06:22:36 +0000 (15:22 +0900)
tizen/src/ui/controllerform.cpp -> tizen/src/ui/layout/controllerform.cpp
tizen/src/ui/displaytype.cpp -> tizen/src/ui/layout/displaytype.cpp
tizen/src/ui/hardwarekey.cpp -> tizen/src/ui/layout/hardwarekey.cpp
tizen/src/ui/hovertype.cpp -> tizen/src/ui/layout/hovertype.cpp
tizen/src/ui/layoutform.cpp -> tizen/src/ui/layout/layoutform.cpp
tizen/src/ui/mainform.cpp -> tizen/src/ui/layout/mainform.cpp

Change-Id: I63e54b437ebde8f433a6f614a8790d4847496668
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
40 files changed:
tizen/src/display/qt5_supplement.cpp
tizen/src/display/xmllayoutparser.h
tizen/src/ui/Makefile.objs
tizen/src/ui/controller/dockingcontroller.h
tizen/src/ui/controller/dockingconview.h
tizen/src/ui/controller/floatingcontroller.h
tizen/src/ui/controller/floatingconview.h
tizen/src/ui/controller/generalpurposecon.h
tizen/src/ui/controller/hwkeybutton.h
tizen/src/ui/controllerform.cpp [deleted file]
tizen/src/ui/controllerform.h [deleted file]
tizen/src/ui/displaytype.cpp [deleted file]
tizen/src/ui/displaytype.h [deleted file]
tizen/src/ui/hardwarekey.cpp [deleted file]
tizen/src/ui/hardwarekey.h [deleted file]
tizen/src/ui/hovertype.cpp [deleted file]
tizen/src/ui/hovertype.h [deleted file]
tizen/src/ui/input/keyboardshortcut.h
tizen/src/ui/layout/Makefile.objs [new file with mode: 0644]
tizen/src/ui/layout/controllerform.cpp [new file with mode: 0644]
tizen/src/ui/layout/controllerform.h [new file with mode: 0644]
tizen/src/ui/layout/displaytype.cpp [new file with mode: 0644]
tizen/src/ui/layout/displaytype.h [new file with mode: 0644]
tizen/src/ui/layout/hardwarekey.cpp [new file with mode: 0644]
tizen/src/ui/layout/hardwarekey.h [new file with mode: 0644]
tizen/src/ui/layout/hovertype.cpp [new file with mode: 0644]
tizen/src/ui/layout/hovertype.h [new file with mode: 0644]
tizen/src/ui/layout/layoutform.cpp [new file with mode: 0644]
tizen/src/ui/layout/layoutform.h [new file with mode: 0644]
tizen/src/ui/layout/mainform.cpp [new file with mode: 0644]
tizen/src/ui/layout/mainform.h [new file with mode: 0644]
tizen/src/ui/layoutform.cpp [deleted file]
tizen/src/ui/layoutform.h [deleted file]
tizen/src/ui/mainform.cpp [deleted file]
tizen/src/ui/mainform.h [deleted file]
tizen/src/ui/mainwindow.cpp
tizen/src/ui/skinkeyitem.h
tizen/src/ui/skinpainter.h
tizen/src/ui/skinview.h
tizen/src/ui/uiinformation.h

index 421a1a92f985df775dbae4d1f170d1dbdb9af6c4..2b41034b5defac7f6dd857ae2be3231f5f56d4c1 100644 (file)
@@ -32,7 +32,7 @@
 
 #include "qt5_supplement.h"
 #include "mainwindow.h"
-#include "hardwarekey.h"
+#include "layout/hardwarekey.h"
 #include "xmllayoutparser.h"
 #include "uiutil.h"
 
index d3b65c848f44db87ef9780029360cdc9babe3054..3155da9d30692baf77504963f2bfabc6da3f696a 100644 (file)
 #include <QXmlStreamReader>
 
 #include "uiinformation.h"
-#include "mainform.h"
+#include "layout/mainform.h"
 #include "menu/menuitem.h"
 #include "menu/advancedmenuitem.h"
 #include "menu/scalemenuitem.h"
-#include "controllerform.h"
+#include "layout/controllerform.h"
 
 class XmlLayoutParser
 {
index d792f54c8fe3d1500f72c45038be4b5d8a9007d3..e4c2e4d5ad1e80a7cba9ff03b763523534c388b2 100644 (file)
@@ -5,18 +5,12 @@ $(obj)/qrc_resource.o: $(obj)/qrc_resource.cpp
 $(obj)/qrc_resource.cpp: $(TIZEN_UI)/resource/resource.qrc
        rcc -name resource $< -o $@
 
-obj-$(CONFIG_QT) += controllerform.o
 obj-$(CONFIG_QT) += displaybase.o
 obj-$(CONFIG_QT) += displayglwidget.o moc_displayglwidget.o
 obj-$(CONFIG_QT) += displayswwidget.o moc_displayswwidget.o
-obj-$(CONFIG_QT) += hardwarekey.o
 obj-$(CONFIG_QT) += mainwindow.o moc_mainwindow.o
 obj-$(CONFIG_QT) += skinbezelitem.o
 obj-$(CONFIG_QT) += skinkeyitem.o moc_skinkeyitem.o
-obj-$(CONFIG_QT) += displaytype.o
-obj-$(CONFIG_QT) += hovertype.o
-obj-$(CONFIG_QT) += layoutform.o
-obj-$(CONFIG_QT) += mainform.o
 obj-$(CONFIG_QT) += skinview.o
 obj-$(CONFIG_QT) += skinpainter.o
 obj-$(CONFIG_QT) += uiinformation.o
@@ -26,6 +20,7 @@ obj-$(CONFIG_QT) += qrc_resource.o
 
 obj-$(CONFIG_QT) += controller/
 obj-$(CONFIG_QT) += input/
+obj-$(CONFIG_QT) += layout/
 obj-$(CONFIG_QT) += menu/
 
 $(obj)/moc_displayglwidget.o: $(obj)/moc_displayglwidget.cpp
index d183eacccf8cb0c1b4e11c7e1b4cfb6a461a8e5c..f0c0e04a875dbc8c9ca13961f65eb4b24b856572 100644 (file)
@@ -32,7 +32,7 @@
 
 #include <QDialog>
 
-#include "controllerform.h"
+#include "layout/controllerform.h"
 #include "dockingconview.h"
 
 class MainWindow;
index 9579b46cad79d4924a698401d6c61bb8b1c131a4..46c67bf91307db0a9e8789d839999e83312edf50 100644 (file)
@@ -34,7 +34,7 @@
 
 #include "skinview.h"
 #include "skinbezelitem.h"
-#include "controllerform.h"
+#include "layout/controllerform.h"
 
 class DockingController;
 
index 24aabab9574d364a0c457a56b8fb9acec469b1af..5a778df094fda43d9437e03d1ccc0b16ec73044d 100644 (file)
@@ -32,7 +32,7 @@
 
 #include <QDialog>
 
-#include "controllerform.h"
+#include "layout/controllerform.h"
 #include "floatingconview.h"
 
 class FloatingController : public QDialog
index 164e964433f9da70a9d5af0bf7b0b6552ecefa9f..41a753fb7c5f55a24ccbfae52d5f7e0fca53a8ea 100644 (file)
@@ -34,7 +34,7 @@
 
 #include "skinview.h"
 #include "skinbezelitem.h"
-#include "controllerform.h"
+#include "layout/controllerform.h"
 
 class FloatingController;
 
index 0a72aa91f4d4e75a6fb0df405ccffaa203431da1..fff187fa7c31a0b66c3d57284c130aa2981a2ac8 100644 (file)
@@ -34,7 +34,7 @@
 #include <QScrollArea>
 #include <QScrollBar>
 
-#include "hardwarekey.h"
+#include "layout/hardwarekey.h"
 
 #define GPC_HEAD_SPACING (14)
 #define GPC_TAIL_SPACING (3)
index 5e2d27fadf5c69a5abbc7e92ecec5b31681eff16..b758c2672f04325d9bdd392a3ea91dc06e7c345e 100644 (file)
@@ -33,7 +33,7 @@
 #include <QWidget>
 #include <QPushButton>
 
-#include "hardwarekey.h"
+#include "layout/hardwarekey.h"
 
 class HWKeyButton : public QPushButton
 {
diff --git a/tizen/src/ui/controllerform.cpp b/tizen/src/ui/controllerform.cpp
deleted file mode 100644 (file)
index 4b1b924..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Qt UI
- *
- * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * GiWoong Kim <giwoong.kim@samsung.com>
- * Sangho Park <sangho1206.park@samsung.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-#include "controllerform.h"
-
-ControllerForm::ControllerForm(const QString &name) : LayoutForm(name)
-{
-    /* do nothing */
-}
-
-ControllerForm::~ControllerForm()
-{
-    qDebug("destroy con layout");
-}
diff --git a/tizen/src/ui/controllerform.h b/tizen/src/ui/controllerform.h
deleted file mode 100644 (file)
index 79f5537..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Qt UI
- *
- * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * GiWoong Kim <giwoong.kim@samsung.com>
- * Sangho Park <sangho1206.park@samsung.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-#ifndef CONTROLLERFORM_H
-#define CONTROLLERFORM_H
-
-#include <QWidget>
-
-#include "layoutform.h"
-#include "hardwarekey.h"
-
-class ControllerForm : public LayoutForm
-{
-    Q_ENUMS(ConImgType)
-
-public:
-    ControllerForm(const QString &name);
-    ~ControllerForm();
-
-    QImage conImg[2];
-    QList<HardwareKey *> keyList;
-    QRect centerRect;
-
-    enum ConImgType {
-        normal = 0,
-        pressed = 1
-    };
-};
-
-#endif // CONTROLLERFORM_H
diff --git a/tizen/src/ui/displaytype.cpp b/tizen/src/ui/displaytype.cpp
deleted file mode 100644 (file)
index 97073cf..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Qt UI
- *
- * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * GiWoong Kim <giwoong.kim@samsung.com>
- * Sangho Park <sangho1206.park@samsung.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-#include "displaytype.h"
-
-DisplayType::DisplayType(QRect rect, int angle)
-{
-    this->rect = rect;
-    this->angle = angle;
-}
-
-void DisplayType::setRect(QRect rect)
-{
-    this->rect = rect;
-}
-
-QRect DisplayType::getRect()
-{
-    return rect;
-}
-
-int DisplayType::getAngle()
-{
-    return angle % 360;
-}
-
-DisplayType::~DisplayType()
-{
-    /* do nothing */
-}
diff --git a/tizen/src/ui/displaytype.h b/tizen/src/ui/displaytype.h
deleted file mode 100644 (file)
index edfb59a..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Qt UI
- *
- * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * GiWoong Kim <giwoong.kim@samsung.com>
- * Sangho Park <sangho1206.park@samsung.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-#ifndef DISPLAYTYPE_H
-#define DISPLAYTYPE_H
-
-#include <QWidget>
-
-class DisplayType
-{
-public:
-    DisplayType(QRect rect, int angle);
-    ~DisplayType();
-
-    void setRect(QRect rect);
-    QRect getRect();
-    int getAngle();
-
-private:
-    QRect rect;
-    int angle;
-};
-
-#endif // DISPLAYTYPE_H
diff --git a/tizen/src/ui/hardwarekey.cpp b/tizen/src/ui/hardwarekey.cpp
deleted file mode 100644 (file)
index e525d36..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Qt UI
- *
- * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * GiWoong Kim <giwoong.kim@samsung.com>
- * Sangho Park <sangho1206.park@samsung.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-#include "hardwarekey.h"
-
-HardwareKey::HardwareKey(QString name, int keycode, QRect region, QString tooltip, QString keySequence)
-{
-    this->name = name;
-    this->keycode = keycode;
-    this->region = region;
-    this->tooltip = tooltip;
-    this->keySequence = keySequence;
-}
-
-HardwareKey::~HardwareKey()
-{
-    qDebug("destroy HW key");
-}
diff --git a/tizen/src/ui/hardwarekey.h b/tizen/src/ui/hardwarekey.h
deleted file mode 100644 (file)
index 4b85f75..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Qt UI
- *
- * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * GiWoong Kim <giwoong.kim@samsung.com>
- * Sangho Park <sangho1206.park@samsung.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-#ifndef HARDWAREKEY_H
-#define HARDWAREKEY_H
-
-#include <QWidget>
-
-class HardwareKey
-{
-public:
-    HardwareKey(QString name, int keycode, QRect region, QString tooltip, QString keySequence);
-    ~HardwareKey();
-
-    QString name;
-    int keycode;
-    QRect region;
-    QString tooltip;
-    QString keySequence;
-};
-
-#endif // HARDWAREKEY_H
diff --git a/tizen/src/ui/hovertype.cpp b/tizen/src/ui/hovertype.cpp
deleted file mode 100644 (file)
index 028832b..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Qt UI
- *
- * Copyright (C) 2015 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * GiWoong Kim <giwoong.kim@samsung.com>
- * Sangho Park <sangho1206.park@samsung.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-#include "hovertype.h"
-
-HoverType::HoverType(QColor color)
-{
-    this->color = color;
-    this->fill = false;
-}
-
-QColor HoverType::getColor()
-{
-    return color;
-}
-
-HoverType::~HoverType()
-{
-    /* do nothing */
-}
diff --git a/tizen/src/ui/hovertype.h b/tizen/src/ui/hovertype.h
deleted file mode 100644 (file)
index 1798f86..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Qt UI
- *
- * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * GiWoong Kim <giwoong.kim@samsung.com>
- * Sangho Park <sangho1206.park@samsung.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-#ifndef HOVERTYPE_H
-#define HOVERTYPE_H
-
-#include <QWidget>
-
-class HoverType
-{
-public:
-    HoverType(QColor color);
-    ~HoverType();
-
-    QColor getColor();
-
-private:
-    QColor color;
-    bool fill; //TODO:
-};
-
-#endif // HOVERTYPE_H
index 353472f73d1577aa12cb32ba1f323c7b226460db..f178d99f8e92ceb99c1308a898a898311ed1082c 100644 (file)
@@ -35,7 +35,7 @@
 #include <QShortcut>
 #include <QMap>
 
-#include "hardwarekey.h"
+#include "layout/hardwarekey.h"
 #include "menu/menuitem.h"
 
 class MainWindow;
diff --git a/tizen/src/ui/layout/Makefile.objs b/tizen/src/ui/layout/Makefile.objs
new file mode 100644 (file)
index 0000000..b10587a
--- /dev/null
@@ -0,0 +1,6 @@
+obj-$(CONFIG_QT) += layoutform.o
+obj-$(CONFIG_QT) += mainform.o
+obj-$(CONFIG_QT) += controllerform.o
+obj-$(CONFIG_QT) += displaytype.o
+obj-$(CONFIG_QT) += hardwarekey.o
+obj-$(CONFIG_QT) += hovertype.o
\ No newline at end of file
diff --git a/tizen/src/ui/layout/controllerform.cpp b/tizen/src/ui/layout/controllerform.cpp
new file mode 100644 (file)
index 0000000..4b1b924
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+ * Qt UI
+ *
+ * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * GiWoong Kim <giwoong.kim@samsung.com>
+ * Sangho Park <sangho1206.park@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+#include "controllerform.h"
+
+ControllerForm::ControllerForm(const QString &name) : LayoutForm(name)
+{
+    /* do nothing */
+}
+
+ControllerForm::~ControllerForm()
+{
+    qDebug("destroy con layout");
+}
diff --git a/tizen/src/ui/layout/controllerform.h b/tizen/src/ui/layout/controllerform.h
new file mode 100644 (file)
index 0000000..79f5537
--- /dev/null
@@ -0,0 +1,56 @@
+/*
+ * Qt UI
+ *
+ * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * GiWoong Kim <giwoong.kim@samsung.com>
+ * Sangho Park <sangho1206.park@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+#ifndef CONTROLLERFORM_H
+#define CONTROLLERFORM_H
+
+#include <QWidget>
+
+#include "layoutform.h"
+#include "hardwarekey.h"
+
+class ControllerForm : public LayoutForm
+{
+    Q_ENUMS(ConImgType)
+
+public:
+    ControllerForm(const QString &name);
+    ~ControllerForm();
+
+    QImage conImg[2];
+    QList<HardwareKey *> keyList;
+    QRect centerRect;
+
+    enum ConImgType {
+        normal = 0,
+        pressed = 1
+    };
+};
+
+#endif // CONTROLLERFORM_H
diff --git a/tizen/src/ui/layout/displaytype.cpp b/tizen/src/ui/layout/displaytype.cpp
new file mode 100644 (file)
index 0000000..97073cf
--- /dev/null
@@ -0,0 +1,56 @@
+/*
+ * Qt UI
+ *
+ * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * GiWoong Kim <giwoong.kim@samsung.com>
+ * Sangho Park <sangho1206.park@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+#include "displaytype.h"
+
+DisplayType::DisplayType(QRect rect, int angle)
+{
+    this->rect = rect;
+    this->angle = angle;
+}
+
+void DisplayType::setRect(QRect rect)
+{
+    this->rect = rect;
+}
+
+QRect DisplayType::getRect()
+{
+    return rect;
+}
+
+int DisplayType::getAngle()
+{
+    return angle % 360;
+}
+
+DisplayType::~DisplayType()
+{
+    /* do nothing */
+}
diff --git a/tizen/src/ui/layout/displaytype.h b/tizen/src/ui/layout/displaytype.h
new file mode 100644 (file)
index 0000000..edfb59a
--- /dev/null
@@ -0,0 +1,50 @@
+/*
+ * Qt UI
+ *
+ * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * GiWoong Kim <giwoong.kim@samsung.com>
+ * Sangho Park <sangho1206.park@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+#ifndef DISPLAYTYPE_H
+#define DISPLAYTYPE_H
+
+#include <QWidget>
+
+class DisplayType
+{
+public:
+    DisplayType(QRect rect, int angle);
+    ~DisplayType();
+
+    void setRect(QRect rect);
+    QRect getRect();
+    int getAngle();
+
+private:
+    QRect rect;
+    int angle;
+};
+
+#endif // DISPLAYTYPE_H
diff --git a/tizen/src/ui/layout/hardwarekey.cpp b/tizen/src/ui/layout/hardwarekey.cpp
new file mode 100644 (file)
index 0000000..e525d36
--- /dev/null
@@ -0,0 +1,44 @@
+/*
+ * Qt UI
+ *
+ * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * GiWoong Kim <giwoong.kim@samsung.com>
+ * Sangho Park <sangho1206.park@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+#include "hardwarekey.h"
+
+HardwareKey::HardwareKey(QString name, int keycode, QRect region, QString tooltip, QString keySequence)
+{
+    this->name = name;
+    this->keycode = keycode;
+    this->region = region;
+    this->tooltip = tooltip;
+    this->keySequence = keySequence;
+}
+
+HardwareKey::~HardwareKey()
+{
+    qDebug("destroy HW key");
+}
diff --git a/tizen/src/ui/layout/hardwarekey.h b/tizen/src/ui/layout/hardwarekey.h
new file mode 100644 (file)
index 0000000..4b85f75
--- /dev/null
@@ -0,0 +1,48 @@
+/*
+ * Qt UI
+ *
+ * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * GiWoong Kim <giwoong.kim@samsung.com>
+ * Sangho Park <sangho1206.park@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+#ifndef HARDWAREKEY_H
+#define HARDWAREKEY_H
+
+#include <QWidget>
+
+class HardwareKey
+{
+public:
+    HardwareKey(QString name, int keycode, QRect region, QString tooltip, QString keySequence);
+    ~HardwareKey();
+
+    QString name;
+    int keycode;
+    QRect region;
+    QString tooltip;
+    QString keySequence;
+};
+
+#endif // HARDWAREKEY_H
diff --git a/tizen/src/ui/layout/hovertype.cpp b/tizen/src/ui/layout/hovertype.cpp
new file mode 100644 (file)
index 0000000..028832b
--- /dev/null
@@ -0,0 +1,46 @@
+/*
+ * Qt UI
+ *
+ * Copyright (C) 2015 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * GiWoong Kim <giwoong.kim@samsung.com>
+ * Sangho Park <sangho1206.park@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+#include "hovertype.h"
+
+HoverType::HoverType(QColor color)
+{
+    this->color = color;
+    this->fill = false;
+}
+
+QColor HoverType::getColor()
+{
+    return color;
+}
+
+HoverType::~HoverType()
+{
+    /* do nothing */
+}
diff --git a/tizen/src/ui/layout/hovertype.h b/tizen/src/ui/layout/hovertype.h
new file mode 100644 (file)
index 0000000..1798f86
--- /dev/null
@@ -0,0 +1,48 @@
+/*
+ * Qt UI
+ *
+ * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * GiWoong Kim <giwoong.kim@samsung.com>
+ * Sangho Park <sangho1206.park@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+#ifndef HOVERTYPE_H
+#define HOVERTYPE_H
+
+#include <QWidget>
+
+class HoverType
+{
+public:
+    HoverType(QColor color);
+    ~HoverType();
+
+    QColor getColor();
+
+private:
+    QColor color;
+    bool fill; //TODO:
+};
+
+#endif // HOVERTYPE_H
diff --git a/tizen/src/ui/layout/layoutform.cpp b/tizen/src/ui/layout/layoutform.cpp
new file mode 100644 (file)
index 0000000..2fcfd7b
--- /dev/null
@@ -0,0 +1,71 @@
+/*
+ * Qt UI
+ *
+ * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * GiWoong Kim <giwoong.kim@samsung.com>
+ * Sangho Park <sangho1206.park@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+#include <QDebug>
+
+#include "layoutform.h"
+
+LayoutForm::LayoutForm(const QString &name)
+{
+    this->name = name;
+    this->generalPurpose = false;
+    this->hoverType = NULL;
+}
+
+QString LayoutForm::getName()
+{
+    return name;
+}
+
+void LayoutForm::setGeneralPurpose(bool general)
+{
+    generalPurpose = general;
+}
+
+bool LayoutForm::isGeneralPurpose()
+{
+    return generalPurpose;
+}
+
+void LayoutForm::setHoverType(HoverType *hover)
+{
+    hoverType = hover;
+}
+
+HoverType *LayoutForm::getHoverType()
+{
+    return hoverType;
+}
+
+LayoutForm::~LayoutForm()
+{
+    if (hoverType != NULL) {
+        delete hoverType;
+    }
+}
diff --git a/tizen/src/ui/layout/layoutform.h b/tizen/src/ui/layout/layoutform.h
new file mode 100644 (file)
index 0000000..0e22566
--- /dev/null
@@ -0,0 +1,55 @@
+/*
+ * Qt UI
+ *
+ * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * GiWoong Kim <giwoong.kim@samsung.com>
+ * Sangho Park <sangho1206.park@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+#ifndef LAYOUTFORM_H
+#define LAYOUTFORM_H
+
+#include <QWidget>
+
+#include "hovertype.h"
+
+class LayoutForm
+{
+public:
+    LayoutForm(const QString &name);
+    ~LayoutForm();
+
+    QString getName();
+    void setGeneralPurpose(bool general);
+    bool isGeneralPurpose();
+    void setHoverType(HoverType *hover);
+    HoverType *getHoverType();
+
+private:
+    QString name;
+    bool generalPurpose;
+    HoverType *hoverType;
+};
+
+#endif // LAYOUTFORM_H
diff --git a/tizen/src/ui/layout/mainform.cpp b/tizen/src/ui/layout/mainform.cpp
new file mode 100644 (file)
index 0000000..3076e7b
--- /dev/null
@@ -0,0 +1,49 @@
+/*
+ * Qt UI
+ *
+ * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * GiWoong Kim <giwoong.kim@samsung.com>
+ * Sangho Park <sangho1206.park@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+#include "mainform.h"
+
+MainForm::MainForm(const QString &name) : LayoutForm(name)
+{
+    this->displayType = NULL;
+}
+
+MainForm::~MainForm()
+{
+    qDebug("destroy main form");
+
+    if (displayType != NULL) {
+        delete displayType;
+    }
+
+    for (int i = 0; i < keyList.count(); i++) {
+        delete keyList.at(i);
+    }
+    keyList.clear();
+}
diff --git a/tizen/src/ui/layout/mainform.h b/tizen/src/ui/layout/mainform.h
new file mode 100644 (file)
index 0000000..9de052b
--- /dev/null
@@ -0,0 +1,57 @@
+/*
+ * Qt UI
+ *
+ * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * GiWoong Kim <giwoong.kim@samsung.com>
+ * Sangho Park <sangho1206.park@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+#ifndef MAINFORM_H
+#define MAINFORM_H
+
+#include <QWidget>
+
+#include "layoutform.h"
+#include "displaytype.h"
+#include "hardwarekey.h"
+
+class MainForm : public LayoutForm
+{
+    Q_ENUMS(SkinImgType)
+
+public:
+    MainForm(const QString &name);
+    ~MainForm();
+
+    DisplayType *displayType;
+    QImage skinImg[2];
+    QList<HardwareKey *> keyList;
+
+    enum SkinImgType {
+        normal = 0,
+        pressed = 1
+    };
+};
+
+#endif // MAINFORM_H
diff --git a/tizen/src/ui/layoutform.cpp b/tizen/src/ui/layoutform.cpp
deleted file mode 100644 (file)
index 2fcfd7b..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Qt UI
- *
- * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * GiWoong Kim <giwoong.kim@samsung.com>
- * Sangho Park <sangho1206.park@samsung.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-#include <QDebug>
-
-#include "layoutform.h"
-
-LayoutForm::LayoutForm(const QString &name)
-{
-    this->name = name;
-    this->generalPurpose = false;
-    this->hoverType = NULL;
-}
-
-QString LayoutForm::getName()
-{
-    return name;
-}
-
-void LayoutForm::setGeneralPurpose(bool general)
-{
-    generalPurpose = general;
-}
-
-bool LayoutForm::isGeneralPurpose()
-{
-    return generalPurpose;
-}
-
-void LayoutForm::setHoverType(HoverType *hover)
-{
-    hoverType = hover;
-}
-
-HoverType *LayoutForm::getHoverType()
-{
-    return hoverType;
-}
-
-LayoutForm::~LayoutForm()
-{
-    if (hoverType != NULL) {
-        delete hoverType;
-    }
-}
diff --git a/tizen/src/ui/layoutform.h b/tizen/src/ui/layoutform.h
deleted file mode 100644 (file)
index 0e22566..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Qt UI
- *
- * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * GiWoong Kim <giwoong.kim@samsung.com>
- * Sangho Park <sangho1206.park@samsung.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-#ifndef LAYOUTFORM_H
-#define LAYOUTFORM_H
-
-#include <QWidget>
-
-#include "hovertype.h"
-
-class LayoutForm
-{
-public:
-    LayoutForm(const QString &name);
-    ~LayoutForm();
-
-    QString getName();
-    void setGeneralPurpose(bool general);
-    bool isGeneralPurpose();
-    void setHoverType(HoverType *hover);
-    HoverType *getHoverType();
-
-private:
-    QString name;
-    bool generalPurpose;
-    HoverType *hoverType;
-};
-
-#endif // LAYOUTFORM_H
diff --git a/tizen/src/ui/mainform.cpp b/tizen/src/ui/mainform.cpp
deleted file mode 100644 (file)
index 3076e7b..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Qt UI
- *
- * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * GiWoong Kim <giwoong.kim@samsung.com>
- * Sangho Park <sangho1206.park@samsung.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-#include "mainform.h"
-
-MainForm::MainForm(const QString &name) : LayoutForm(name)
-{
-    this->displayType = NULL;
-}
-
-MainForm::~MainForm()
-{
-    qDebug("destroy main form");
-
-    if (displayType != NULL) {
-        delete displayType;
-    }
-
-    for (int i = 0; i < keyList.count(); i++) {
-        delete keyList.at(i);
-    }
-    keyList.clear();
-}
diff --git a/tizen/src/ui/mainform.h b/tizen/src/ui/mainform.h
deleted file mode 100644 (file)
index 9de052b..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Qt UI
- *
- * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * GiWoong Kim <giwoong.kim@samsung.com>
- * Sangho Park <sangho1206.park@samsung.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-#ifndef MAINFORM_H
-#define MAINFORM_H
-
-#include <QWidget>
-
-#include "layoutform.h"
-#include "displaytype.h"
-#include "hardwarekey.h"
-
-class MainForm : public LayoutForm
-{
-    Q_ENUMS(SkinImgType)
-
-public:
-    MainForm(const QString &name);
-    ~MainForm();
-
-    DisplayType *displayType;
-    QImage skinImg[2];
-    QList<HardwareKey *> keyList;
-
-    enum SkinImgType {
-        normal = 0,
-        pressed = 1
-    };
-};
-
-#endif // MAINFORM_H
index 997d7e1043cc150cafcae0260bf0fe757bc3933d..c7d55fa1917bc0336919e4011e29c2a45b4304f9 100644 (file)
@@ -31,7 +31,7 @@
  */
 
 #include "mainwindow.h"
-#include "mainform.h"
+#include "layout/mainform.h"
 #include "displayglwidget.h"
 #include "displayswwidget.h"
 
index 8f63440f545e5e54fd7b189bf84fad06c39f8d3a..5dad7f74c101074edc7a6409f07d55805fb46e89 100644 (file)
@@ -35,8 +35,8 @@
 #include <QTimer>
 
 #include "skinbezelitem.h"
-#include "hardwarekey.h"
-#include "hovertype.h"
+#include "layout/hardwarekey.h"
+#include "layout/hovertype.h"
 
 extern "C" {
 #include "skin/maruskin_operation.h"
index 9db0ff6196d1baa05b22819914868192b2575c21..bfd8771536a8407a2a8eab311b45390d3833f558 100644 (file)
@@ -32,7 +32,7 @@
 
 #include <QWidget>
 
-#include "displaytype.h"
+#include "layout/displaytype.h"
 
 class SkinPainter
 {
index 33663e28b1a5eaf73c6650d2f998387150a52e97..bec3a6852de77d15bdb41b816415131293e9a01a 100644 (file)
@@ -32,7 +32,7 @@
 
 #include <QGraphicsView>
 
-#include "mainform.h"
+#include "layout/mainform.h"
 #include "input/keyboardhelper.h"
 
 class MainWindow;
index a5c415f7e91ca98f42aa45d1fd2e0a4a356bb053..1e8c02d12bf3c3dbee9c8f8bf3db33fc406482b3 100644 (file)
@@ -32,9 +32,9 @@
 
 #include <QtWidgets>
 
-#include "mainform.h"
+#include "layout/mainform.h"
 #include "uistate.h"
-#include "controllerform.h"
+#include "layout/controllerform.h"
 #include "menu/menuitem.h"
 
 class UIInformation