umbrello 2.34.70-5524f40e1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
Public Member Functions | Private Attributes | List of all members
OverwriteDialog Class Reference

#include <overwritedialog.h>

Inheritance diagram for OverwriteDialog:
Collaboration diagram for OverwriteDialog:

Public Member Functions

 OverwriteDialog (const QString &fileName, const QString &outputDirectory, bool applyToAllRemaining, QWidget *parent=0)
 
 ~OverwriteDialog ()
 
bool applyToAllRemaining ()
 
- Public Member Functions inherited from SinglePageDialogBase
 SinglePageDialogBase (QWidget *parent, bool withApplyButton=false, bool withSearchButton=false)
 
virtual ~SinglePageDialogBase ()
 
virtual bool apply ()
 

Private Attributes

QCheckBox * m_applyToAllRemaining
 

Additional Inherited Members

- Protected Slots inherited from SinglePageDialogBase
void slotApply ()
 
void slotOk ()
 
- Protected Member Functions inherited from SinglePageDialogBase
virtual bool validate ()
 

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.

Author
Jonathan Riddell jr@jr.nosp@m.idde.nosp@m.ll.or.nosp@m.g Bugs and comments to umbre.nosp@m.llo-.nosp@m.devel.nosp@m.@kde.nosp@m..org or https://bugs.kde.org

Constructor & Destructor Documentation

◆ OverwriteDialog()

OverwriteDialog::OverwriteDialog ( const QString &  fileName,
const QString &  outputDirectory,
bool  applyToAllRemaining,
QWidget *  parent = 0 
)

Constructor sets up the dialog, adding checkbox and label.

Here is the call graph for this function:

◆ ~OverwriteDialog()

OverwriteDialog::~OverwriteDialog ( )

Destructor.

Member Function Documentation

◆ applyToAllRemaining()

bool OverwriteDialog::applyToAllRemaining ( )
Returns
the value of the Apply To All Remaining Files checkbox

Member Data Documentation

◆ m_applyToAllRemaining

QCheckBox* OverwriteDialog::m_applyToAllRemaining
private

The documentation for this class was generated from the following files: