kencodingfiledialog.cpp
38 KEncodingFileDialog::KEncodingFileDialog(const TQString& startDir, const TQString& encoding , const TQString& filter,
39 const TQString& caption, KFileDialog::OperationMode type, TQWidget *parent, const char* name, bool modal)
48 int index = tb->insertCombo(TQStringList(), -1 /*id*/, false /*writable*/, 0 /*signal*/, 0 /*receiver*/, 0 /*slot*/ );
95 KEncodingFileDialog::Result KEncodingFileDialog::getOpenFileNameAndEncoding(const TQString& encoding,
100 KEncodingFileDialog dlg(startDir, encoding,filter,caption.isNull() ? i18n("Open") : caption,Opening,parent,
113 KEncodingFileDialog::Result KEncodingFileDialog::getOpenFileNamesAndEncoding(const TQString& encoding,
119 KEncodingFileDialog dlg(startDir, encoding,filter,caption.isNull() ? i18n("Open") : caption,Opening,parent,
131 KEncodingFileDialog::Result KEncodingFileDialog::getOpenURLAndEncoding(const TQString& encoding, const TQString& startDir,
134 KEncodingFileDialog dlg(startDir, encoding,filter,caption.isNull() ? i18n("Open") : caption,Opening,parent,
147 KEncodingFileDialog::Result KEncodingFileDialog::getOpenURLsAndEncoding(const TQString& encoding, const TQString& startDir,
152 KEncodingFileDialog dlg(startDir, encoding,filter,caption.isNull() ? i18n("Open") : caption,Opening,parent,
166 KEncodingFileDialog::Result KEncodingFileDialog::getSaveFileNameAndEncoding(const TQString& encoding,
173 KEncodingFileDialog dlg(specialDir?dir:TQString::null, encoding,filter,caption.isNull() ? i18n("Save As") : caption,
191 KEncodingFileDialog::Result KEncodingFileDialog::getSaveURLAndEncoding(const TQString& encoding,
196 KEncodingFileDialog dlg(specialDir?dir:TQString::null, encoding,filter,caption.isNull() ? i18n("Save As") :
Provides a user (and developer) friendly way to select files with support for choosing encoding.
Definition: kencodingfiledialog.h:39
KEncodingFileDialog(const TQString &startDir=TQString::null, const TQString &encoding=TQString::null, const TQString &filter=TQString::null, const TQString &caption=TQString::null, KFileDialog::OperationMode type=KFileDialog::Opening, TQWidget *parent=0, const char *name="", bool modal=true)
Constructs a file dialog for text files with encoding selection possibility.
Definition: kencodingfiledialog.cpp:38
TQString selectedEncoding() const
Definition: kencodingfiledialog.cpp:86
static Result getSaveFileNameAndEncoding(const TQString &encoding=TQString::null, const TQString &startDir=TQString::null, const TQString &filter=TQString::null, TQWidget *parent=0, const TQString &caption=TQString::null)
Creates a modal file dialog and returns the selected encoding and filename or an empty string if none...
Definition: kencodingfiledialog.cpp:166
static Result getOpenURLAndEncoding(const TQString &encoding=TQString::null, const TQString &startDir=TQString::null, const TQString &filter=TQString::null, TQWidget *parent=0, const TQString &caption=TQString::null)
Creates a modal file dialog and returns the selected encoding and URL or an empty string if none was ...
Definition: kencodingfiledialog.cpp:131
static Result getOpenURLsAndEncoding(const TQString &encoding=TQString::null, const TQString &startDir=TQString::null, const TQString &filter=TQString::null, TQWidget *parent=0, const TQString &caption=TQString::null)
Creates a modal file dialog and returns the selected encoding URLs or an empty list if none was chose...
Definition: kencodingfiledialog.cpp:147
static Result getOpenFileNameAndEncoding(const TQString &encoding=TQString::null, const TQString &startDir=TQString::null, const TQString &filter=TQString::null, TQWidget *parent=0, const TQString &caption=TQString::null)
Creates a modal file dialog and return the selected filename or an empty string if none was chosen ad...
Definition: kencodingfiledialog.cpp:95
static Result getSaveURLAndEncoding(const TQString &encoding=TQString::null, const TQString &startDir=TQString::null, const TQString &filter=TQString::null, TQWidget *parent=0, const TQString &caption=TQString::null)
Creates a modal file dialog and returns the selected encoding and filename or an empty string if none...
Definition: kencodingfiledialog.cpp:191
static Result getOpenFileNamesAndEncoding(const TQString &encoding=TQString::null, const TQString &startDir=TQString::null, const TQString &filter=TQString::null, TQWidget *parent=0, const TQString &caption=TQString::null)
Creates a modal file dialog and returns the selected encoding and the selected filenames or an empty ...
Definition: kencodingfiledialog.cpp:113
Provides a user (and developer) friendly way to select files and directories.
Definition: tdefiledialog.h:77
void setOperationMode(KFileDialog::OperationMode)
Sets the operational mode of the filedialog to Saving, Opening or Other.
Definition: tdefiledialog.cpp:1834
TQString selectedFile() const
Returns the full path of the selected file in the local filesystem.
Definition: tdefiledialog.cpp:1548
void setMode(KFile::Mode m)
Convenient overload of the other setMode(unsigned int) method.
Definition: tdefiledialog.cpp:1676
void setSelection(const TQString &name)
Sets the file name to preselect to name.
Definition: tdefiledialog.cpp:1220
TQStringList selectedFiles() const
Returns a list of all selected local files.
Definition: tdefiledialog.cpp:1564
static void add(const KURL &url)
Add a new item to the Recent Document menu.
Definition: tderecentdocument.cpp:75