summaryrefslogtreecommitdiff
path: root/library/lnkproperties.cpp
authormickeyl <mickeyl>2004-03-08 16:35:56 (UTC)
committer mickeyl <mickeyl>2004-03-08 16:35:56 (UTC)
commit82fb70f4e5d8582185da89264e1a1e3b2517f459 (patch) (unidiff)
tree12dfcfee4c95d3c96809397197c2b09e6e09cea6 /library/lnkproperties.cpp
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/lnkproperties.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--library/lnkproperties.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/lnkproperties.cpp b/library/lnkproperties.cpp
index 0661423..865f590 100644
--- a/library/lnkproperties.cpp
+++ b/library/lnkproperties.cpp
@@ -105,48 +105,51 @@ LnkProperties::LnkProperties( AppLnk* l, QWidget* parent )
105 d->unlink->hide(); 105 d->unlink->hide();
106 d->duplicate->hide(); 106 d->duplicate->hide();
107 d->beam->hide(); 107 d->beam->hide();
108 d->hline->hide(); 108 d->hline->hide();
109 d->locationLabel->hide(); 109 d->locationLabel->hide();
110 d->locationCombo->hide(); 110 d->locationCombo->hide();
111 111
112 // Can't edit categories, since the app .desktop files are global, 112 // Can't edit categories, since the app .desktop files are global,
113 // possibly read-only. 113 // possibly read-only.
114 d->categoryEdit->hide(); 114 d->categoryEdit->hide();
115 115
116 d->docname->setReadOnly( TRUE ); 116 d->docname->setReadOnly( TRUE );
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()
141{ 144{
142} 145}
143 146
144void LnkProperties::unlinkLnk() 147void LnkProperties::unlinkLnk()
145{ 148{
146 if ( QPEMessageBox::confirmDelete( this, tr("Delete"), lnk->name() ) ) { 149 if ( QPEMessageBox::confirmDelete( this, tr("Delete"), lnk->name() ) ) {
147 lnk->removeFiles(); 150 lnk->removeFiles();
148 if ( QFile::exists(lnk->file()) ) { 151 if ( QFile::exists(lnk->file()) ) {
149 QMessageBox::warning( this, tr("Delete"), tr("File deletion failed.") ); 152 QMessageBox::warning( this, tr("Delete"), tr("File deletion failed.") );
150 } else { 153 } else {
151 reject(); 154 reject();
152 } 155 }