#include "qt5_supplement.h"
#include "mainwindow.h"
-#include "hardwarekey.h"
+#include "layout/hardwarekey.h"
#include "xmllayoutparser.h"
#include "uiutil.h"
#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
{
$(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
obj-$(CONFIG_QT) += controller/
obj-$(CONFIG_QT) += input/
+obj-$(CONFIG_QT) += layout/
obj-$(CONFIG_QT) += menu/
$(obj)/moc_displayglwidget.o: $(obj)/moc_displayglwidget.cpp
#include <QDialog>
-#include "controllerform.h"
+#include "layout/controllerform.h"
#include "dockingconview.h"
class MainWindow;
#include "skinview.h"
#include "skinbezelitem.h"
-#include "controllerform.h"
+#include "layout/controllerform.h"
class DockingController;
#include <QDialog>
-#include "controllerform.h"
+#include "layout/controllerform.h"
#include "floatingconview.h"
class FloatingController : public QDialog
#include "skinview.h"
#include "skinbezelitem.h"
-#include "controllerform.h"
+#include "layout/controllerform.h"
class FloatingController;
#include <QScrollArea>
#include <QScrollBar>
-#include "hardwarekey.h"
+#include "layout/hardwarekey.h"
#define GPC_HEAD_SPACING (14)
#define GPC_TAIL_SPACING (3)
#include <QWidget>
#include <QPushButton>
-#include "hardwarekey.h"
+#include "layout/hardwarekey.h"
class HWKeyButton : public QPushButton
{
+++ /dev/null
-/*
- * 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");
-}
+++ /dev/null
-/*
- * 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
+++ /dev/null
-/*
- * 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 */
-}
+++ /dev/null
-/*
- * 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
+++ /dev/null
-/*
- * 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");
-}
+++ /dev/null
-/*
- * 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
+++ /dev/null
-/*
- * 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 */
-}
+++ /dev/null
-/*
- * 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
#include <QShortcut>
#include <QMap>
-#include "hardwarekey.h"
+#include "layout/hardwarekey.h"
#include "menu/menuitem.h"
class MainWindow;
--- /dev/null
+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
--- /dev/null
+/*
+ * 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");
+}
--- /dev/null
+/*
+ * 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
--- /dev/null
+/*
+ * 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 */
+}
--- /dev/null
+/*
+ * 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
--- /dev/null
+/*
+ * 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");
+}
--- /dev/null
+/*
+ * 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
--- /dev/null
+/*
+ * 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 */
+}
--- /dev/null
+/*
+ * 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
--- /dev/null
+/*
+ * 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;
+ }
+}
--- /dev/null
+/*
+ * 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
--- /dev/null
+/*
+ * 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();
+}
--- /dev/null
+/*
+ * 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
+++ /dev/null
-/*
- * 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;
- }
-}
+++ /dev/null
-/*
- * 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
+++ /dev/null
-/*
- * 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();
-}
+++ /dev/null
-/*
- * 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
*/
#include "mainwindow.h"
-#include "mainform.h"
+#include "layout/mainform.h"
#include "displayglwidget.h"
#include "displayswwidget.h"
#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"
#include <QWidget>
-#include "displaytype.h"
+#include "layout/displaytype.h"
class SkinPainter
{
#include <QGraphicsView>
-#include "mainform.h"
+#include "layout/mainform.h"
#include "input/keyboardhelper.h"
class MainWindow;
#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