umbrello 25.04.1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
#include <overwritedialog.h>
Public Member Functions | |
OverwriteDialog (const QString &fileName, const QString &outputDirectory, bool applyToAllRemaining, QWidget *parent=nullptr) | |
~OverwriteDialog () | |
bool | applyToAllRemaining () |
![]() | |
SinglePageDialogBase (QWidget *parent, bool withApplyButton=false, bool withSearchButton=false) | |
virtual | ~SinglePageDialogBase () |
virtual bool | apply () |
void | setCaption (const QString &caption) |
QWidget * | mainWidget () |
void | setMainWidget (QWidget *widget) |
void | setButtonText (ButtonCode code, const QString &text) |
Static Public Attributes | |
static const int | No = SinglePageDialogBase::Apply |
Private Attributes | |
QCheckBox * | m_applyToAllRemaining |
Additional Inherited Members | |
![]() | |
enum | ButtonCode { Cancel = 0 , Ok = 1 , Apply = 2 } |
![]() | |
void | slotApply () |
void | slotOk () |
void | slotCancel () |
void | slotClicked (QAbstractButton *) |
![]() | |
void | enableButtonOk (bool enable) |
virtual bool | validate () |
![]() | |
QDialogButtonBox * | m_buttonBox |
QWidget * | m_mainWidget |
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.
OverwriteDialog::OverwriteDialog | ( | const QString & | fileName, |
const QString & | outputDirectory, | ||
bool | applyToAllRemaining, | ||
QWidget * | parent = nullptr |
||
) |
Constructor sets up the dialog, adding checkbox and label.
OverwriteDialog::~OverwriteDialog | ( | ) |
Destructor.
bool OverwriteDialog::applyToAllRemaining | ( | ) |
|
private |
|
static |