summaryrefslogtreecommitdiff
path: root/libopie/big-screen/example
authorzecke <zecke>2004-03-05 22:58:06 (UTC)
committer zecke <zecke>2004-03-05 22:58:06 (UTC)
commitb4ec902435df4e3c834b7790c1dc70a235157477 (patch) (side-by-side diff)
tree56f855525c3da4ca9efd02c148a967a41cc4cdcb /libopie/big-screen/example
parent3dd27f86cf3865b771258d80048190e0ef6c3177 (diff)
downloadopie-b4ec902435df4e3c834b7790c1dc70a235157477.zip
opie-b4ec902435df4e3c834b7790c1dc70a235157477.tar.gz
opie-b4ec902435df4e3c834b7790c1dc70a235157477.tar.bz2
Big Screen Extensions should only be in the new LIBOPIEUI2.
We can remove it without risking binary incompatible as these classes were not in the 1.0 API release
Diffstat (limited to 'libopie/big-screen/example') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/big-screen/example/osplitter_example.cpp28
-rw-r--r--libopie/big-screen/example/osplitter_example.h20
-rw-r--r--libopie/big-screen/example/osplitter_example.obin17276 -> 0 bytes
-rw-r--r--libopie/big-screen/example/osplitter_example.pro13
-rw-r--r--libopie/big-screen/example/osplitter_mail.cpp82
-rw-r--r--libopie/big-screen/example/osplitter_mail.h49
-rw-r--r--libopie/big-screen/example/osplitter_mail.pro12
-rw-r--r--libopie/big-screen/example/owidgetstack_example.cpp131
-rw-r--r--libopie/big-screen/example/owidgetstack_example.h27
-rw-r--r--libopie/big-screen/example/owidgetstack_example.pro13
10 files changed, 0 insertions, 375 deletions
diff --git a/libopie/big-screen/example/osplitter_example.cpp b/libopie/big-screen/example/osplitter_example.cpp
deleted file mode 100644
index e337379..0000000
--- a/libopie/big-screen/example/osplitter_example.cpp
+++ b/dev/null
@@ -1,28 +0,0 @@
-#include <qdir.h>
-#include <qlayout.h>
-
-#include "../osplitter.h"
-
-#include <qpe/qpeapplication.h>
-#include <opie/oapplicationfactory.h>
-
-#include "osplitter_example.h"
-
-OPIE_EXPORT_APP( OApplicationFactory<OSplitterExample> )
-
-OSplitterExample::OSplitterExample( QWidget *w,const char* n,WFlags f )
- : QWidget( w, n, f ){
- QVBoxLayout * lay = new QVBoxLayout(this);
- OSplitter * splitter = new OSplitter( Horizontal, this );
- lay->addWidget( splitter );
-
- OFileSelector *selector = new OFileSelector( splitter, OFileSelector::FileSelector,
- OFileSelector::Normal, QDir::homeDirPath(),
- QString::null );
- splitter->addWidget( selector, "zoom", tr("Selector 1") );
-
- selector = new OFileSelector( splitter, OFileSelector::FileSelector, OFileSelector::Normal,
- QDir::homeDirPath(), QString::null );
- splitter->addWidget( selector, "zoom", tr("Selector 2") );
-
-}
diff --git a/libopie/big-screen/example/osplitter_example.h b/libopie/big-screen/example/osplitter_example.h
deleted file mode 100644
index ae8f120..0000000
--- a/libopie/big-screen/example/osplitter_example.h
+++ b/dev/null
@@ -1,20 +0,0 @@
-/*
- * May be used, copied and modified wihtout any limitation
- */
-
-#ifndef OSPlitter_EXAMPLE_H
-#define OSPlitter_EXAMPLE_H
-
-#include <qvbox.h>
-#include <opie/ofileselector.h>
-
-class OSplitterExample : public QWidget {
- Q_OBJECT
-public:
- static QString appName() { return QString::fromLatin1("osplitter_example"); }
- OSplitterExample( QWidget *parent, const char* name, WFlags fl );
-
-};
-
-
-#endif
diff --git a/libopie/big-screen/example/osplitter_example.o b/libopie/big-screen/example/osplitter_example.o
deleted file mode 100644
index e52d5d9..0000000
--- a/libopie/big-screen/example/osplitter_example.o
+++ b/dev/null
Binary files differ
diff --git a/libopie/big-screen/example/osplitter_example.pro b/libopie/big-screen/example/osplitter_example.pro
deleted file mode 100644
index b12bf17..0000000
--- a/libopie/big-screen/example/osplitter_example.pro
+++ b/dev/null
@@ -1,13 +0,0 @@
-CONFIG = qt warn_on
-TEMPLATE = app
-TARGET = osplitter_example
-
-HEADERS = osplitter_example.h ../osplitter.h
-SOURCES = osplitter_example.cpp ../osplitter.cpp
-
-INCLUDEPATH += $(OPIEDIR)/include ../
-DEPENDSPATH += $(OPIEDIR)/include
-
-LIBS += -lqpe -lopie
-
-include ( $(OPIEDIR)/include.pro ) \ No newline at end of file
diff --git a/libopie/big-screen/example/osplitter_mail.cpp b/libopie/big-screen/example/osplitter_mail.cpp
deleted file mode 100644
index 4356baa..0000000
--- a/libopie/big-screen/example/osplitter_mail.cpp
+++ b/dev/null
@@ -1,82 +0,0 @@
-
-#include <qstring.h>
-#include <qlabel.h>
-#include <qheader.h>
-#include <qlayout.h>
-
-#include <qpe/qpeapplication.h>
-#include <opie/oapplicationfactory.h>
-
-#include "../osplitter.h"
-
-#include "osplitter_mail.h"
-
-
-OPIE_EXPORT_APP( OApplicationFactory<ListViews> )
-
-class Folder {
- int dummy;
-};
-
-// -----------------------------------------------------------------
-
-ListViews::ListViews( QWidget* p, const char* name, WFlags fl )
- : QWidget( p, name, fl ) {
- qApp->installEventFilter( this );
- m_lstFolders.setAutoDelete( true );
- QHBoxLayout *lay = new QHBoxLayout(this);
-
- m_splitter = new OSplitter( Horizontal, this, "SPlitter 1" );
- lay->addWidget( m_splitter );
- connect(m_splitter, SIGNAL(sizeChange(bool,const QSize&) ),
- this, SLOT(slotSizeChange(bool,const QSize&) ) );
-
- m_overview = new QListView( m_splitter );
- m_overview->header()->setClickEnabled( FALSE );
- m_overview->addColumn( tr("Folder") );
- m_overview->setMaximumWidth( 200 );
- m_splitter->addWidget( m_overview, "zoom", tr("Folder Overview") );
- m_splitter->setSizeChange( 300 );
-
- /* OSplitter starts with the small mode */
- m_messages = 0;
- m_message = m_attach = 0;
-
- splitti = new OSplitter( Vertical, m_splitter, "Splitti2" );
- splitti->setSizeChange( 300 );
- splitti->setSizePolicy( QSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding ) );
-
- QLabel *lbl = new QLabel(splitti);
- lbl->setTextFormat ( Qt::RichText );
- lbl->setText("<br><br><b>Test Test Test</b><br><br><p>Fooooo hjhh</p>");
-
- m_messages = new QListView( splitti );
- m_messages->addColumn(" Messages ");
-
- folder1 = new QListView( splitti );
- folder1->addColumn( "Messages 2 " );
-
- splitti->addWidget(m_messages, "mail", tr("Mails") );
- splitti->addWidget(folder1, "folder", tr("Folder") );
- splitti->addWidget( lbl, "logo", tr("Label") );
- m_message = lbl;
-
- m_splitter->addWidget( splitti );
-
-}
-
-
-ListViews::~ListViews() {
-
-}
-
-
-bool ListViews::eventFilter( QObject* obj, QEvent* ev ) {
- if (!obj->isWidgetType() )
- return false;
- if ( ev->type() == QEvent::MouseButtonRelease ) {
- qWarning(" name %s, class %s", obj->name(), obj->className() );
- }
-
- return false;
-}
diff --git a/libopie/big-screen/example/osplitter_mail.h b/libopie/big-screen/example/osplitter_mail.h
deleted file mode 100644
index b7e7efe..0000000
--- a/libopie/big-screen/example/osplitter_mail.h
+++ b/dev/null
@@ -1,49 +0,0 @@
-/*
- * You may use, modify and distribute this code without any limitation
- */
-
-/*
- * Header file for a more complete email client like
- * layout
- */
-
-#ifndef OPIE_SPLITTER_MAIL_EXAMPLE_H
-#define OPIE_SPLITTER_MAIL_EXAMPLE_H
-
-#include <qwidget.h>
-#include <qlist.h>
-#include <qlistview.h>
-
-class Folder;
-class QLabel;
-
-class OSplitter;
-class ListViews : public QWidget {
- Q_OBJECT
-public:
- static QString appName() { return QString::fromLatin1("osplitter-mail"); }
- ListViews( QWidget* parent, const char * name, WFlags fl );
- ~ListViews();
-
- bool eventFilter( QObject* , QEvent* );
-private:
- void initFolders();
- void initFolder( Folder *folder, unsigned int &count );
-
- QListView *m_messages, *m_overview;
- QLabel *m_message, *m_attach;
- QList<QListView> m_folders; // used in tab mode
- QList<Folder> m_lstFolders;
- bool m_mode : 1; // bitfield
- OSplitter *m_splitter;
- OSplitter *splitti;
- QListView *folder1;
-#if 0
-//private slots:
-// void slotFolderChanged( QListViewItem* );
-// void slotMessageChanged();
-// void slotSizeChange( bool, const QSize& );
-#endif
-};
-
-#endif
diff --git a/libopie/big-screen/example/osplitter_mail.pro b/libopie/big-screen/example/osplitter_mail.pro
deleted file mode 100644
index ec6e626..0000000
--- a/libopie/big-screen/example/osplitter_mail.pro
+++ b/dev/null
@@ -1,12 +0,0 @@
-CONFIG += qt warn_on
-TEMPLATE = app
-TARGET = osplitter-mail
-
-INCLUDEPATH += $(OPIEDIR)/include
-DEPENDSPATH += $(OPIEDIR)/include
-
-HEADERS = osplitter_mail.h
-SOURCES = osplitter_mail.cpp
-
-LIBS += -lqpe -lopie
-include ( $(OPIEDIR)/include.pro )
diff --git a/libopie/big-screen/example/owidgetstack_example.cpp b/libopie/big-screen/example/owidgetstack_example.cpp
deleted file mode 100644
index a6b8201..0000000
--- a/libopie/big-screen/example/owidgetstack_example.cpp
+++ b/dev/null
@@ -1,131 +0,0 @@
-/*
- * You may use, modify and distribute this example without any limitation
- */
-
-#include <qaction.h>
-#include <qtoolbar.h>
-#include <qpopupmenu.h>
-#include <qmenubar.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qsignalmapper.h>
-
-#include <qpe/resource.h>
-
-#include "../owidgetstack.h"
-
-#include "owidgetstack_example.h"
-
-#include <qpe/qpeapplication.h>
-#include <opie/oapplicationfactory.h>
-
-OPIE_EXPORT_APP( OApplicationFactory<StackExample> )
-
-StackExample::StackExample( QWidget* parent, const char* name, WFlags fl )
- : QMainWindow( parent, name, fl )
-{
- m_stack = new OWidgetStack( this );
- setCentralWidget( m_stack );
-
- /* nice Signal Mapper ;) */
- QSignalMapper *sm = new QSignalMapper(this);
- connect(sm, SIGNAL(mapped(int) ), m_stack, SLOT(raiseWidget(int)) );
-
- /* toolbar first but this should be known from the other examples */
- setToolBarsMovable( false );
-
- /* only a menubar here */
- QToolBar* holder = new QToolBar( this );
- holder->setHorizontalStretchable( true );
-
- QMenuBar *bar = new QMenuBar( holder );
- QPopupMenu *menu = new QPopupMenu( this );
-
- QAction* a = new QAction( tr("Show MainWidget"), Resource::loadPixmap("zoom"),
- QString::null, 0, this, 0 );
- sm->setMapping(a, 1 );
- connect(a, SIGNAL(activated() ),
- sm, SLOT(map() ) );
- a->addTo( menu );
-
- a = new QAction( tr("Show Details Small"), Resource::loadPixmap("zoom"),
- QString::null, 0, this, 0 );
- sm->setMapping(a, 2 );
- connect(a, SIGNAL(activated() ),
- sm, SLOT(map() ) );
- a->addTo( menu );
-
- a = new QAction( tr("Show Details More"), Resource::loadPixmap("zoom"),
- QString::null, 0, this, 0 );
- sm->setMapping(a, 3 );
- connect(a, SIGNAL(activated() ),
- sm, SLOT(map() ) );
- a->addTo( menu );
-
- a = new QAction( tr("Show Details All"), Resource::loadPixmap("zoom"),
- QString::null, 0, this, 0 );
- sm->setMapping(a, 4 );
- connect(a, SIGNAL(activated() ),
- sm, SLOT(map() ) );
-
- bar->insertItem( tr("Actions"), menu );
-
- /* now the gui */
-
- /* first widget, main widget */
- QWidget * wid = new QWidget( m_stack );
- QGridLayout *grid = new QGridLayout(wid, 2, 2 );
-
- QPushButton *btn = new QPushButton( tr("Show Details Small"), wid, "details1" );
- sm->setMapping(btn, 2 );
- connect(btn, SIGNAL(clicked()), sm, SLOT(map() ) );
- grid->addWidget( btn, 0, 0 );
-
- btn = new QPushButton( tr("Show Details Medium"), wid, "details2");
- sm->setMapping(btn, 3 );
- connect(btn, SIGNAL(clicked()), sm, SLOT(map() ) );
- grid->addWidget( btn, 0, 1 );
-
- btn = new QPushButton( tr("Show Details All"), wid, "details3");
- sm->setMapping(btn, 4 );
- connect(btn, SIGNAL(clicked()), sm, SLOT(map() ) );
- grid->addWidget( btn, 1, 1 );
-
- m_stack->addWidget( wid, 1 );
- m_main = wid;
-
- QLabel *lbl = new QLabel(m_stack );
- lbl->setText(tr("Only small Details are shown here. Määh") );
- m_stack->addWidget( lbl, 2 );
-
- lbl = new QLabel( m_stack );
- lbl->setText( tr("Some more details....Wo ist das Schaf?") );
- m_stack->addWidget( lbl, 3 );
-
- lbl = new QLabel( m_stack );
- lbl->setText( tr("<qt>Ne nicht in Bayerisch Gmain sondern in Berlin<br>Vermiss und meine Augen werden nicht eckig, da mein Bildschirm abgerundet ist<br>Es lebe Hamburg Süd,weiss du, verstehst du? ;)<br>Susi ist dOOf, es lebe die Ofenecke...", "hard to translate that") );
- m_stack->addWidget( lbl, 4 );
-
-
- /* THE signal mapper does all the magic */
- m_stack->raiseWidget( m_main );
-}
-
-
-StackExample::~StackExample() {
-
-}
-
-
-
-void StackExample::closeEvent( QCloseEvent* ev) {
- /* if the close even came when we displayed a details */
- if (m_stack->visibleWidget() != m_main ) {
- m_stack->raiseWidget( m_main );
- ev->ignore();
- return;
- }
-
- ev->accept();
-}
diff --git a/libopie/big-screen/example/owidgetstack_example.h b/libopie/big-screen/example/owidgetstack_example.h
deleted file mode 100644
index 7977b48..0000000
--- a/libopie/big-screen/example/owidgetstack_example.h
+++ b/dev/null
@@ -1,27 +0,0 @@
-/*
- * You may use, modify and distribute this example without any limitation
- */
-
-#ifndef O_STACK_EXAMPLE_SIMPLE_H
-#define O_STACK_EXAMPLE_SIMPLE_H
-
-#include <qmainwindow.h>
-
-
-class OWidgetStack;
-class StackExample : public QMainWindow {
- Q_OBJECT
-public:
- StackExample( QWidget* paren, const char* name, WFlags fl );
- ~StackExample();
- static QString appName() { return QString::fromLatin1("owidgetstack-example"); }
-
-protected:
- void closeEvent( QCloseEvent* e );
-private:
- OWidgetStack* m_stack;
- QWidget* m_main;
-
-};
-
-#endif
diff --git a/libopie/big-screen/example/owidgetstack_example.pro b/libopie/big-screen/example/owidgetstack_example.pro
deleted file mode 100644
index ad1dc09..0000000
--- a/libopie/big-screen/example/owidgetstack_example.pro
+++ b/dev/null
@@ -1,13 +0,0 @@
-CONFIG += qt warn_on
-TEMPLATE = app
-TARGET = owidgetstack-example
-
-SOURCES = ../owidgetstack.cpp owidgetstack_example.cpp
-HEADERS = ../owidgetstack.h owidgetstack_example.h
-
-INCLUDEPATH += $(OPIEDIR)/include
-DEPENDSPATH += $(OPIEDIR)/include
-
-LIBS += -lqpe
-
-include ( $(OPIEDIR)/include.pro )