summaryrefslogtreecommitdiff
path: root/tizen/src/ui/generalskinview.h
diff options
context:
space:
mode:
Diffstat (limited to 'tizen/src/ui/generalskinview.h')
-rw-r--r--tizen/src/ui/generalskinview.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/tizen/src/ui/generalskinview.h b/tizen/src/ui/generalskinview.h
new file mode 100644
index 0000000000..c30ad8427f
--- /dev/null
+++ b/tizen/src/ui/generalskinview.h
@@ -0,0 +1,59 @@
+/*
+ * Qt UI
+ *
+ * Copyright (C) 2017 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * Jihye Kim <jihye424.kim@samsung.com>
+ * SeokYeon Hwang <syeon.hwang@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 GENERALSKINVIEW_H
+#define GENERALSKINVIEW_H
+
+#include <QGraphicsView>
+#include <QGraphicsTextItem>
+
+#include "mainview.h"
+
+#define BORDER_SIZE (2)
+#define HEADER_HEIGHT (30)
+
+class MainWindow;
+
+class GeneralSkinView : public MainView
+{
+public:
+ GeneralSkinView(QGraphicsScene *scene, QWidget *parent = 0);
+ ~GeneralSkinView();
+ QSize getMainSize();
+ QRegion getMainRegion();
+
+protected:
+ void resizeEvent(QResizeEvent *event);
+ void mousePressEvent(QMouseEvent *event);
+ void mouseReleaseEvent(QMouseEvent *event);
+ void mouseMoveEvent(QMouseEvent *event);
+ void createItems();
+};
+
+#endif // GENERALSKINVIEW_H