From d796c9dd933ab96ec83b9a634feedd5d32e1ba3f Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 8 Nov 2011 12:31:36 -0600 Subject: Test conversion to TQt3 from Qt3 8c6fc1f8e35fd264dd01c582ca5e7549b32ab731 --- plugins/src/styles/cde/cde.pro | 20 +++++++++++++++++ plugins/src/styles/cde/main.cpp | 33 ++++++++++++++++++++++++++++ plugins/src/styles/compact/compact.pro | 21 ++++++++++++++++++ plugins/src/styles/compact/main.cpp | 35 ++++++++++++++++++++++++++++++ plugins/src/styles/motif/main.cpp | 34 +++++++++++++++++++++++++++++ plugins/src/styles/motif/motif.pro | 15 +++++++++++++ plugins/src/styles/motifplus/main.cpp | 35 ++++++++++++++++++++++++++++++ plugins/src/styles/motifplus/motifplus.pro | 20 +++++++++++++++++ plugins/src/styles/platinum/main.cpp | 34 +++++++++++++++++++++++++++++ plugins/src/styles/platinum/platinum.pro | 20 +++++++++++++++++ plugins/src/styles/sgi/main.cpp | 33 ++++++++++++++++++++++++++++ plugins/src/styles/sgi/sgi.pro | 20 +++++++++++++++++ plugins/src/styles/styles.pro | 11 ++++++++++ plugins/src/styles/windows/main.cpp | 34 +++++++++++++++++++++++++++++ plugins/src/styles/windows/windows.pro | 15 +++++++++++++ 15 files changed, 380 insertions(+) create mode 100644 plugins/src/styles/cde/cde.pro create mode 100644 plugins/src/styles/cde/main.cpp create mode 100644 plugins/src/styles/compact/compact.pro create mode 100644 plugins/src/styles/compact/main.cpp create mode 100644 plugins/src/styles/motif/main.cpp create mode 100644 plugins/src/styles/motif/motif.pro create mode 100644 plugins/src/styles/motifplus/main.cpp create mode 100644 plugins/src/styles/motifplus/motifplus.pro create mode 100644 plugins/src/styles/platinum/main.cpp create mode 100644 plugins/src/styles/platinum/platinum.pro create mode 100644 plugins/src/styles/sgi/main.cpp create mode 100644 plugins/src/styles/sgi/sgi.pro create mode 100644 plugins/src/styles/styles.pro create mode 100644 plugins/src/styles/windows/main.cpp create mode 100644 plugins/src/styles/windows/windows.pro (limited to 'plugins/src/styles') 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 +#include + +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 +#include + +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 +#include + +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 +#include + +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 +#include + +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 +#include + +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 +#include + +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 -- cgit v1.2.1