summaryrefslogtreecommitdiff
path: root/libopie2/examples
authordrw <drw>2004-02-22 17:54:40 (UTC)
committer drw <drw>2004-02-22 17:54:40 (UTC)
commit8705083d6a267450c71b0276833db5c7238f260e (patch) (side-by-side diff)
tree12cfeab08d8a05808650acb4bc48848633fda63e /libopie2/examples
parent5b27ef38d45ae4aa751c6e364cb62ed428808e3f (diff)
downloadopie-8705083d6a267450c71b0276833db5c7238f260e.zip
opie-8705083d6a267450c71b0276833db5c7238f260e.tar.gz
opie-8705083d6a267450c71b0276833db5c7238f260e.tar.bz2
libopie2: libopie->libopie2
Diffstat (limited to 'libopie2/examples') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/examples/opieui/osplitter_example/osplitter_mail.cpp5
-rw-r--r--libopie2/examples/opieui/osplitter_example/osplitter_mail.h4
-rw-r--r--libopie2/examples/opieui/osplitter_example/osplitter_mail.pro2
-rw-r--r--libopie2/examples/opieui/oversatileviewdemo/.cvsignore6
-rw-r--r--libopie2/examples/opieui/oversatileviewdemo/opieuidemo.cpp40
5 files changed, 32 insertions, 25 deletions
diff --git a/libopie2/examples/opieui/osplitter_example/osplitter_mail.cpp b/libopie2/examples/opieui/osplitter_example/osplitter_mail.cpp
index 4eaf3a9..a75f9dc 100644
--- a/libopie2/examples/opieui/osplitter_example/osplitter_mail.cpp
+++ b/libopie2/examples/opieui/osplitter_example/osplitter_mail.cpp
@@ -6,11 +6,8 @@
#include <qpe/qpeapplication.h>
-#include <opie/oapplicationfactory.h>
-
-#include "../osplitter.h"
+#include <opie2/oapplicationfactory.h>
#include "osplitter_mail.h"
-
OPIE_EXPORT_APP( OApplicationFactory<ListViews> )
diff --git a/libopie2/examples/opieui/osplitter_example/osplitter_mail.h b/libopie2/examples/opieui/osplitter_example/osplitter_mail.h
index b7e7efe..1447a92 100644
--- a/libopie2/examples/opieui/osplitter_example/osplitter_mail.h
+++ b/libopie2/examples/opieui/osplitter_example/osplitter_mail.h
@@ -15,4 +15,8 @@
#include <qlistview.h>
+#include <opie2/osplitter.h>
+
+using Opie::OSplitter;
+
class Folder;
class QLabel;
diff --git a/libopie2/examples/opieui/osplitter_example/osplitter_mail.pro b/libopie2/examples/opieui/osplitter_example/osplitter_mail.pro
index ec6e626..dd1bef2 100644
--- a/libopie2/examples/opieui/osplitter_example/osplitter_mail.pro
+++ b/libopie2/examples/opieui/osplitter_example/osplitter_mail.pro
@@ -9,4 +9,4 @@ HEADERS = osplitter_mail.h
SOURCES = osplitter_mail.cpp
-LIBS += -lqpe -lopie
+LIBS += -lqpe -lopieui2
include ( $(OPIEDIR)/include.pro )
diff --git a/libopie2/examples/opieui/oversatileviewdemo/.cvsignore b/libopie2/examples/opieui/oversatileviewdemo/.cvsignore
new file mode 100644
index 0000000..8f7300c
--- a/dev/null
+++ b/libopie2/examples/opieui/oversatileviewdemo/.cvsignore
@@ -0,0 +1,6 @@
+Makefile*
+moc*
+*moc
+*.o
+~*
+
diff --git a/libopie2/examples/opieui/oversatileviewdemo/opieuidemo.cpp b/libopie2/examples/opieui/oversatileviewdemo/opieuidemo.cpp
index 197669c..f62729c 100644
--- a/libopie2/examples/opieui/oversatileviewdemo/opieuidemo.cpp
+++ b/libopie2/examples/opieui/oversatileviewdemo/opieuidemo.cpp
@@ -34,5 +34,5 @@
#ifdef QWS
-#include <opie/odevice.h>
+#include <opie2/odevice.h>
using namespace Opie;
#endif
@@ -57,5 +57,5 @@ OpieUIDemo::OpieUIDemo( QWidget* parent, const char* name, WFlags fl )
: QMainWindow( parent, name, fl )
{
-
+
QMenuBar* mbar = this->menuBar();
OPopupMenu* demo = new OPopupMenu( this );
@@ -67,5 +67,5 @@ OpieUIDemo::OpieUIDemo( QWidget* parent, const char* name, WFlags fl )
demo->setItemParameter( demo->insertItem( "OSelector", this, SLOT( demo(int) ) ), oselector );
mbar->insertItem( "Demonstrate", demo );
-
+
build();
@@ -81,5 +81,5 @@ void OpieUIDemo::build()
setCentralWidget( main );
main->show();
-
+
main->addTab( new OVersatileViewDemo( main ), "VersatileView" );
}
@@ -103,5 +103,5 @@ void OpieUIDemo::demoOCompletionBox()
{
qDebug( "ocompletionbox" );
-
+
OCompletionBox* box = new OCompletionBox( 0 );
box->insertItem( "This CompletionBox" );
@@ -110,8 +110,8 @@ void OpieUIDemo::demoOCompletionBox()
box->insertItem( "Additional Items" );
box->insertItem( "Complete Completion Box" );
-
+
connect( box, SIGNAL( activated( const QString& ) ), this, SLOT( messageBox( const QString& ) ) );
box->popup();
-
+
}
@@ -119,7 +119,7 @@ void OpieUIDemo::demoOLineEdit()
{
qDebug( "olineedit" );
-
+
OLineEdit *edit = new OLineEdit( 0, "lineedit" );
-
+
edit->setCompletionMode( OGlobalSettings::CompletionPopup );
OCompletion* comp = edit->completionObject();
@@ -129,7 +129,7 @@ void OpieUIDemo::demoOLineEdit()
list << "mickey@tm.informatik.uni-frankfurt.de";
list << "mickey@vanille.de";
-
+
comp->setItems( list );
-
+
edit->show();
@@ -139,7 +139,7 @@ void OpieUIDemo::demoOComboBox()
{
qDebug( "ocombobox" );
-
+
OComboBox *combo = new OComboBox( true, 0, "combobox" );
-
+
combo->setCompletionMode( OGlobalSettings::CompletionPopup );
OCompletion* comp = combo->completionObject();
@@ -150,5 +150,5 @@ void OpieUIDemo::demoOComboBox()
ilist << "groucho@handhelds.org";
combo->insertStringList( ilist );
-
+
QStringList clist;
clist << "mickeyl@handhelds.org";
@@ -156,5 +156,5 @@ void OpieUIDemo::demoOComboBox()
clist << "mickey@vanille.de";
comp->setItems( clist );
-
+
combo->show();
@@ -164,7 +164,7 @@ void OpieUIDemo::demoOEditListBox()
{
qDebug( "oeditlistbox" );
-
+
OEditListBox* edit = new OEditListBox( "OEditListBox", 0, "editlistbox" );
-
+
edit->lineEdit()->setCompletionMode( OGlobalSettings::CompletionPopup );
OCompletion* comp = edit->lineEdit()->completionObject();
@@ -181,5 +181,5 @@ void OpieUIDemo::demoOEditListBox()
list << "mickeyl@handhelds.org";
edit->insertStringList( list );
-
+
edit->show();
@@ -189,10 +189,10 @@ void OpieUIDemo::demoOSelector()
{
qDebug( "oselector" );
-
+
OHSSelector* sel = new OHSSelector( 0, "gradientselector" );
//#sel->resize( QSize( 200, 30 ) );
//#sel->setColors( QColor( 90, 190, 60 ), QColor( 200, 55, 255 ) );
//#sel->setText( "Dark", "Light" );
-
+
sel->show();
}