summaryrefslogtreecommitdiffstats
path: root/experimental/tqtinterface/qt4/tools/designer/examples/vcr
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-07-10 15:17:53 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-07-10 15:17:53 -0500
commit37e3f157c7d76f13de807fa66e36df209e1005fb (patch)
tree7a4f131b2ee065337dac341bff34515310efba4f /experimental/tqtinterface/qt4/tools/designer/examples/vcr
parent16630c3eff313238fa8412275555285c9195981b (diff)
downloadtde-37e3f157c7d76f13de807fa66e36df209e1005fb.tar.gz
tde-37e3f157c7d76f13de807fa66e36df209e1005fb.zip
Added TQt4 HEAD
Diffstat (limited to 'experimental/tqtinterface/qt4/tools/designer/examples/vcr')
-rw-r--r--experimental/tqtinterface/qt4/tools/designer/examples/vcr/main.cpp10
-rw-r--r--experimental/tqtinterface/qt4/tools/designer/examples/vcr/play.xpm23
-rw-r--r--experimental/tqtinterface/qt4/tools/designer/examples/vcr/vcr.cpp117
-rw-r--r--experimental/tqtinterface/qt4/tools/designer/examples/vcr/vcr.h17
-rw-r--r--experimental/tqtinterface/qt4/tools/designer/examples/vcr/vcr.pro8
5 files changed, 175 insertions, 0 deletions
diff --git a/experimental/tqtinterface/qt4/tools/designer/examples/vcr/main.cpp b/experimental/tqtinterface/qt4/tools/designer/examples/vcr/main.cpp
new file mode 100644
index 000000000..71f04f856
--- /dev/null
+++ b/experimental/tqtinterface/qt4/tools/designer/examples/vcr/main.cpp
@@ -0,0 +1,10 @@
+#include <tqapplication.h>
+#include "vcr.h"
+
+int main( int argc, char ** argv )
+{
+ TQApplication app( argc, argv );
+ Vcr *vcr = new Vcr;
+ vcr->show();
+ return app.exec();
+}
diff --git a/experimental/tqtinterface/qt4/tools/designer/examples/vcr/play.xpm b/experimental/tqtinterface/qt4/tools/designer/examples/vcr/play.xpm
new file mode 100644
index 000000000..8102ed1d0
--- /dev/null
+++ b/experimental/tqtinterface/qt4/tools/designer/examples/vcr/play.xpm
@@ -0,0 +1,23 @@
+/* XPM */
+static char * play_xpm[] = {
+"16 16 3 1",
+" c None",
+". c #FFFFFF",
+"+ c #000000",
+"................",
+".++.............",
+".++++...........",
+".++++++.........",
+".++++++++.......",
+".++++++++++.....",
+".++++++++++++...",
+".+++++++++++++..",
+".+++++++++++++..",
+".++++++++++++...",
+".++++++++++.....",
+".++++++++.......",
+".++++++.........",
+".++++...........",
+".+++............",
+"................"};
+
diff --git a/experimental/tqtinterface/qt4/tools/designer/examples/vcr/vcr.cpp b/experimental/tqtinterface/qt4/tools/designer/examples/vcr/vcr.cpp
new file mode 100644
index 000000000..c22fb1d33
--- /dev/null
+++ b/experimental/tqtinterface/qt4/tools/designer/examples/vcr/vcr.cpp
@@ -0,0 +1,117 @@
+#include "vcr.h"
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+
+static const char * rewind_xpm[] = {
+"16 16 3 1",
+" c None",
+". c #FFFFFF",
+"+ c #000000",
+"................",
+".++..........++.",
+".++........++++.",
+".++......++++++.",
+".++....++++++++.",
+".++..++++++++++.",
+".++++++++++++++.",
+".++++++++++++++.",
+".++++++++++++++.",
+".++++++++++++++.",
+".++..++++++++++.",
+".++....++++++++.",
+".++......++++++.",
+".++........++++.",
+".++.........+++.",
+"................"};
+
+static const char * play_xpm[] = {
+"16 16 3 1",
+" c None",
+". c #FFFFFF",
+"+ c #000000",
+"................",
+".++.............",
+".++++...........",
+".++++++.........",
+".++++++++.......",
+".++++++++++.....",
+".++++++++++++...",
+".+++++++++++++..",
+".+++++++++++++..",
+".++++++++++++...",
+".++++++++++.....",
+".++++++++.......",
+".++++++.........",
+".++++...........",
+".+++............",
+"................"};
+
+static const char * next_xpm[] = {
+"16 16 3 1",
+" c None",
+". c #FFFFFF",
+"+ c #000000",
+"................",
+".++.....+.......",
+".+++....++......",
+".++++...+++.....",
+".+++++..++++....",
+".++++++.+++++...",
+".+++++++++++++..",
+".++++++++++++++.",
+".++++++++++++++.",
+".+++++++++++++..",
+".++++++.+++++...",
+".+++++..++++....",
+".++++...+++.....",
+".+++....++......",
+".++.....+.......",
+"................"};
+
+static const char * stop_xpm[] = {
+"16 16 3 1",
+" c None",
+". c #FFFFFF",
+"+ c #000000",
+"................",
+".++++++++++++++.",
+".++++++++++++++.",
+".++++++++++++++.",
+".+++........+++.",
+".+++........+++.",
+".+++........+++.",
+".+++........+++.",
+".+++........+++.",
+".+++........+++.",
+".+++........+++.",
+".+++........+++.",
+".++++++++++++++.",
+".++++++++++++++.",
+".++++++++++++++.",
+"................"};
+
+
+Vcr::Vcr( TQWidget *tqparent, const char *name )
+ : TQWidget( tqparent, name )
+{
+ TQHBoxLayout *tqlayout = new TQHBoxLayout( this );
+ tqlayout->setMargin( 0 );
+
+ TQPushButton *rewind = new TQPushButton( TQPixmap( rewind_xpm ), 0, this, "vcr_rewind" );
+ tqlayout->addWidget( rewind );
+ connect( rewind, TQT_SIGNAL(clicked()), TQT_SIGNAL(rewind()) );
+
+ TQPushButton *play = new TQPushButton( TQPixmap( play_xpm ), 0, this, "vcr_play" );
+ tqlayout->addWidget( play );
+ connect( play, TQT_SIGNAL(clicked()), TQT_SIGNAL(play()) );
+
+ TQPushButton *next = new TQPushButton( TQPixmap( next_xpm ), 0, this, "vcr_next" );
+ tqlayout->addWidget( next );
+ connect( next, TQT_SIGNAL(clicked()), TQT_SIGNAL(next()) );
+
+ TQPushButton *stop = new TQPushButton( TQPixmap( stop_xpm ), 0, this, "vcr_stop" );
+ tqlayout->addWidget( stop );
+ connect( stop, TQT_SIGNAL(clicked()), TQT_SIGNAL(stop()) );
+}
+
+
diff --git a/experimental/tqtinterface/qt4/tools/designer/examples/vcr/vcr.h b/experimental/tqtinterface/qt4/tools/designer/examples/vcr/vcr.h
new file mode 100644
index 000000000..1dccc8cf0
--- /dev/null
+++ b/experimental/tqtinterface/qt4/tools/designer/examples/vcr/vcr.h
@@ -0,0 +1,17 @@
+#ifndef VCR_H
+#define VCR_H
+#include <tqwidget.h>
+
+class Vcr : public TQWidget
+{
+ TQ_OBJECT
+public:
+ Vcr( TQWidget *tqparent = 0, const char *name = 0 );
+ ~Vcr() {}
+Q_SIGNALS:
+ void rewind();
+ void play();
+ void next();
+ void stop();
+};
+#endif
diff --git a/experimental/tqtinterface/qt4/tools/designer/examples/vcr/vcr.pro b/experimental/tqtinterface/qt4/tools/designer/examples/vcr/vcr.pro
new file mode 100644
index 000000000..8bda69037
--- /dev/null
+++ b/experimental/tqtinterface/qt4/tools/designer/examples/vcr/vcr.pro
@@ -0,0 +1,8 @@
+TEMPLATE = app
+LANGUAGE = C++
+TARGET = vcr
+
+CONFIG += qt warn_on release
+SOURCES += vcr.cpp main.cpp
+HEADERS += vcr.h
+DBFILE = vcr.db