summaryrefslogtreecommitdiff
path: root/libopie2/opiecore
authortille <tille>2003-09-03 15:49:02 (UTC)
committer tille <tille>2003-09-03 15:49:02 (UTC)
commit9bcca67b731d0cf3c10092ec31234d5d03cef5cd (patch) (unidiff)
tree5f19d096cf0def032215201f725594f46436a850 /libopie2/opiecore
parentfa6baf2326a520cde75f1178bab51c9fc3f6cec3 (diff)
downloadopie-9bcca67b731d0cf3c10092ec31234d5d03cef5cd.zip
opie-9bcca67b731d0cf3c10092ec31234d5d03cef5cd.tar.gz
opie-9bcca67b731d0cf3c10092ec31234d5d03cef5cd.tar.bz2
more compatibility stuff
Diffstat (limited to 'libopie2/opiecore') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/oapplication.h5
-rw-r--r--libopie2/opiecore/opieapplication.cpp22
-rw-r--r--libopie2/opiecore/opieapplication.h2
-rw-r--r--libopie2/opiecore/opieconfig.h3
4 files changed, 31 insertions, 1 deletions
diff --git a/libopie2/opiecore/oapplication.h b/libopie2/opiecore/oapplication.h
index da5b905..a3f2201 100644
--- a/libopie2/opiecore/oapplication.h
+++ b/libopie2/opiecore/oapplication.h
@@ -92,6 +92,11 @@ class OApplication : public OpieApplication
92 */ 92 */
93 virtual void setTitle( const QString& title = QString::null ) const; 93 virtual void setTitle( const QString& title = QString::null ) const;
94 94
95 /**
96 * see qpeDir()
97 */
98 static QString opieDir() {return qpeDir();};
99
95 protected: 100 protected:
96 void init(); 101 void init();
97 102
diff --git a/libopie2/opiecore/opieapplication.cpp b/libopie2/opiecore/opieapplication.cpp
index 7ff7b44..ae27b25 100644
--- a/libopie2/opiecore/opieapplication.cpp
+++ b/libopie2/opiecore/opieapplication.cpp
@@ -28,6 +28,7 @@
28 Boston, MA 02111-1307, USA. 28 Boston, MA 02111-1307, USA.
29*/ 29*/
30 30
31#include <opie2/odebug.h>
31 32
32#include "opieapplication.h" 33#include "opieapplication.h"
33 34
@@ -42,7 +43,28 @@ OpieApplication::OpieApplication( int& argc, char** argv)
42#ifndef QWS 43#ifndef QWS
43void OpieApplication::showMainWidget( QWidget* widget, bool nomax ) 44void OpieApplication::showMainWidget( QWidget* widget, bool nomax )
44{ 45{
46 if (nomax) odebug << "ignoring nomax";
45 setMainWidget( widget ); 47 setMainWidget( widget );
46 widget->show(); 48 widget->show();
47}; 49};
48#endif 50#endif
51
52#ifndef QWS
53QString OpieApplication::qpeDir()
54{
55 const char * base = getenv( "OPIEDIR" );
56 if ( base )
57 return QString( base ) + "/";
58
59 return QString( "../" );
60}
61#endif
62
63
64#ifndef QWS
65void OpieApplication::showMainDocumentWidget( QWidget* widget, bool nomax)
66{
67 showMainWidget(widget,nomax);
68}
69#endif
70
diff --git a/libopie2/opiecore/opieapplication.h b/libopie2/opiecore/opieapplication.h
index a864ee9..29e2e9d 100644
--- a/libopie2/opiecore/opieapplication.h
+++ b/libopie2/opiecore/opieapplication.h
@@ -49,6 +49,8 @@ class OpieApplication
49 49
50#ifndef QWS 50#ifndef QWS
51 void showMainWidget( QWidget* widget, bool nomax=false ); 51 void showMainWidget( QWidget* widget, bool nomax=false );
52 void showMainDocumentWidget( QWidget* widget, bool nomax=false );
53 static QString qpeDir();
52#endif 54#endif
53}; 55};
54 56
diff --git a/libopie2/opiecore/opieconfig.h b/libopie2/opiecore/opieconfig.h
index 011ac86..e3eaec0 100644
--- a/libopie2/opiecore/opieconfig.h
+++ b/libopie2/opiecore/opieconfig.h
@@ -55,7 +55,8 @@ class OpieConfig
55 55
56#ifndef QWS 56#ifndef QWS
57 void setGroup( const QString& key); 57 void setGroup( const QString& key);
58 bool hasKey ( const QString & key ) const; 58 bool hasKey ( const QString & key ) const;
59 void write() {}; // FIXME: did not find the docu... what shall I do here?
59#endif 60#endif
60 61
61 /** 62 /**