KIO
knewfilemenu.h
113 * Whether on not the dialog should emit `selectExistingDir` when trying to create an exist directory
166 * Requirements: since 5.97 call setWorkingDirectory first (for older releases call setPopupFiles first), and keep this KNewFileMenu instance
void setModal(bool modality)
Sets the modality of dialogs created by KNewFile.
Definition knewfilemenu.cpp:1554
void createFile()
Call this to create a new file as if the user had done it using a popupmenu.
Definition knewfilemenu.cpp:1524
void directoryCreationStarted(const QUrl &url)
Emitted once the creation job for directory url has been started.
bool isCreateDirectoryRunning()
Use this to check if namejob for new directory creation still running.
Definition knewfilemenu.cpp:1488
void setNewFileShortcutAction(QAction *action)
Use this to set a shortcut for the new file action.
Definition knewfilemenu.cpp:1644
void setSelectDirWhenAlreadyExist(bool b)
Whether on not the dialog should emit selectExistingDir when trying to create an exist directory.
Definition knewfilemenu.cpp:1264
void setWorkingDirectory(const QUrl &directory)
Set the working directory.
Definition knewfilemenu.cpp:1616
void checkUpToDate()
Checks if updating the list is necessary IMPORTANT : Call this in the slot for aboutToShow.
Definition knewfilemenu.cpp:1433
void directoryCreated(const QUrl &url)
Emitted once the directory url has been successfully created.
QStringList supportedMimeTypes() const
Returns the MIME types set in supportedMimeTypes()
Definition knewfilemenu.cpp:1611
void directoryCreationRejected(const QUrl &url)
Emitted once the creation for directory url has been rejected.
void setParentWidget(QWidget *parentWidget)
Sets a parent widget for the dialogs shown by KNewFileMenu.
Definition knewfilemenu.cpp:1559
void fileCreationRejected(const QUrl &url)
Emitted once the creation for file url has been rejected.
bool isCreateFileRunning()
Use this to check if the file creation process is still running.
Definition knewfilemenu.cpp:1544
virtual void slotResult(KJob *job)
Called when the job that copied the template has finished.
Definition knewfilemenu.cpp:1569
void setNewFolderShortcutAction(QAction *action)
Use this to set a shortcut for the "New Folder" action.
Definition knewfilemenu.cpp:1639
void selectExistingDir(const QUrl &url)
Emitted when trying to create a new directory that has the same name as an existing one,...
void setSupportedMimeTypes(const QStringList &mime)
Only show the files in a given set of MIME types.
Definition knewfilemenu.cpp:1564
void fileCreated(const QUrl &url)
Emitted once the file (or symlink) url has been successfully created.
void createDirectory()
Call this to create a new directory as if the user had done it using a popupmenu.
Definition knewfilemenu.cpp:1462
void fileCreationStarted(const QUrl &url)
Emitted once the creation job for file url has been started.
QWidget * parentWidget() const const
QAction(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:37 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:37 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.