• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

umbrello/umbrello

Public Member Functions | Protected Slots | List of all members
OverwriteDialog Class Reference

#include <overwritedialog.h>

Inheritance diagram for OverwriteDialog:
Inheritance graph
[legend]

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.

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 http://bugs.kde.org

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.

void OverwriteDialog::slotApply ( )
protectedvirtualslot

Overrides standard operation to call QDialog::done(No).

Definition at line 79 of file overwritedialog.cpp.

void OverwriteDialog::slotCancel ( )
protectedvirtualslot

Overrides standard operation to call QDialog::done(Cancel).

Definition at line 87 of file overwritedialog.cpp.

void OverwriteDialog::slotOk ( )
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:
  • overwritedialog.h
  • overwritedialog.cpp
This file is part of the KDE documentation.
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.

umbrello/umbrello

Skip menu "umbrello/umbrello"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal