|
|
@ -5,11 +5,11 @@
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include "pgmargs.h"
|
|
|
|
#include "pgmargs.h"
|
|
|
|
#include <ntqlabel.h>
|
|
|
|
#include <tqlabel.h>
|
|
|
|
#include <ntqpushbutton.h>
|
|
|
|
#include <tqpushbutton.h>
|
|
|
|
#include <ntqlistview.h>
|
|
|
|
#include <tqlistview.h>
|
|
|
|
#include <ntqlistbox.h>
|
|
|
|
#include <tqlistbox.h>
|
|
|
|
#include <ntqtabwidget.h>
|
|
|
|
#include <tqtabwidget.h>
|
|
|
|
#include <tdeapplication.h>
|
|
|
|
#include <tdeapplication.h>
|
|
|
|
#include <tdefiledialog.h>
|
|
|
|
#include <tdefiledialog.h>
|
|
|
|
#include <tdelocale.h> /* i18n */
|
|
|
|
#include <tdelocale.h> /* i18n */
|
|
|
@ -216,7 +216,7 @@ void PgmArgs::browseArgFile()
|
|
|
|
TQString caption = i18n("Select a file name to insert as program argument");
|
|
|
|
TQString caption = i18n("Select a file name to insert as program argument");
|
|
|
|
|
|
|
|
|
|
|
|
// use the selection as default
|
|
|
|
// use the selection as default
|
|
|
|
TQString f = programArgs->markedText();
|
|
|
|
TQString f = programArgs->selectedText();
|
|
|
|
f = KFileDialog::getSaveFileName(f, TQString::null,
|
|
|
|
f = KFileDialog::getSaveFileName(f, TQString::null,
|
|
|
|
this, caption);
|
|
|
|
this, caption);
|
|
|
|
// don't clear the selection if no file was selected
|
|
|
|
// don't clear the selection if no file was selected
|
|
|
@ -230,7 +230,7 @@ void PgmArgs::browseArgDir()
|
|
|
|
TQString caption = i18n("Select a directory to insert as program argument");
|
|
|
|
TQString caption = i18n("Select a directory to insert as program argument");
|
|
|
|
|
|
|
|
|
|
|
|
// use the selection as default
|
|
|
|
// use the selection as default
|
|
|
|
TQString f = programArgs->markedText();
|
|
|
|
TQString f = programArgs->selectedText();
|
|
|
|
f = KFileDialog::getExistingDirectory(f, this, caption);
|
|
|
|
f = KFileDialog::getExistingDirectory(f, this, caption);
|
|
|
|
// don't clear the selection if no file was selected
|
|
|
|
// don't clear the selection if no file was selected
|
|
|
|
if (!f.isEmpty()) {
|
|
|
|
if (!f.isEmpty()) {
|
|
|
|