summaryrefslogtreecommitdiffstats
path: root/plugins/src/styles
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/src/styles')
-rw-r--r--plugins/src/styles/cde/cde.pro20
-rw-r--r--plugins/src/styles/cde/main.cpp33
-rw-r--r--plugins/src/styles/compact/compact.pro21
-rw-r--r--plugins/src/styles/compact/main.cpp35
-rw-r--r--plugins/src/styles/motif/main.cpp34
-rw-r--r--plugins/src/styles/motif/motif.pro15
-rw-r--r--plugins/src/styles/motifplus/main.cpp35
-rw-r--r--plugins/src/styles/motifplus/motifplus.pro20
-rw-r--r--plugins/src/styles/platinum/main.cpp34
-rw-r--r--plugins/src/styles/platinum/platinum.pro20
-rw-r--r--plugins/src/styles/sgi/main.cpp33
-rw-r--r--plugins/src/styles/sgi/sgi.pro20
-rw-r--r--plugins/src/styles/styles.pro11
-rw-r--r--plugins/src/styles/windows/main.cpp34
-rw-r--r--plugins/src/styles/windows/windows.pro15
15 files changed, 380 insertions, 0 deletions
diff --git a/plugins/src/styles/cde/cde.pro b/plugins/src/styles/cde/cde.pro
new file mode 100644
index 0000000..7447036
--- /dev/null
+++ b/plugins/src/styles/cde/cde.pro
@@ -0,0 +1,20 @@
+TEMPLATE = lib
+TARGET = qcdestyle
+
+CONFIG += qt warn_off release plugin
+DESTDIR = ../../../styles
+
+HEADERS = ../../../../include/qcdestyle.h
+SOURCES = main.cpp \
+ ../../../../src/styles/qcdestyle.cpp
+
+!contains(styles, motif) {
+ HEADERS += ../../../../include/qmotifstyle.h
+ SOURCES += ../../../../src/styles/qmotifstyle.cpp
+}
+
+unix:OBJECTS_DIR = .obj
+win32:OBJECTS_DIR = obj
+
+target.path += $$plugins.path/styles
+INSTALLS += target
diff --git a/plugins/src/styles/cde/main.cpp b/plugins/src/styles/cde/main.cpp
new file mode 100644
index 0000000..243dd76
--- /dev/null
+++ b/plugins/src/styles/cde/main.cpp
@@ -0,0 +1,33 @@
+#include <qstyleplugin.h>
+#include <qcdestyle.h>
+
+class CDEStyle : public QStylePlugin
+{
+public:
+ CDEStyle();
+
+ QStringList keys() const;
+ QStyle *create( const QString& );
+};
+
+CDEStyle::CDEStyle()
+: QStylePlugin()
+{
+}
+
+QStringList CDEStyle::keys() const
+{
+ QStringList list;
+ list << "CDE";
+ return list;
+}
+
+QStyle* CDEStyle::create( const QString& s )
+{
+ if ( s.lower() == "cde" )
+ return new QCDEStyle();
+
+ return 0;
+}
+
+Q_EXPORT_PLUGIN( CDEStyle )
diff --git a/plugins/src/styles/compact/compact.pro b/plugins/src/styles/compact/compact.pro
new file mode 100644
index 0000000..c746f23
--- /dev/null
+++ b/plugins/src/styles/compact/compact.pro
@@ -0,0 +1,21 @@
+TEMPLATE = lib
+TARGET = qcompactstyle
+
+CONFIG += qt warn_off release plugin
+DESTDIR = ../../../styles
+
+HEADERS = ../../../../include/qcompactstyle.h
+
+SOURCES = main.cpp \
+ ../../../../src/styles/qcompactstyle.cpp
+
+!contains(styles, windows) {
+ HEADERS += ../../../../include/qwindowsstyle.h
+ SOURCES += ../../../../src/styles/qwindowsstyle.cpp
+}
+
+unix:OBJECTS_DIR = .obj
+win32:OBJECTS_DIR = obj
+
+target.path += $$plugins.path/styles
+INSTALLS += target
diff --git a/plugins/src/styles/compact/main.cpp b/plugins/src/styles/compact/main.cpp
new file mode 100644
index 0000000..dda67c2
--- /dev/null
+++ b/plugins/src/styles/compact/main.cpp
@@ -0,0 +1,35 @@
+#include <qstyleplugin.h>
+#include <qcompactstyle.h>
+
+class CompactStyle : public QStylePlugin
+{
+public:
+ CompactStyle();
+
+ QStringList keys() const;
+ QStyle *create( const QString& );
+};
+
+CompactStyle::CompactStyle()
+: QStylePlugin()
+{
+}
+
+QStringList CompactStyle::keys() const
+{
+ QStringList list;
+ list << "Compact";
+ return list;
+}
+
+QStyle* CompactStyle::create( const QString& s )
+{
+ if ( s.lower() == "compact" )
+ return new QCompactStyle();
+
+ return 0;
+}
+
+
+Q_EXPORT_PLUGIN( CompactStyle )
+
diff --git a/plugins/src/styles/motif/main.cpp b/plugins/src/styles/motif/main.cpp
new file mode 100644
index 0000000..c818e4d
--- /dev/null
+++ b/plugins/src/styles/motif/main.cpp
@@ -0,0 +1,34 @@
+#include <qstyleplugin.h>
+#include <qmotifstyle.h>
+
+class MotifStyle : public QStylePlugin
+{
+public:
+ MotifStyle();
+
+ QStringList keys() const;
+ QStyle *create( const QString& );
+};
+
+MotifStyle::MotifStyle()
+: QStylePlugin()
+{
+}
+
+QStringList MotifStyle::keys() const
+{
+ QStringList list;
+ list << "Motif";
+ return list;
+}
+
+QStyle* MotifStyle::create( const QString& s )
+{
+ if ( s.lower() == "motif" )
+ return new QMotifStyle();
+
+ return 0;
+}
+
+Q_EXPORT_PLUGIN( MotifStyle )
+
diff --git a/plugins/src/styles/motif/motif.pro b/plugins/src/styles/motif/motif.pro
new file mode 100644
index 0000000..2aee623
--- /dev/null
+++ b/plugins/src/styles/motif/motif.pro
@@ -0,0 +1,15 @@
+TEMPLATE = lib
+TARGET = qmotifstyle
+
+CONFIG += qt warn_off release plugin
+DESTDIR = ../../../styles
+
+HEADERS = ../../../../include/qmotifstyle.h
+SOURCES = main.cpp \
+ ../../../../src/styles/qmotifstyle.cpp
+
+unix:OBJECTS_DIR = .obj
+win32:OBJECTS_DIR = obj
+
+target.path += $$plugins.path/styles
+INSTALLS += target
diff --git a/plugins/src/styles/motifplus/main.cpp b/plugins/src/styles/motifplus/main.cpp
new file mode 100644
index 0000000..c226e7f
--- /dev/null
+++ b/plugins/src/styles/motifplus/main.cpp
@@ -0,0 +1,35 @@
+#include <qstyleplugin.h>
+#include <qmotifplusstyle.h>
+
+class MotifPlusStyle : public QStylePlugin
+{
+public:
+ MotifPlusStyle();
+
+ QStringList keys() const;
+ QStyle *create( const QString& );
+
+};
+
+MotifPlusStyle::MotifPlusStyle()
+: QStylePlugin()
+{
+}
+
+QStringList MotifPlusStyle::keys() const
+{
+ QStringList list;
+ list << "MotifPlus";
+ return list;
+}
+
+QStyle* MotifPlusStyle::create( const QString& s )
+{
+ if ( s.lower() == "motifplus" )
+ return new QMotifPlusStyle();
+
+ return 0;
+}
+
+Q_EXPORT_PLUGIN( MotifPlusStyle )
+
diff --git a/plugins/src/styles/motifplus/motifplus.pro b/plugins/src/styles/motifplus/motifplus.pro
new file mode 100644
index 0000000..64a1f8e
--- /dev/null
+++ b/plugins/src/styles/motifplus/motifplus.pro
@@ -0,0 +1,20 @@
+TEMPLATE = lib
+TARGET = qmotifplusstyle
+
+CONFIG += qt warn_off release plugin
+DESTDIR = ../../../styles
+
+HEADERS = ../../../../include/qmotifplusstyle.h
+SOURCES = main.cpp \
+ ../../../../src/styles/qmotifplusstyle.cpp
+
+!contains(styles, motif) {
+ HEADERS += ../../../../include/qmotifstyle.h
+ SOURCES += ../../../../src/styles/qmotifstyle.cpp
+}
+
+unix:OBJECTS_DIR = .obj
+win32:OBJECTS_DIR = obj
+
+target.path += $$plugins.path/styles
+INSTALLS += target
diff --git a/plugins/src/styles/platinum/main.cpp b/plugins/src/styles/platinum/main.cpp
new file mode 100644
index 0000000..ce2abb2
--- /dev/null
+++ b/plugins/src/styles/platinum/main.cpp
@@ -0,0 +1,34 @@
+#include <qplatinumstyle.h>
+#include <qstyleplugin.h>
+
+class PlatinumStyle : public QStylePlugin
+{
+public:
+ PlatinumStyle();
+
+ QStringList keys() const;
+ QStyle *create( const QString& );
+};
+
+PlatinumStyle::PlatinumStyle()
+: QStylePlugin()
+{
+}
+
+QStringList PlatinumStyle::keys() const
+{
+ QStringList list;
+ list << "Platinum";
+ return list;
+}
+
+QStyle* PlatinumStyle::create( const QString& s )
+{
+ if ( s.lower() == "platinum" )
+ return new QPlatinumStyle();
+
+ return 0;
+}
+
+
+Q_EXPORT_PLUGIN( PlatinumStyle )
diff --git a/plugins/src/styles/platinum/platinum.pro b/plugins/src/styles/platinum/platinum.pro
new file mode 100644
index 0000000..23fe429
--- /dev/null
+++ b/plugins/src/styles/platinum/platinum.pro
@@ -0,0 +1,20 @@
+TEMPLATE = lib
+TARGET = qplatinumstyle
+
+CONFIG += qt warn_off release plugin
+DESTDIR = ../../../styles
+
+HEADERS = ../../../../include/qplatinumstyle.h
+SOURCES = main.cpp \
+ ../../../../src/styles/qplatinumstyle.cpp
+
+!contains(styles, windows) {
+ HEADERS += ../../../../include/qwindowsstyle.h
+ SOURCES += ../../../../src/styles/qwindowsstyle.cpp
+}
+
+unix:OBJECTS_DIR = .obj
+win32:OBJECTS_DIR = obj
+
+target.path += $$plugins.path/styles
+INSTALLS += target
diff --git a/plugins/src/styles/sgi/main.cpp b/plugins/src/styles/sgi/main.cpp
new file mode 100644
index 0000000..73ad0ce
--- /dev/null
+++ b/plugins/src/styles/sgi/main.cpp
@@ -0,0 +1,33 @@
+#include <qstyleplugin.h>
+#include <qsgistyle.h>
+
+class SGIStyle : public QStylePlugin
+{
+public:
+ SGIStyle();
+
+ QStringList keys() const;
+ QStyle *create( const QString& );
+};
+
+SGIStyle::SGIStyle()
+: QStylePlugin()
+{
+}
+
+QStringList SGIStyle::keys() const
+{
+ QStringList list;
+ list << "SGI";
+ return list;
+}
+
+QStyle* SGIStyle::create( const QString& s )
+{
+ if ( s.lower() == "sgi" )
+ return new QSGIStyle();
+
+ return 0;
+}
+
+Q_EXPORT_PLUGIN( SGIStyle )
diff --git a/plugins/src/styles/sgi/sgi.pro b/plugins/src/styles/sgi/sgi.pro
new file mode 100644
index 0000000..0892c10
--- /dev/null
+++ b/plugins/src/styles/sgi/sgi.pro
@@ -0,0 +1,20 @@
+TEMPLATE = lib
+TARGET = qsgistyle
+
+CONFIG += qt warn_off release plugin
+DESTDIR = ../../../styles
+
+HEADERS = ../../../../include/qsgistyle.h
+SOURCES = main.cpp \
+ ../../../../src/styles/qsgistyle.cpp
+
+!contains(styles, motif) {
+ HEADERS += ../../../../include/qmotifstyle.h
+ SOURCES += ../../../../src/styles/qmotifstyle.cpp
+}
+
+unix:OBJECTS_DIR = .obj
+win32:OBJECTS_DIR = obj
+
+target.path += $$plugins.path/styles
+INSTALLS += target
diff --git a/plugins/src/styles/styles.pro b/plugins/src/styles/styles.pro
new file mode 100644
index 0000000..9fa6a22
--- /dev/null
+++ b/plugins/src/styles/styles.pro
@@ -0,0 +1,11 @@
+TEMPLATE = subdirs
+contains(style-plugins, windows) :SUBDIRS += windows
+contains(style-plugins, motif) :SUBDIRS += motif
+contains(style-plugins, platinum) :SUBDIRS += platinum
+contains(style-plugins, motifplus) :SUBDIRS += motifplus
+contains(style-plugins, cde) :SUBDIRS += cde
+contains(style-plugins, sgi) :SUBDIRS += sgi
+contains(style-plugins, compact) :SUBDIRS += compact
+contains(style-plugins, aqua) :SUBDIRS += aqua
+contains(style-plugins, mac) :SUBDIRS += mac
+contains(style-plugins, windowsxp) :SUBDIRS += windowsxp
diff --git a/plugins/src/styles/windows/main.cpp b/plugins/src/styles/windows/main.cpp
new file mode 100644
index 0000000..3ccf6c9
--- /dev/null
+++ b/plugins/src/styles/windows/main.cpp
@@ -0,0 +1,34 @@
+#include <qstyleplugin.h>
+#include <qwindowsstyle.h>
+
+class WindowsStyle : public QStylePlugin
+{
+public:
+ WindowsStyle();
+
+ QStringList keys() const;
+ QStyle *create( const QString& );
+};
+
+WindowsStyle::WindowsStyle()
+: QStylePlugin()
+{
+}
+
+QStringList WindowsStyle::keys() const
+{
+ QStringList list;
+ list << "Windows";
+ return list;
+}
+
+QStyle* WindowsStyle::create( const QString& s )
+{
+ if ( s.lower() == "windows" )
+ return new QWindowsStyle();
+
+ return 0;
+}
+
+Q_EXPORT_PLUGIN( WindowsStyle )
+
diff --git a/plugins/src/styles/windows/windows.pro b/plugins/src/styles/windows/windows.pro
new file mode 100644
index 0000000..f9d97e3
--- /dev/null
+++ b/plugins/src/styles/windows/windows.pro
@@ -0,0 +1,15 @@
+TEMPLATE = lib
+TARGET = qwindowsstyle
+
+CONFIG += qt warn_off release plugin
+DESTDIR = ../../../styles
+
+HEADERS = ../../../../include/qwindowsstyle.h
+SOURCES = main.cpp \
+ ../../../../src/styles/qwindowsstyle.cpp
+
+unix:OBJECTS_DIR = .obj
+win32:OBJECTS_DIR = obj
+
+target.path += $$plugins.path/styles
+INSTALLS += target