summaryrefslogtreecommitdiffstats
path: root/src/kvirc/ui/kvi_filedialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvirc/ui/kvi_filedialog.cpp')
-rw-r--r--src/kvirc/ui/kvi_filedialog.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/kvirc/ui/kvi_filedialog.cpp b/src/kvirc/ui/kvi_filedialog.cpp
index 2dfba50..2660a52 100644
--- a/src/kvirc/ui/kvi_filedialog.cpp
+++ b/src/kvirc/ui/kvi_filedialog.cpp
@@ -37,8 +37,8 @@ extern KviMediaManager * g_pMediaManager;
KviFileDialog::KviFileDialog(const TQString &dirName, const TQString &filter,
- TQWidget *tqparent, const char *name, bool modal)
-: KviTalFileDialog(dirName,filter,tqparent,name,modal)
+ TQWidget *parent, const char *name, bool modal)
+: KviTalFileDialog(dirName,filter,parent,name,modal)
{
setIcon(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_FOLDER)));
@@ -70,17 +70,17 @@ void KviFileDialog::goHome()
-bool KviFileDialog::askForOpenFileName(TQString &buffer,const TQString &caption,const TQString &initial,const TQString &filter,bool showHidden, bool showNative,TQWidget* tqparent)
+bool KviFileDialog::askForOpenFileName(TQString &buffer,const TQString &caption,const TQString &initial,const TQString &filter,bool showHidden, bool showNative,TQWidget* parent)
{
#ifdef COMPILE_ON_WINDOWS
if(showNative)
{
- buffer=TQFileDialog::getOpenFileName(initial,filter,tqparent,"open_file_name_dialog",caption);
+ buffer=TQFileDialog::getOpenFileName(initial,filter,parent,"open_file_name_dialog",caption);
KviFileUtils::adjustFilePath(buffer);
return !buffer.isEmpty();
}
#endif
- KviFileDialog * d = new KviFileDialog(initial,filter,tqparent,"open_file_name_dialog",true);
+ KviFileDialog * d = new KviFileDialog(initial,filter,parent,"open_file_name_dialog",true);
d->setCaption(caption);
d->setMode(TQFileDialog::ExistingFile);
//d->setShowHiddenFiles(showHidden);
@@ -96,14 +96,14 @@ bool KviFileDialog::askForOpenFileName(TQString &buffer,const TQString &caption,
}
-bool KviFileDialog::askForSaveFileName(TQString &buffer,const TQString & caption,const TQString &initial,const TQString &filter,bool showHidden,bool bConfirmOverwrite,bool showNative,TQWidget* tqparent)
+bool KviFileDialog::askForSaveFileName(TQString &buffer,const TQString & caption,const TQString &initial,const TQString &filter,bool showHidden,bool bConfirmOverwrite,bool showNative,TQWidget* parent)
{
#ifdef COMPILE_ON_WINDOWS
if (showNative)
{
while (1)
{
- buffer=TQFileDialog::getSaveFileName(initial,filter,tqparent,"save_file_name_dialog",caption);
+ buffer=TQFileDialog::getSaveFileName(initial,filter,parent,"save_file_name_dialog",caption);
KviFileUtils::adjustFilePath(buffer);
//return !buffer.isEmpty();
if(buffer.isEmpty()) return false;
@@ -112,7 +112,7 @@ bool KviFileDialog::askForSaveFileName(TQString &buffer,const TQString & caption
if(!KviFileUtils::fileExists(buffer)) return true;
TQString tmp;
KviTQString::sprintf(tmp,__tr2qs("The file %s already exists.<br>Do you wish to overwrite it?"),buffer.utf8().data());
- switch(TQMessageBox::information(tqparent,__tr2qs("File Exists - KVIrc"),tmp,TQMessageBox::Yes,TQMessageBox::No | TQMessageBox::Default,TQMessageBox::Cancel | TQMessageBox::Escape))
+ switch(TQMessageBox::information(parent,__tr2qs("File Exists - KVIrc"),tmp,TQMessageBox::Yes,TQMessageBox::No | TQMessageBox::Default,TQMessageBox::Cancel | TQMessageBox::Escape))
{
case TQMessageBox::Cancel: return false; break;
case TQMessageBox::Yes: return true; break;
@@ -125,7 +125,7 @@ bool KviFileDialog::askForSaveFileName(TQString &buffer,const TQString & caption
#endif
- KviFileDialog * d = new KviFileDialog(initial,filter,tqparent,"save_file_name_dialog",true);
+ KviFileDialog * d = new KviFileDialog(initial,filter,parent,"save_file_name_dialog",true);
d->setCaption(caption);
d->setMode(TQFileDialog::AnyFile);
//d->setShowHiddenFiles(showHidden);
@@ -167,24 +167,24 @@ bool KviFileDialog::askForSaveFileName(TQString &buffer,const TQString & caption
}
-bool KviFileDialog::askForDirectoryName(TQString &buffer,const TQString & caption,const TQString & initial,const char * filter,bool showHidden,bool showNative,TQWidget* tqparent)
+bool KviFileDialog::askForDirectoryName(TQString &buffer,const TQString & caption,const TQString & initial,const char * filter,bool showHidden,bool showNative,TQWidget* parent)
{
#ifdef COMPILE_ON_WINDOWS
if(showNative)
{
- buffer = TQFileDialog::getExistingDirectory(initial,tqparent,"open_file_name_dialog",caption);
+ buffer = TQFileDialog::getExistingDirectory(initial,parent,"open_file_name_dialog",caption);
return !buffer.isEmpty();
}
#else
#ifdef COMPILE_KDE_SUPPORT
// the KDE based dir selection dialog is now quite nice
- buffer = KFileDialog::getExistingDirectory(initial,tqparent,caption);
+ buffer = KFileDialog::getExistingDirectory(initial,parent,caption);
return !buffer.isEmpty();
#endif
#endif
KviFileDialog * d = new KviFileDialog(initial,
- filter,tqparent,"directory_name_dialog",true);
+ filter,parent,"directory_name_dialog",true);
d->setCaption(caption);
d->setMode(TQFileDialog::Directory);
//d->setShowHiddenFiles(showHidden);
@@ -201,17 +201,17 @@ bool KviFileDialog::askForDirectoryName(TQString &buffer,const TQString & captio
}
-bool KviFileDialog::askForOpenFileNames(TQStringList &buffer,const TQString & caption,const TQString & initial,const char * filter,bool showHidden,bool showNative,TQWidget* tqparent)
+bool KviFileDialog::askForOpenFileNames(TQStringList &buffer,const TQString & caption,const TQString & initial,const char * filter,bool showHidden,bool showNative,TQWidget* parent)
{
#ifdef COMPILE_ON_WINDOWS
if (showNative)
{
- buffer=TQFileDialog::getOpenFileNames(filter,initial,tqparent,"open_file_name_dialog",caption);
+ buffer=TQFileDialog::getOpenFileNames(filter,initial,parent,"open_file_name_dialog",caption);
return (buffer.count()>0);
}
#endif
- KviFileDialog * d = new KviFileDialog(initial,filter ? TQString(filter) : TQString(),tqparent,"open_file_names_dialog",true);
+ KviFileDialog * d = new KviFileDialog(initial,filter ? TQString(filter) : TQString(),parent,"open_file_names_dialog",true);
d->setCaption(caption);
d->setMode(TQFileDialog::ExistingFiles);
//d->setShowHiddenFiles(showHidden);