summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/settingsimpl.cpp
Unidiff
Diffstat (limited to 'noncore/settings/aqpkg/settingsimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/settingsimpl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/settings/aqpkg/settingsimpl.cpp b/noncore/settings/aqpkg/settingsimpl.cpp
index b9dbb6e..2f35617 100644
--- a/noncore/settings/aqpkg/settingsimpl.cpp
+++ b/noncore/settings/aqpkg/settingsimpl.cpp
@@ -31,60 +31,62 @@
31#include "global.h" 31#include "global.h"
32 32
33/* OPIE */ 33/* OPIE */
34#include <opie2/otabwidget.h> 34#include <opie2/otabwidget.h>
35#ifdef QWS 35#ifdef QWS
36#include <qpe/config.h> 36#include <qpe/config.h>
37#include <qpe/resource.h> 37#include <qpe/resource.h>
38#endif 38#endif
39#include <qpe/qpeapplication.h> 39#include <qpe/qpeapplication.h>
40 40
41/* QT */ 41/* QT */
42#include <qcheckbox.h> 42#include <qcheckbox.h>
43#include <qgroupbox.h> 43#include <qgroupbox.h>
44#include <qlabel.h> 44#include <qlabel.h>
45#include <qlayout.h> 45#include <qlayout.h>
46#include <qlineedit.h> 46#include <qlineedit.h>
47#include <qlistbox.h> 47#include <qlistbox.h>
48#include <qpushbutton.h> 48#include <qpushbutton.h>
49 49
50/* STD */ 50/* STD */
51#include <fstream> 51#include <fstream>
52#include <algorithm> 52#include <algorithm>
53using namespace std; 53using namespace std;
54 54
55using namespace Opie::Ui;
56using namespace Opie::Ui;
55SettingsImpl :: SettingsImpl( DataManager *dataManager, QWidget * parent, const char* name, bool modal, WFlags fl ) 57SettingsImpl :: SettingsImpl( DataManager *dataManager, QWidget * parent, const char* name, bool modal, WFlags fl )
56 : QDialog( parent, name, modal, fl ) 58 : QDialog( parent, name, modal, fl )
57{ 59{
58 setCaption( tr( "Configuration" ) ); 60 setCaption( tr( "Configuration" ) );
59 61
60 // Setup layout to make everything pretty 62 // Setup layout to make everything pretty
61 QVBoxLayout *layout = new QVBoxLayout( this ); 63 QVBoxLayout *layout = new QVBoxLayout( this );
62 layout->setMargin( 2 ); 64 layout->setMargin( 2 );
63 layout->setSpacing( 4 ); 65 layout->setSpacing( 4 );
64 66
65 // Setup tabs for all info 67 // Setup tabs for all info
66 Opie::OTabWidget *tabwidget = new Opie::OTabWidget( this ); 68 OTabWidget *tabwidget = new OTabWidget( this );
67 layout->addWidget( tabwidget ); 69 layout->addWidget( tabwidget );
68 70
69 tabwidget->addTab( initServerTab(), "aqpkg/servertab", tr( "Servers" ) ); 71 tabwidget->addTab( initServerTab(), "aqpkg/servertab", tr( "Servers" ) );
70 tabwidget->addTab( initDestinationTab(), "aqpkg/desttab", tr( "Destinations" ) ); 72 tabwidget->addTab( initDestinationTab(), "aqpkg/desttab", tr( "Destinations" ) );
71 tabwidget->addTab( initProxyTab(), "aqpkg/proxytab", tr( "Proxies" ) ); 73 tabwidget->addTab( initProxyTab(), "aqpkg/proxytab", tr( "Proxies" ) );
72 tabwidget->setCurrentTab( tr( "Servers" ) ); 74 tabwidget->setCurrentTab( tr( "Servers" ) );
73 75
74 dataMgr = dataManager; 76 dataMgr = dataManager;
75 setupData(); 77 setupData();
76 changed = false; 78 changed = false;
77 newserver = false; 79 newserver = false;
78 newdestination = false; 80 newdestination = false;
79} 81}
80 82
81SettingsImpl :: ~SettingsImpl() 83SettingsImpl :: ~SettingsImpl()
82{ 84{
83} 85}
84 86
85bool SettingsImpl :: showDlg() 87bool SettingsImpl :: showDlg()
86{ 88{
87 QPEApplication::execDialog( this ); 89 QPEApplication::execDialog( this );
88 if ( changed ) 90 if ( changed )
89 dataMgr->writeOutIpkgConf(); 91 dataMgr->writeOutIpkgConf();
90 92