summaryrefslogtreecommitdiff
path: root/library
authormickeyl <mickeyl>2004-03-08 16:35:56 (UTC)
committer mickeyl <mickeyl>2004-03-08 16:35:56 (UTC)
commit82fb70f4e5d8582185da89264e1a1e3b2517f459 (patch) (unidiff)
tree12dfcfee4c95d3c96809397197c2b09e6e09cea6 /library
parent15a9a86fbec54292a82663e1b01c93450f3fbbf8 (diff)
downloadopie-82fb70f4e5d8582185da89264e1a1e3b2517f459.zip
opie-82fb70f4e5d8582185da89264e1a1e3b2517f459.tar.gz
opie-82fb70f4e5d8582185da89264e1a1e3b2517f459.tar.bz2
add a line where the user can insert command line arguments for the AppLnk
Diffstat (limited to 'library') (more/less context) (ignore whitespace changes)
-rw-r--r--library/lnkproperties.cpp3
-rw-r--r--library/lnkpropertiesbase_p.ui94
2 files changed, 59 insertions, 38 deletions
diff --git a/library/lnkproperties.cpp b/library/lnkproperties.cpp
index 0661423..865f590 100644
--- a/library/lnkproperties.cpp
+++ b/library/lnkproperties.cpp
@@ -117,24 +117,27 @@ LnkProperties::LnkProperties( AppLnk* l, QWidget* parent )
117 117
118 if ( l->property("CanFastload") == "0" ) 118 if ( l->property("CanFastload") == "0" )
119 d->preload->hide(); 119 d->preload->hide();
120 if ( !l->property("Rotation"). isEmpty ()) { 120 if ( !l->property("Rotation"). isEmpty ()) {
121 d->rotate->setChecked ( true ); 121 d->rotate->setChecked ( true );
122 //don't use rotate buttons for now (see comment above) 122 //don't use rotate buttons for now (see comment above)
123 //d->rotateButtons->setButton((l->rotation().toInt()%360)/90); 123 //d->rotateButtons->setButton((l->rotation().toInt()%360)/90);
124 } 124 }
125 else { 125 else {
126 d->rotateButtons->setEnabled(false); 126 d->rotateButtons->setEnabled(false);
127 } 127 }
128 128
129 if ( !l->property( "Arguments" ).isEmpty() )
130 d->arguments->setText( l->property( "Arguments" ) );
131
129 Config cfg("Launcher"); 132 Config cfg("Launcher");
130 cfg.setGroup("Preload"); 133 cfg.setGroup("Preload");
131 QStringList apps = cfg.readListEntry("Apps",','); 134 QStringList apps = cfg.readListEntry("Apps",',');
132 d->preload->setChecked( apps.contains(l->exec()) ); 135 d->preload->setChecked( apps.contains(l->exec()) );
133 if ( Global::isBuiltinCommand(lnk->exec()) ) 136 if ( Global::isBuiltinCommand(lnk->exec()) )
134 d->preload->hide(); // builtins are always fast 137 d->preload->hide(); // builtins are always fast
135 138
136 currentLocation = 0; // apps not movable (yet) 139 currentLocation = 0; // apps not movable (yet)
137 } 140 }
138} 141}
139 142
140LnkProperties::~LnkProperties() 143LnkProperties::~LnkProperties()
diff --git a/library/lnkpropertiesbase_p.ui b/library/lnkpropertiesbase_p.ui
index 1bafab6..dcbd4d7 100644
--- a/library/lnkpropertiesbase_p.ui
+++ b/library/lnkpropertiesbase_p.ui
@@ -2,25 +2,25 @@
2<class>LnkPropertiesBase</class> 2<class>LnkPropertiesBase</class>
3<widget> 3<widget>
4 <class>QWidget</class> 4 <class>QWidget</class>
5 <property stdset="1"> 5 <property stdset="1">
6 <name>name</name> 6 <name>name</name>
7 <cstring>Form1</cstring> 7 <cstring>Form1</cstring>
8 </property> 8 </property>
9 <property stdset="1"> 9 <property stdset="1">
10 <name>geometry</name> 10 <name>geometry</name>
11 <rect> 11 <rect>
12 <x>0</x> 12 <x>0</x>
13 <y>0</y> 13 <y>0</y>
14 <width>263</width> 14 <width>259</width>
15 <height>450</height> 15 <height>450</height>
16 </rect> 16 </rect>
17 </property> 17 </property>
18 <property stdset="1"> 18 <property stdset="1">
19 <name>sizePolicy</name> 19 <name>sizePolicy</name>
20 <sizepolicy> 20 <sizepolicy>
21 <hsizetype>5</hsizetype> 21 <hsizetype>5</hsizetype>
22 <vsizetype>5</vsizetype> 22 <vsizetype>5</vsizetype>
23 </sizepolicy> 23 </sizepolicy>
24 </property> 24 </property>
25 <property stdset="1"> 25 <property stdset="1">
26 <name>font</name> 26 <name>font</name>
@@ -68,45 +68,42 @@
68 <name>frameShadow</name> 68 <name>frameShadow</name>
69 <enum>Plain</enum> 69 <enum>Plain</enum>
70 </property> 70 </property>
71 <property> 71 <property>
72 <name>layoutMargin</name> 72 <name>layoutMargin</name>
73 </property> 73 </property>
74 <property> 74 <property>
75 <name>layoutSpacing</name> 75 <name>layoutSpacing</name>
76 </property> 76 </property>
77 <grid> 77 <grid>
78 <property stdset="1"> 78 <property stdset="1">
79 <name>margin</name> 79 <name>margin</name>
80 <number>3</number> 80 <number>2</number>
81 </property> 81 </property>
82 <property stdset="1"> 82 <property stdset="1">
83 <name>spacing</name> 83 <name>spacing</name>
84 <number>3</number> 84 <number>4</number>
85 </property> 85 </property>
86 <widget row="8" column="0" rowspan="1" colspan="2" > 86 <widget row="1" column="0" >
87 <class>CategoryWidget</class> 87 <class>QLabel</class>
88 <property stdset="1"> 88 <property stdset="1">
89 <name>name</name> 89 <name>name</name>
90 <cstring>categoryEdit</cstring> 90 <cstring>TextLabel1_2</cstring>
91 </property> 91 </property>
92 <property stdset="1"> 92 <property stdset="1">
93 <name>sizePolicy</name> 93 <name>text</name>
94 <sizepolicy> 94 <string>Arguments:</string>
95 <hsizetype>1</hsizetype>
96 <vsizetype>7</vsizetype>
97 </sizepolicy>
98 </property> 95 </property>
99 </widget> 96 </widget>
100 <widget row="5" column="0" rowspan="1" colspan="2" > 97 <widget row="6" column="0" rowspan="1" colspan="2" >
101 <class>QCheckBox</class> 98 <class>QCheckBox</class>
102 <property stdset="1"> 99 <property stdset="1">
103 <name>name</name> 100 <name>name</name>
104 <cstring>rotate</cstring> 101 <cstring>rotate</cstring>
105 </property> 102 </property>
106 <property stdset="1"> 103 <property stdset="1">
107 <name>text</name> 104 <name>text</name>
108 <string>Use custom rotation</string> 105 <string>Use custom rotation</string>
109 </property> 106 </property>
110 <property> 107 <property>
111 <name>layoutMargin</name> 108 <name>layoutMargin</name>
112 </property> 109 </property>
@@ -131,79 +128,79 @@
131 <vsizetype>0</vsizetype> 128 <vsizetype>0</vsizetype>
132 </sizepolicy> 129 </sizepolicy>
133 </property> 130 </property>
134 <property stdset="1"> 131 <property stdset="1">
135 <name>text</name> 132 <name>text</name>
136 <string></string> 133 <string></string>
137 </property> 134 </property>
138 <property> 135 <property>
139 <name>whatsThis</name> 136 <name>whatsThis</name>
140 <string>The name of this document.</string> 137 <string>The name of this document.</string>
141 </property> 138 </property>
142 </widget> 139 </widget>
143 <widget row="1" column="1" > 140 <widget row="2" column="1" >
144 <class>QComboBox</class> 141 <class>QComboBox</class>
145 <property stdset="1"> 142 <property stdset="1">
146 <name>name</name> 143 <name>name</name>
147 <cstring>locationCombo</cstring> 144 <cstring>locationCombo</cstring>
148 </property> 145 </property>
149 <property stdset="1"> 146 <property stdset="1">
150 <name>sizePolicy</name> 147 <name>sizePolicy</name>
151 <sizepolicy> 148 <sizepolicy>
152 <hsizetype>7</hsizetype> 149 <hsizetype>7</hsizetype>
153 <vsizetype>0</vsizetype> 150 <vsizetype>0</vsizetype>
154 </sizepolicy> 151 </sizepolicy>
155 </property> 152 </property>
156 <property> 153 <property>
157 <name>whatsThis</name> 154 <name>whatsThis</name>
158 <string>The media the document resides on.</string> 155 <string>The media the document resides on.</string>
159 </property> 156 </property>
160 </widget> 157 </widget>
161 <widget row="2" column="0" > 158 <widget row="3" column="0" >
162 <class>QLabel</class> 159 <class>QLabel</class>
163 <property stdset="1"> 160 <property stdset="1">
164 <name>name</name> 161 <name>name</name>
165 <cstring>typeLabel</cstring> 162 <cstring>typeLabel</cstring>
166 </property> 163 </property>
167 <property stdset="1"> 164 <property stdset="1">
168 <name>focusPolicy</name> 165 <name>focusPolicy</name>
169 <enum>NoFocus</enum> 166 <enum>NoFocus</enum>
170 </property> 167 </property>
171 <property stdset="1"> 168 <property stdset="1">
172 <name>text</name> 169 <name>text</name>
173 <string>Type:</string> 170 <string>Type:</string>
174 </property> 171 </property>
175 <property stdset="1"> 172 <property stdset="1">
176 <name>textFormat</name> 173 <name>textFormat</name>
177 <enum>RichText</enum> 174 <enum>RichText</enum>
178 </property> 175 </property>
179 <property> 176 <property>
180 <name>layoutMargin</name> 177 <name>layoutMargin</name>
181 </property> 178 </property>
182 <property> 179 <property>
183 <name>layoutSpacing</name> 180 <name>layoutSpacing</name>
184 </property> 181 </property>
185 </widget> 182 </widget>
186 <widget row="2" column="1" > 183 <widget row="3" column="1" >
187 <class>QLabel</class> 184 <class>QLabel</class>
188 <property stdset="1"> 185 <property stdset="1">
189 <name>name</name> 186 <name>name</name>
190 <cstring>type</cstring> 187 <cstring>type</cstring>
191 </property> 188 </property>
192 <property stdset="1"> 189 <property stdset="1">
193 <name>text</name> 190 <name>text</name>
194 <string></string> 191 <string></string>
195 </property> 192 </property>
196 </widget> 193 </widget>
197 <widget row="1" column="0" > 194 <widget row="2" column="0" >
198 <class>QLabel</class> 195 <class>QLabel</class>
199 <property stdset="1"> 196 <property stdset="1">
200 <name>name</name> 197 <name>name</name>
201 <cstring>locationLabel</cstring> 198 <cstring>locationLabel</cstring>
202 </property> 199 </property>
203 <property stdset="1"> 200 <property stdset="1">
204 <name>sizePolicy</name> 201 <name>sizePolicy</name>
205 <sizepolicy> 202 <sizepolicy>
206 <hsizetype>1</hsizetype> 203 <hsizetype>1</hsizetype>
207 <vsizetype>1</vsizetype> 204 <vsizetype>1</vsizetype>
208 </sizepolicy> 205 </sizepolicy>
209 </property> 206 </property>
@@ -228,36 +225,36 @@
228 <name>name</name> 225 <name>name</name>
229 <cstring>TextLabel1</cstring> 226 <cstring>TextLabel1</cstring>
230 </property> 227 </property>
231 <property stdset="1"> 228 <property stdset="1">
232 <name>frameShadow</name> 229 <name>frameShadow</name>
233 <enum>MShadow</enum> 230 <enum>MShadow</enum>
234 </property> 231 </property>
235 <property stdset="1"> 232 <property stdset="1">
236 <name>text</name> 233 <name>text</name>
237 <string>Name:</string> 234 <string>Name:</string>
238 </property> 235 </property>
239 </widget> 236 </widget>
240 <widget row="3" column="1" > 237 <widget row="4" column="1" >
241 <class>QLabel</class> 238 <class>QLabel</class>
242 <property stdset="1"> 239 <property stdset="1">
243 <name>name</name> 240 <name>name</name>
244 <cstring>comment</cstring> 241 <cstring>comment</cstring>
245 </property> 242 </property>
246 <property stdset="1"> 243 <property stdset="1">
247 <name>text</name> 244 <name>text</name>
248 <string></string> 245 <string></string>
249 </property> 246 </property>
250 </widget> 247 </widget>
251 <widget row="6" column="0" rowspan="1" colspan="2" > 248 <widget row="7" column="0" rowspan="1" colspan="2" >
252 <class>QButtonGroup</class> 249 <class>QButtonGroup</class>
253 <property stdset="1"> 250 <property stdset="1">
254 <name>name</name> 251 <name>name</name>
255 <cstring>rotateButtons</cstring> 252 <cstring>rotateButtons</cstring>
256 </property> 253 </property>
257 <property stdset="1"> 254 <property stdset="1">
258 <name>frameShape</name> 255 <name>frameShape</name>
259 <enum>NoFrame</enum> 256 <enum>NoFrame</enum>
260 </property> 257 </property>
261 <property stdset="1"> 258 <property stdset="1">
262 <name>title</name> 259 <name>title</name>
263 <string></string> 260 <string></string>
@@ -448,78 +445,99 @@
448 <enum>MinimumExpanding</enum> 445 <enum>MinimumExpanding</enum>
449 </property> 446 </property>
450 <property> 447 <property>
451 <name>sizeHint</name> 448 <name>sizeHint</name>
452 <size> 449 <size>
453 <width>20</width> 450 <width>20</width>
454 <height>20</height> 451 <height>20</height>
455 </size> 452 </size>
456 </property> 453 </property>
457 </spacer> 454 </spacer>
458 </hbox> 455 </hbox>
459 </widget> 456 </widget>
460 <widget row="7" column="0" rowspan="1" colspan="2" > 457 <widget row="5" column="0" rowspan="1" colspan="2" >
461 <class>QLabel</class>
462 <property stdset="1">
463 <name>name</name>
464 <cstring>labelspacer</cstring>
465 </property>
466 <property stdset="1">
467 <name>sizePolicy</name>
468 <sizepolicy>
469 <hsizetype>1</hsizetype>
470 <vsizetype>7</vsizetype>
471 </sizepolicy>
472 </property>
473 <property stdset="1">
474 <name>text</name>
475 <string></string>
476 </property>
477 </widget>
478 <widget row="4" column="0" rowspan="1" colspan="2" >
479 <class>QCheckBox</class> 458 <class>QCheckBox</class>
480 <property stdset="1"> 459 <property stdset="1">
481 <name>name</name> 460 <name>name</name>
482 <cstring>preload</cstring> 461 <cstring>preload</cstring>
483 </property> 462 </property>
484 <property stdset="1"> 463 <property stdset="1">
485 <name>text</name> 464 <name>text</name>
486 <string>Fast load (consumes memory)</string> 465 <string>Fast load (consumes memory)</string>
487 </property> 466 </property>
488 <property> 467 <property>
489 <name>layoutMargin</name> 468 <name>layoutMargin</name>
490 </property> 469 </property>
491 <property> 470 <property>
492 <name>layoutSpacing</name> 471 <name>layoutSpacing</name>
493 </property> 472 </property>
494 <property> 473 <property>
495 <name>whatsThis</name> 474 <name>whatsThis</name>
496 <string>Preload this application so that it is available instantly.</string> 475 <string>Preload this application so that it is available instantly.</string>
497 </property> 476 </property>
498 </widget> 477 </widget>
499 <widget row="3" column="0" > 478 <widget row="4" column="0" >
500 <class>QLabel</class> 479 <class>QLabel</class>
501 <property stdset="1"> 480 <property stdset="1">
502 <name>name</name> 481 <name>name</name>
503 <cstring>commentLabel</cstring> 482 <cstring>commentLabel</cstring>
504 </property> 483 </property>
505 <property stdset="1"> 484 <property stdset="1">
506 <name>text</name> 485 <name>text</name>
507 <string>Comment:</string> 486 <string>Comment:</string>
508 </property> 487 </property>
509 <property stdset="1"> 488 <property stdset="1">
510 <name>textFormat</name> 489 <name>textFormat</name>
511 <enum>RichText</enum> 490 <enum>RichText</enum>
512 </property> 491 </property>
513 </widget> 492 </widget>
493 <widget row="1" column="1" >
494 <class>QLineEdit</class>
495 <property stdset="1">
496 <name>name</name>
497 <cstring>arguments</cstring>
498 </property>
499 </widget>
500 <widget row="9" column="0" rowspan="1" colspan="2" >
501 <class>CategoryWidget</class>
502 <property stdset="1">
503 <name>name</name>
504 <cstring>categoryEdit</cstring>
505 </property>
506 <property stdset="1">
507 <name>sizePolicy</name>
508 <sizepolicy>
509 <hsizetype>1</hsizetype>
510 <vsizetype>7</vsizetype>
511 </sizepolicy>
512 </property>
513 </widget>
514 <widget row="8" column="0" rowspan="1" colspan="2" >
515 <class>QLabel</class>
516 <property stdset="1">
517 <name>name</name>
518 <cstring>labelspacer</cstring>
519 </property>
520 <property stdset="1">
521 <name>sizePolicy</name>
522 <sizepolicy>
523 <hsizetype>1</hsizetype>
524 <vsizetype>7</vsizetype>
525 </sizepolicy>
526 </property>
527 <property stdset="1">
528 <name>text</name>
529 <string></string>
530 </property>
531 </widget>
514 </grid> 532 </grid>
515 </widget> 533 </widget>
516 <widget> 534 <widget>
517 <class>Line</class> 535 <class>Line</class>
518 <property stdset="1"> 536 <property stdset="1">
519 <name>name</name> 537 <name>name</name>
520 <cstring>hline</cstring> 538 <cstring>hline</cstring>
521 </property> 539 </property>
522 <property stdset="1"> 540 <property stdset="1">
523 <name>frameShadow</name> 541 <name>frameShadow</name>
524 <enum>Sunken</enum> 542 <enum>Sunken</enum>
525 </property> 543 </property>