umbrello/umbrello
#include <overwritedialog.h>

Public Member Functions | |
OverwriteDialog (const QString &fileName, const QString &outputDirectory, bool applyToAllRemaining, QWidget *parent=0) | |
~OverwriteDialog () | |
bool | applyToAllRemaining () |
Protected Slots | |
virtual void | slotApply () |
virtual void | slotCancel () |
virtual void | slotOk () |
Detailed Description
Used by CodeGenerator::findFileName when it needs to ask the user if they want to overwrite and existing file, generate a similar name or cancel.
Gives an option to apply the choice to all remaining files.
Uses OK and Apply buttons but overrides their text and behaviour, probably better to use user defined buttons but I couldn't work out how. KDialogBase guru needed.
Definition at line 29 of file overwritedialog.h.
Constructor & Destructor Documentation
OverwriteDialog::OverwriteDialog | ( | const QString & | fileName, |
const QString & | outputDirectory, | ||
bool | applyToAllRemaining, | ||
QWidget * | parent = 0 |
||
) |
Constructor sets up the dialog, adding checkbox and label.
Definition at line 26 of file overwritedialog.cpp.
OverwriteDialog::~OverwriteDialog | ( | ) |
Destructor.
Definition at line 63 of file overwritedialog.cpp.
Member Function Documentation
bool OverwriteDialog::applyToAllRemaining | ( | ) |
- Returns
- the value of the Apply To All Remaining Files checkbox
Definition at line 95 of file overwritedialog.cpp.
|
protectedvirtualslot |
Overrides standard operation to call QDialog::done(No).
Definition at line 79 of file overwritedialog.cpp.
|
protectedvirtualslot |
Overrides standard operation to call QDialog::done(Cancel).
Definition at line 87 of file overwritedialog.cpp.
|
protectedvirtualslot |
Overrides standard operation to call QDialog::done(Yes).
This is a kludge, see note in class description.
Definition at line 71 of file overwritedialog.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.