diff options
Diffstat (limited to 'plugins/src/styles')
-rw-r--r-- | plugins/src/styles/cde/cde.pro | 20 | ||||
-rw-r--r-- | plugins/src/styles/cde/main.cpp | 33 | ||||
-rw-r--r-- | plugins/src/styles/compact/compact.pro | 21 | ||||
-rw-r--r-- | plugins/src/styles/compact/main.cpp | 35 | ||||
-rw-r--r-- | plugins/src/styles/motif/main.cpp | 34 | ||||
-rw-r--r-- | plugins/src/styles/motif/motif.pro | 15 | ||||
-rw-r--r-- | plugins/src/styles/motifplus/main.cpp | 35 | ||||
-rw-r--r-- | plugins/src/styles/motifplus/motifplus.pro | 20 | ||||
-rw-r--r-- | plugins/src/styles/platinum/main.cpp | 34 | ||||
-rw-r--r-- | plugins/src/styles/platinum/platinum.pro | 20 | ||||
-rw-r--r-- | plugins/src/styles/sgi/main.cpp | 33 | ||||
-rw-r--r-- | plugins/src/styles/sgi/sgi.pro | 20 | ||||
-rw-r--r-- | plugins/src/styles/styles.pro | 11 | ||||
-rw-r--r-- | plugins/src/styles/windows/main.cpp | 34 | ||||
-rw-r--r-- | plugins/src/styles/windows/windows.pro | 15 |
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 000000000..744703699 --- /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 000000000..97892cbac --- /dev/null +++ b/plugins/src/styles/cde/main.cpp @@ -0,0 +1,33 @@ +#include <qstyleplugin.h> +#include <qcdestyle.h> + +class CDEStyle : public TQStylePlugin +{ +public: + CDEStyle(); + + TQStringList keys() const; + TQStyle *create( const TQString& ); +}; + +CDEStyle::CDEStyle() +: TQStylePlugin() +{ +} + +TQStringList CDEStyle::keys() const +{ + TQStringList list; + list << "CDE"; + return list; +} + +TQStyle* CDEStyle::create( const TQString& s ) +{ + if ( s.lower() == "cde" ) + return new TQCDEStyle(); + + 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 000000000..c746f2380 --- /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 000000000..ddee9c212 --- /dev/null +++ b/plugins/src/styles/compact/main.cpp @@ -0,0 +1,35 @@ +#include <qstyleplugin.h> +#include <qcompactstyle.h> + +class CompactStyle : public TQStylePlugin +{ +public: + CompactStyle(); + + TQStringList keys() const; + TQStyle *create( const TQString& ); +}; + +CompactStyle::CompactStyle() +: TQStylePlugin() +{ +} + +TQStringList CompactStyle::keys() const +{ + TQStringList list; + list << "Compact"; + return list; +} + +TQStyle* CompactStyle::create( const TQString& s ) +{ + if ( s.lower() == "compact" ) + return new TQCompactStyle(); + + 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 000000000..b0241ce1e --- /dev/null +++ b/plugins/src/styles/motif/main.cpp @@ -0,0 +1,34 @@ +#include <qstyleplugin.h> +#include <qmotifstyle.h> + +class MotifStyle : public TQStylePlugin +{ +public: + MotifStyle(); + + TQStringList keys() const; + TQStyle *create( const TQString& ); +}; + +MotifStyle::MotifStyle() +: TQStylePlugin() +{ +} + +TQStringList MotifStyle::keys() const +{ + TQStringList list; + list << "Motif"; + return list; +} + +TQStyle* MotifStyle::create( const TQString& s ) +{ + if ( s.lower() == "motif" ) + return new TQMotifStyle(); + + 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 000000000..2aee623c9 --- /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 000000000..37b6c81d3 --- /dev/null +++ b/plugins/src/styles/motifplus/main.cpp @@ -0,0 +1,35 @@ +#include <qstyleplugin.h> +#include <qmotifplusstyle.h> + +class MotifPlusStyle : public TQStylePlugin +{ +public: + MotifPlusStyle(); + + TQStringList keys() const; + TQStyle *create( const TQString& ); + +}; + +MotifPlusStyle::MotifPlusStyle() +: TQStylePlugin() +{ +} + +TQStringList MotifPlusStyle::keys() const +{ + TQStringList list; + list << "MotifPlus"; + return list; +} + +TQStyle* MotifPlusStyle::create( const TQString& s ) +{ + if ( s.lower() == "motifplus" ) + return new TQMotifPlusStyle(); + + 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 000000000..64a1f8e85 --- /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 000000000..c7ad26912 --- /dev/null +++ b/plugins/src/styles/platinum/main.cpp @@ -0,0 +1,34 @@ +#include <qplatinumstyle.h> +#include <qstyleplugin.h> + +class PlatinumStyle : public TQStylePlugin +{ +public: + PlatinumStyle(); + + TQStringList keys() const; + TQStyle *create( const TQString& ); +}; + +PlatinumStyle::PlatinumStyle() +: TQStylePlugin() +{ +} + +TQStringList PlatinumStyle::keys() const +{ + TQStringList list; + list << "Platinum"; + return list; +} + +TQStyle* PlatinumStyle::create( const TQString& s ) +{ + if ( s.lower() == "platinum" ) + return new TQPlatinumStyle(); + + 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 000000000..23fe42955 --- /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 000000000..0314525e5 --- /dev/null +++ b/plugins/src/styles/sgi/main.cpp @@ -0,0 +1,33 @@ +#include <qstyleplugin.h> +#include <qsgistyle.h> + +class SGIStyle : public TQStylePlugin +{ +public: + SGIStyle(); + + TQStringList keys() const; + TQStyle *create( const TQString& ); +}; + +SGIStyle::SGIStyle() +: TQStylePlugin() +{ +} + +TQStringList SGIStyle::keys() const +{ + TQStringList list; + list << "SGI"; + return list; +} + +TQStyle* SGIStyle::create( const TQString& s ) +{ + if ( s.lower() == "sgi" ) + return new TQSGIStyle(); + + 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 000000000..0892c1047 --- /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 000000000..9fa6a2217 --- /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 000000000..9128994ad --- /dev/null +++ b/plugins/src/styles/windows/main.cpp @@ -0,0 +1,34 @@ +#include <qstyleplugin.h> +#include <qwindowsstyle.h> + +class WindowsStyle : public TQStylePlugin +{ +public: + WindowsStyle(); + + TQStringList keys() const; + TQStyle *create( const TQString& ); +}; + +WindowsStyle::WindowsStyle() +: TQStylePlugin() +{ +} + +TQStringList WindowsStyle::keys() const +{ + TQStringList list; + list << "Windows"; + return list; +} + +TQStyle* WindowsStyle::create( const TQString& s ) +{ + if ( s.lower() == "windows" ) + return new TQWindowsStyle(); + + 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 000000000..f9d97e308 --- /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 |