OSDN Git Service

環境設定を実装。
authorMasayuki Satoh <miyabi.satoh@gmail.com>
Thu, 21 Aug 2014 11:10:25 +0000 (20:10 +0900)
committerMasayuki Satoh <miyabi.satoh@gmail.com>
Thu, 21 Aug 2014 11:10:25 +0000 (20:10 +0900)
clickablelabel.cpp [new file with mode: 0644]
clickablelabel.h [new file with mode: 0644]
colorsamplemodel.cpp [new file with mode: 0644]
colorsamplemodel.h [new file with mode: 0644]
preferencedialog.cpp [new file with mode: 0644]
preferencedialog.h [new file with mode: 0644]
preferencedialog.ui [new file with mode: 0644]

diff --git a/clickablelabel.cpp b/clickablelabel.cpp
new file mode 100644 (file)
index 0000000..0682ddf
--- /dev/null
@@ -0,0 +1,6 @@
+#include "clickablelabel.h"
+
+ClickableLabel::ClickableLabel(QWidget *parent) :
+    QLabel(parent)
+{
+}
diff --git a/clickablelabel.h b/clickablelabel.h
new file mode 100644 (file)
index 0000000..94fe249
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef CLICKABLELABEL_H
+#define CLICKABLELABEL_H
+
+#include <QLabel>
+
+class ClickableLabel : public QLabel
+{
+    Q_OBJECT
+public:
+    explicit ClickableLabel(QWidget *parent = 0);
+
+signals:
+
+public slots:
+
+};
+
+#endif // CLICKABLELABEL_H
diff --git a/colorsamplemodel.cpp b/colorsamplemodel.cpp
new file mode 100644 (file)
index 0000000..f997a68
--- /dev/null
@@ -0,0 +1,6 @@
+#include "colorsamplemodel.h"
+
+ColorSampleModel::ColorSampleModel(QObject *parent) :
+    QAbstractTableModel(parent)
+{
+}
diff --git a/colorsamplemodel.h b/colorsamplemodel.h
new file mode 100644 (file)
index 0000000..8476947
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef COLORSAMPLEMODEL_H
+#define COLORSAMPLEMODEL_H
+
+#include <QAbstractTableModel>
+
+class ColorSampleModel : public QAbstractTableModel
+{
+    Q_OBJECT
+public:
+    explicit ColorSampleModel(QObject *parent = 0);
+
+signals:
+
+public slots:
+
+};
+
+#endif // COLORSAMPLEMODEL_H
diff --git a/preferencedialog.cpp b/preferencedialog.cpp
new file mode 100644 (file)
index 0000000..427b509
--- /dev/null
@@ -0,0 +1,14 @@
+#include "preferencedialog.h"
+#include "ui_preferencedialog.h"
+
+PreferenceDialog::PreferenceDialog(QWidget *parent) :
+    QDialog(parent),
+    ui(new Ui::PreferenceDialog)
+{
+    ui->setupUi(this);
+}
+
+PreferenceDialog::~PreferenceDialog()
+{
+    delete ui;
+}
diff --git a/preferencedialog.h b/preferencedialog.h
new file mode 100644 (file)
index 0000000..414f4e8
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef PREFERENCEDIALOG_H
+#define PREFERENCEDIALOG_H
+
+#include <QDialog>
+
+namespace Ui {
+class PreferenceDialog;
+}
+
+class PreferenceDialog : public QDialog
+{
+    Q_OBJECT
+
+public:
+    explicit PreferenceDialog(QWidget *parent = 0);
+    ~PreferenceDialog();
+
+private:
+    Ui::PreferenceDialog *ui;
+};
+
+#endif // PREFERENCEDIALOG_H
diff --git a/preferencedialog.ui b/preferencedialog.ui
new file mode 100644 (file)
index 0000000..0b5e46c
--- /dev/null
@@ -0,0 +1,71 @@
+<ui version="4.0">
+ <author/>
+ <comment/>
+ <exportmacro/>
+ <class>PreferenceDialog</class>
+ <widget class="QDialog" name="PreferenceDialog">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>400</width>
+    <height>300</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Dialog</string>
+  </property>
+  <widget class="QDialogButtonBox" name="buttonBox">
+   <property name="geometry">
+    <rect>
+     <x>30</x>
+     <y>240</y>
+     <width>341</width>
+     <height>32</height>
+    </rect>
+   </property>
+   <property name="orientation">
+    <enum>Qt::Horizontal</enum>
+   </property>
+   <property name="standardButtons">
+    <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
+   </property>
+  </widget>
+ </widget>
+ <pixmapfunction/>
+ <resources/>
+ <connections>
+  <connection>
+   <sender>buttonBox</sender>
+   <signal>accepted()</signal>
+   <receiver>PreferenceDialog</receiver>
+   <slot>accept()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>248</x>
+     <y>254</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>157</x>
+     <y>274</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>buttonBox</sender>
+   <signal>rejected()</signal>
+   <receiver>PreferenceDialog</receiver>
+   <slot>reject()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>316</x>
+     <y>260</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>286</x>
+     <y>274</y>
+    </hint>
+   </hints>
+  </connection>
+ </connections>
+</ui>