summaryrefslogtreecommitdiff
path: root/noncore/settings
Unidiff
Diffstat (limited to 'noncore/settings') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/aqpkg/installdlgimpl.cpp15
-rw-r--r--noncore/settings/aqpkg/instoptions.ui78
-rw-r--r--noncore/settings/aqpkg/instoptionsimpl.cpp21
-rw-r--r--noncore/settings/aqpkg/instoptionsimpl.h1
4 files changed, 73 insertions, 42 deletions
diff --git a/noncore/settings/aqpkg/installdlgimpl.cpp b/noncore/settings/aqpkg/installdlgimpl.cpp
index db9a259..485fe3d 100644
--- a/noncore/settings/aqpkg/installdlgimpl.cpp
+++ b/noncore/settings/aqpkg/installdlgimpl.cpp
@@ -18,4 +18,5 @@
18#ifdef QWS 18#ifdef QWS
19#include <qpe/config.h> 19#include <qpe/config.h>
20#include <qpe/qpeapplication.h>
20#endif 21#endif
21 22
@@ -129,13 +130,5 @@ void InstallDlgImpl :: optionsSelected()
129 130
130 // set options selected from dialog 131 // set options selected from dialog
131 flags = 0; 132 flags = opt.getFlags();
132 if ( opt.forceDepends->isChecked() )
133 flags |= FORCE_DEPENDS;
134 if ( opt.forceReinstall->isChecked() )
135 flags |= FORCE_REINSTALL;
136 if ( opt.forceRemove->isChecked() )
137 flags |= FORCE_REMOVE;
138 if ( opt.forceOverwrite->isChecked() )
139 flags |= FORCE_OVERWRITE;
140 133
141#ifdef QWS 134#ifdef QWS
@@ -148,4 +141,5 @@ void InstallDlgImpl :: optionsSelected()
148void InstallDlgImpl :: installSelected() 141void InstallDlgImpl :: installSelected()
149{ 142{
143
150 if ( btnInstall->text() == "Close" ) 144 if ( btnInstall->text() == "Close" )
151 { 145 {
@@ -154,4 +148,6 @@ void InstallDlgImpl :: installSelected()
154 } 148 }
155 149
150 // Disable buttons
151 btnOptions->setEnabled( false );
156 btnInstall->setEnabled( false ); 152 btnInstall->setEnabled( false );
157 153
@@ -231,4 +227,5 @@ void InstallDlgImpl :: installSelected()
231 } 227 }
232 228
229 btnOptions->setEnabled( true );
233 btnInstall->setEnabled( true ); 230 btnInstall->setEnabled( true );
234 btnInstall->setText( tr( "Close" ) ); 231 btnInstall->setText( tr( "Close" ) );
diff --git a/noncore/settings/aqpkg/instoptions.ui b/noncore/settings/aqpkg/instoptions.ui
index 52897dd..00eab1e 100644
--- a/noncore/settings/aqpkg/instoptions.ui
+++ b/noncore/settings/aqpkg/instoptions.ui
@@ -12,6 +12,6 @@
12 <x>0</x> 12 <x>0</x>
13 <y>0</y> 13 <y>0</y>
14 <width>154</width> 14 <width>283</width>
15 <height>205</height> 15 <height>274</height>
16 </rect> 16 </rect>
17 </property> 17 </property>
@@ -24,4 +24,13 @@
24 <bool>false</bool> 24 <bool>false</bool>
25 </property> 25 </property>
26 <vbox>
27 <property stdset="1">
28 <name>margin</name>
29 <number>11</number>
30 </property>
31 <property stdset="1">
32 <name>spacing</name>
33 <number>6</number>
34 </property>
26 <widget> 35 <widget>
27 <class>QGroupBox</class> 36 <class>QGroupBox</class>
@@ -31,13 +40,4 @@
31 </property> 40 </property>
32 <property stdset="1"> 41 <property stdset="1">
33 <name>geometry</name>
34 <rect>
35 <x>11</x>
36 <y>11</y>
37 <width>136</width>
38 <height>120</height>
39 </rect>
40 </property>
41 <property stdset="1">
42 <name>title</name> 42 <name>title</name>
43 <string>Options</string> 43 <string>Options</string>
@@ -52,7 +52,7 @@
52 <name>geometry</name> 52 <name>geometry</name>
53 <rect> 53 <rect>
54 <x>11</x> 54 <x>12</x>
55 <y>19</y> 55 <y>20</y>
56 <width>114</width> 56 <width>110</width>
57 <height>19</height> 57 <height>19</height>
58 </rect> 58 </rect>
@@ -72,7 +72,7 @@
72 <name>geometry</name> 72 <name>geometry</name>
73 <rect> 73 <rect>
74 <x>11</x> 74 <x>12</x>
75 <y>44</y> 75 <y>45</y>
76 <width>114</width> 76 <width>107</width>
77 <height>19</height> 77 <height>19</height>
78 </rect> 78 </rect>
@@ -87,12 +87,12 @@
87 <property stdset="1"> 87 <property stdset="1">
88 <name>name</name> 88 <name>name</name>
89 <cstring>forceOverwrite</cstring> 89 <cstring>forceRemove</cstring>
90 </property> 90 </property>
91 <property stdset="1"> 91 <property stdset="1">
92 <name>geometry</name> 92 <name>geometry</name>
93 <rect> 93 <rect>
94 <x>11</x> 94 <x>12</x>
95 <y>94</y> 95 <y>70</y>
96 <width>114</width> 96 <width>105</width>
97 <height>19</height> 97 <height>19</height>
98 </rect> 98 </rect>
@@ -100,5 +100,5 @@
100 <property stdset="1"> 100 <property stdset="1">
101 <name>text</name> 101 <name>text</name>
102 <string>Force Overwrite</string> 102 <string>Force Remove</string>
103 </property> 103 </property>
104 </widget> 104 </widget>
@@ -107,11 +107,11 @@
107 <property stdset="1"> 107 <property stdset="1">
108 <name>name</name> 108 <name>name</name>
109 <cstring>forceRemove</cstring> 109 <cstring>forceOverwrite</cstring>
110 </property> 110 </property>
111 <property stdset="1"> 111 <property stdset="1">
112 <name>geometry</name> 112 <name>geometry</name>
113 <rect> 113 <rect>
114 <x>11</x> 114 <x>12</x>
115 <y>69</y> 115 <y>95</y>
116 <width>114</width> 116 <width>114</width>
117 <height>19</height> 117 <height>19</height>
@@ -120,28 +120,40 @@
120 <property stdset="1"> 120 <property stdset="1">
121 <name>text</name> 121 <name>text</name>
122 <string>Force Remove</string> 122 <string>Force Overwrite</string>
123 </property> 123 </property>
124 </widget> 124 </widget>
125 </widget>
126 <widget> 125 <widget>
127 <class>QPushButton</class> 126 <class>QCheckBox</class>
128 <property stdset="1"> 127 <property stdset="1">
129 <name>name</name> 128 <name>name</name>
130 <cstring>btnOK</cstring> 129 <cstring>verboseWget</cstring>
131 </property> 130 </property>
132 <property stdset="1"> 131 <property stdset="1">
133 <name>geometry</name> 132 <name>geometry</name>
134 <rect> 133 <rect>
135 <x>11</x> 134 <x>12</x>
136 <y>166</y> 135 <y>120</y>
137 <width>136</width> 136 <width>104</width>
138 <height>28</height> 137 <height>19</height>
139 </rect> 138 </rect>
140 </property> 139 </property>
141 <property stdset="1"> 140 <property stdset="1">
142 <name>text</name> 141 <name>text</name>
142 <string>Verbose WGet</string>
143 </property>
144 </widget>
145 </widget>
146 <widget>
147 <class>QPushButton</class>
148 <property stdset="1">
149 <name>name</name>
150 <cstring>btnOK</cstring>
151 </property>
152 <property stdset="1">
153 <name>text</name>
143 <string>OK</string> 154 <string>OK</string>
144 </property> 155 </property>
145 </widget> 156 </widget>
157 </vbox>
146</widget> 158</widget>
147<connections> 159<connections>
diff --git a/noncore/settings/aqpkg/instoptionsimpl.cpp b/noncore/settings/aqpkg/instoptionsimpl.cpp
index dd996e0..3a37eec 100644
--- a/noncore/settings/aqpkg/instoptionsimpl.cpp
+++ b/noncore/settings/aqpkg/instoptionsimpl.cpp
@@ -38,4 +38,6 @@ InstallOptionsDlgImpl::InstallOptionsDlgImpl( int flags, QWidget * parent, const
38 if ( flags & FORCE_OVERWRITE ) 38 if ( flags & FORCE_OVERWRITE )
39 forceOverwrite->setChecked( true ); 39 forceOverwrite->setChecked( true );
40 if ( flags & VERBOSE_WGET )
41 verboseWget->setChecked( true );
40// if ( flags & MAKE_LINKS ) 42// if ( flags & MAKE_LINKS )
41 // makeLinks->setChecked( true ); 43 // makeLinks->setChecked( true );
@@ -48,2 +50,21 @@ InstallOptionsDlgImpl::~InstallOptionsDlgImpl()
48{ 50{
49} 51}
52
53
54int InstallOptionsDlgImpl :: getFlags()
55{
56 int flags = 0;
57
58 if ( forceDepends->isChecked() )
59 flags |= FORCE_DEPENDS;
60 if ( forceReinstall->isChecked() )
61 flags |= FORCE_REINSTALL;
62 if ( forceRemove->isChecked() )
63 flags |= FORCE_REMOVE;
64 if ( forceOverwrite->isChecked() )
65 flags |= FORCE_OVERWRITE;
66 if ( verboseWget->isChecked() )
67 flags |= VERBOSE_WGET;
68
69 return flags;
70} \ No newline at end of file
diff --git a/noncore/settings/aqpkg/instoptionsimpl.h b/noncore/settings/aqpkg/instoptionsimpl.h
index 08ec616..893f9bb 100644
--- a/noncore/settings/aqpkg/instoptionsimpl.h
+++ b/noncore/settings/aqpkg/instoptionsimpl.h
@@ -25,4 +25,5 @@ public:
25 InstallOptionsDlgImpl( int flags, QWidget * parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 ); 25 InstallOptionsDlgImpl( int flags, QWidget * parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 );
26 ~InstallOptionsDlgImpl(); 26 ~InstallOptionsDlgImpl();
27 int getFlags();
27 28
28protected: 29protected: