summaryrefslogtreecommitdiff
path: root/noncore/apps
authorllornkcor <llornkcor>2002-04-19 23:56:15 (UTC)
committer llornkcor <llornkcor>2002-04-19 23:56:15 (UTC)
commit221f2cbeaec8f28d39a5f95655f109a4b0fd33fc (patch) (unidiff)
tree937feadc08d0b1d2e8af9214b974355177916d6f /noncore/apps
parentd2c2dd7d80cfd5359db07952385bca575f1eeeae (diff)
downloadopie-221f2cbeaec8f28d39a5f95655f109a4b0fd33fc.zip
opie-221f2cbeaec8f28d39a5f95655f109a4b0fd33fc.tar.gz
opie-221f2cbeaec8f28d39a5f95655f109a4b0fd33fc.tar.bz2
fixed label, and forgot last log - added ability to save output to file
Diffstat (limited to 'noncore/apps') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp
index 8a1eeec..2126745 100644
--- a/noncore/apps/advancedfm/advancedfm.cpp
+++ b/noncore/apps/advancedfm/advancedfm.cpp
@@ -1172,25 +1172,25 @@ void AdvancedFm::runCommand() {
1172 } 1172 }
1173 1173
1174 InputDialog *fileDlg; 1174 InputDialog *fileDlg;
1175 fileDlg = new InputDialog(this,tr("Run Command"),TRUE, 0); 1175 fileDlg = new InputDialog(this,tr("Run Command"),TRUE, 0);
1176 fileDlg->setInputText(curFile); 1176 fileDlg->setInputText(curFile);
1177 fileDlg->exec(); 1177 fileDlg->exec();
1178 QString command; 1178 QString command;
1179 if( fileDlg->result() == 1 ) { 1179 if( fileDlg->result() == 1 ) {
1180 command = fileDlg->LineEdit1->text(); 1180 command = fileDlg->LineEdit1->text();
1181 1181
1182 int err=0; 1182 int err=0;
1183 Output *outDlg; 1183 Output *outDlg;
1184 outDlg = new Output(this, tr("Formatter Output"),FALSE); 1184 outDlg = new Output(this, tr("AdvancedFm Output"),FALSE);
1185 outDlg->showMaximized(); 1185 outDlg->showMaximized();
1186 outDlg->show(); 1186 outDlg->show();
1187 qApp->processEvents(); 1187 qApp->processEvents();
1188 FILE *fp; 1188 FILE *fp;
1189 char line[130]; 1189 char line[130];
1190 sleep(1); 1190 sleep(1);
1191// if(command.find("2>",0,TRUE) != -1) 1191// if(command.find("2>",0,TRUE) != -1)
1192 command +=" 2>&1"; 1192 command +=" 2>&1";
1193 fp = popen( (const char *) command, "r"); 1193 fp = popen( (const char *) command, "r");
1194 if ( !fp ) { 1194 if ( !fp ) {
1195 qDebug("Could not execute '" + command + "'! err=%d", fp); 1195 qDebug("Could not execute '" + command + "'! err=%d", fp);
1196 QMessageBox::warning( this, tr("AdvancedFm"), tr("command failed!"), tr("&OK") ); 1196 QMessageBox::warning( this, tr("AdvancedFm"), tr("command failed!"), tr("&OK") );
@@ -1230,25 +1230,25 @@ void AdvancedFm::runCommandStd() {
1230} 1230}
1231 1231
1232void AdvancedFm::fileStatus() { 1232void AdvancedFm::fileStatus() {
1233 QString curFile; 1233 QString curFile;
1234 if (TabWidget->currentPageIndex() == 0) { 1234 if (TabWidget->currentPageIndex() == 0) {
1235 curFile = Local_View->currentItem()->text(0); 1235 curFile = Local_View->currentItem()->text(0);
1236 } else { 1236 } else {
1237 curFile = Remote_View->currentItem()->text(0); 1237 curFile = Remote_View->currentItem()->text(0);
1238 } 1238 }
1239 QString command = " stat -l "+ curFile +" 2>&1"; 1239 QString command = " stat -l "+ curFile +" 2>&1";
1240 int err=0; 1240 int err=0;
1241 Output *outDlg; 1241 Output *outDlg;
1242 outDlg = new Output(this, tr("Formatter Output"),FALSE); 1242 outDlg = new Output(this, tr("AdvancedFm Output"),FALSE);
1243 outDlg->showMaximized(); 1243 outDlg->showMaximized();
1244 outDlg->show(); 1244 outDlg->show();
1245 qApp->processEvents(); 1245 qApp->processEvents();
1246 FILE *fp; 1246 FILE *fp;
1247 char line[130]; 1247 char line[130];
1248 sleep(1); 1248 sleep(1);
1249 fp = popen( (const char *) command, "r"); 1249 fp = popen( (const char *) command, "r");
1250 if ( !fp ) { 1250 if ( !fp ) {
1251 qDebug("Could not execute '" + command + "'! err=%d", fp); 1251 qDebug("Could not execute '" + command + "'! err=%d", fp);
1252 QMessageBox::warning( this, tr("AdvancedFm"), tr("command failed!"), tr("&OK") ); 1252 QMessageBox::warning( this, tr("AdvancedFm"), tr("command failed!"), tr("&OK") );
1253 pclose(fp); 1253 pclose(fp);
1254 return; 1254 return;