Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

osplitter_example.cpp

Go to the documentation of this file.
00001 #include "osplitter_example.h"
00002 
00003 /* OPIE */
00004 
00005 #include <opie2/osplitter.h>
00006 #include <opie2/ofileselector.h>
00007 #include <qpe/qpeapplication.h>
00008 #include <opie2/oapplicationfactory.h>
00009 
00010 /* QT*/
00011 #include <qdir.h>
00012 #include <qlayout.h>
00013 
00014 using namespace Opie::Ui;
00015 using namespace Opie::Core;
00016 
00017 OPIE_EXPORT_APP( OApplicationFactory<OSplitterExample> )
00018 
00019 OSplitterExample::OSplitterExample( QWidget *w,const char* n,WFlags f )
00020     : QWidget( w, n, f ){
00021     QVBoxLayout * lay = new QVBoxLayout(this);
00022     OSplitter * splitter = new OSplitter( Horizontal, this );
00023     lay->addWidget( splitter );
00024     
00025     OFileSelector *selector = new OFileSelector( splitter, OFileSelector::FileSelector,
00026                                                 OFileSelector::Normal, QDir::homeDirPath(),
00027                                                 QString::null );
00028     splitter->addWidget( selector, "zoom", tr("Selector 1") );
00029     
00030     selector = new OFileSelector( splitter, OFileSelector::FileSelector, OFileSelector::Normal,
00031                                 QDir::homeDirPath(), QString::null );
00032     splitter->addWidget( selector, "zoom", tr("Selector 2") );
00033     
00034 }

Generated on Sat Nov 5 16:15:59 2005 for OPIE by  doxygen 1.4.2