author | mickeyl <mickeyl> | 2004-03-08 16:35:56 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-03-08 16:35:56 (UTC) |
commit | 82fb70f4e5d8582185da89264e1a1e3b2517f459 (patch) (side-by-side diff) | |
tree | 12dfcfee4c95d3c96809397197c2b09e6e09cea6 | |
parent | 15a9a86fbec54292a82663e1b01c93450f3fbbf8 (diff) | |
download | opie-82fb70f4e5d8582185da89264e1a1e3b2517f459.zip opie-82fb70f4e5d8582185da89264e1a1e3b2517f459.tar.gz opie-82fb70f4e5d8582185da89264e1a1e3b2517f459.tar.bz2 |
add a line where the user can insert command line arguments for the AppLnk
-rw-r--r-- | library/lnkproperties.cpp | 3 | ||||
-rw-r--r-- | library/lnkpropertiesbase_p.ui | 94 |
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 @@ -121,16 +121,19 @@ LnkProperties::LnkProperties( AppLnk* l, QWidget* parent ) d->rotate->setChecked ( true ); //don't use rotate buttons for now (see comment above) //d->rotateButtons->setButton((l->rotation().toInt()%360)/90); } else { d->rotateButtons->setEnabled(false); } + if ( !l->property( "Arguments" ).isEmpty() ) + d->arguments->setText( l->property( "Arguments" ) ); + Config cfg("Launcher"); cfg.setGroup("Preload"); QStringList apps = cfg.readListEntry("Apps",','); d->preload->setChecked( apps.contains(l->exec()) ); if ( Global::isBuiltinCommand(lnk->exec()) ) d->preload->hide(); // builtins are always fast currentLocation = 0; // apps not movable (yet) 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 @@ -6,17 +6,17 @@ <name>name</name> <cstring>Form1</cstring> </property> <property stdset="1"> <name>geometry</name> <rect> <x>0</x> <y>0</y> - <width>263</width> + <width>259</width> <height>450</height> </rect> </property> <property stdset="1"> <name>sizePolicy</name> <sizepolicy> <hsizetype>5</hsizetype> <vsizetype>5</vsizetype> @@ -72,37 +72,34 @@ <name>layoutMargin</name> </property> <property> <name>layoutSpacing</name> </property> <grid> <property stdset="1"> <name>margin</name> - <number>3</number> + <number>2</number> </property> <property stdset="1"> <name>spacing</name> - <number>3</number> + <number>4</number> </property> - <widget row="8" column="0" rowspan="1" colspan="2" > - <class>CategoryWidget</class> + <widget row="1" column="0" > + <class>QLabel</class> <property stdset="1"> <name>name</name> - <cstring>categoryEdit</cstring> + <cstring>TextLabel1_2</cstring> </property> <property stdset="1"> - <name>sizePolicy</name> - <sizepolicy> - <hsizetype>1</hsizetype> - <vsizetype>7</vsizetype> - </sizepolicy> + <name>text</name> + <string>Arguments:</string> </property> </widget> - <widget row="5" column="0" rowspan="1" colspan="2" > + <widget row="6" column="0" rowspan="1" colspan="2" > <class>QCheckBox</class> <property stdset="1"> <name>name</name> <cstring>rotate</cstring> </property> <property stdset="1"> <name>text</name> <string>Use custom rotation</string> @@ -135,17 +132,17 @@ <name>text</name> <string></string> </property> <property> <name>whatsThis</name> <string>The name of this document.</string> </property> </widget> - <widget row="1" column="1" > + <widget row="2" column="1" > <class>QComboBox</class> <property stdset="1"> <name>name</name> <cstring>locationCombo</cstring> </property> <property stdset="1"> <name>sizePolicy</name> <sizepolicy> @@ -153,17 +150,17 @@ <vsizetype>0</vsizetype> </sizepolicy> </property> <property> <name>whatsThis</name> <string>The media the document resides on.</string> </property> </widget> - <widget row="2" column="0" > + <widget row="3" column="0" > <class>QLabel</class> <property stdset="1"> <name>name</name> <cstring>typeLabel</cstring> </property> <property stdset="1"> <name>focusPolicy</name> <enum>NoFocus</enum> @@ -178,28 +175,28 @@ </property> <property> <name>layoutMargin</name> </property> <property> <name>layoutSpacing</name> </property> </widget> - <widget row="2" column="1" > + <widget row="3" column="1" > <class>QLabel</class> <property stdset="1"> <name>name</name> <cstring>type</cstring> </property> <property stdset="1"> <name>text</name> <string></string> </property> </widget> - <widget row="1" column="0" > + <widget row="2" column="0" > <class>QLabel</class> <property stdset="1"> <name>name</name> <cstring>locationLabel</cstring> </property> <property stdset="1"> <name>sizePolicy</name> <sizepolicy> @@ -232,28 +229,28 @@ <name>frameShadow</name> <enum>MShadow</enum> </property> <property stdset="1"> <name>text</name> <string>Name:</string> </property> </widget> - <widget row="3" column="1" > + <widget row="4" column="1" > <class>QLabel</class> <property stdset="1"> <name>name</name> <cstring>comment</cstring> </property> <property stdset="1"> <name>text</name> <string></string> </property> </widget> - <widget row="6" column="0" rowspan="1" colspan="2" > + <widget row="7" column="0" rowspan="1" colspan="2" > <class>QButtonGroup</class> <property stdset="1"> <name>name</name> <cstring>rotateButtons</cstring> </property> <property stdset="1"> <name>frameShape</name> <enum>NoFrame</enum> @@ -452,35 +449,17 @@ <size> <width>20</width> <height>20</height> </size> </property> </spacer> </hbox> </widget> - <widget row="7" column="0" rowspan="1" colspan="2" > - <class>QLabel</class> - <property stdset="1"> - <name>name</name> - <cstring>labelspacer</cstring> - </property> - <property stdset="1"> - <name>sizePolicy</name> - <sizepolicy> - <hsizetype>1</hsizetype> - <vsizetype>7</vsizetype> - </sizepolicy> - </property> - <property stdset="1"> - <name>text</name> - <string></string> - </property> - </widget> - <widget row="4" column="0" rowspan="1" colspan="2" > + <widget row="5" column="0" rowspan="1" colspan="2" > <class>QCheckBox</class> <property stdset="1"> <name>name</name> <cstring>preload</cstring> </property> <property stdset="1"> <name>text</name> <string>Fast load (consumes memory)</string> @@ -491,31 +470,70 @@ <property> <name>layoutSpacing</name> </property> <property> <name>whatsThis</name> <string>Preload this application so that it is available instantly.</string> </property> </widget> - <widget row="3" column="0" > + <widget row="4" column="0" > <class>QLabel</class> <property stdset="1"> <name>name</name> <cstring>commentLabel</cstring> </property> <property stdset="1"> <name>text</name> <string>Comment:</string> </property> <property stdset="1"> <name>textFormat</name> <enum>RichText</enum> </property> </widget> + <widget row="1" column="1" > + <class>QLineEdit</class> + <property stdset="1"> + <name>name</name> + <cstring>arguments</cstring> + </property> + </widget> + <widget row="9" column="0" rowspan="1" colspan="2" > + <class>CategoryWidget</class> + <property stdset="1"> + <name>name</name> + <cstring>categoryEdit</cstring> + </property> + <property stdset="1"> + <name>sizePolicy</name> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>7</vsizetype> + </sizepolicy> + </property> + </widget> + <widget row="8" column="0" rowspan="1" colspan="2" > + <class>QLabel</class> + <property stdset="1"> + <name>name</name> + <cstring>labelspacer</cstring> + </property> + <property stdset="1"> + <name>sizePolicy</name> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>7</vsizetype> + </sizepolicy> + </property> + <property stdset="1"> + <name>text</name> + <string></string> + </property> + </widget> </grid> </widget> <widget> <class>Line</class> <property stdset="1"> <name>name</name> <cstring>hline</cstring> </property> |