Public Member Functions | Protected Member Functions | List of all members
pqResetDefaultSettingsReaction Class Reference

reaction to restore user settings to default. More...

#include <pqResetDefaultSettingsReaction.h>

Inheritance diagram for pqResetDefaultSettingsReaction:
Inheritance graph
[legend]
Collaboration diagram for pqResetDefaultSettingsReaction:
Collaboration graph
[legend]

Public Member Functions

 pqResetDefaultSettingsReaction (QAction *parent)
 
 ~pqResetDefaultSettingsReaction () override
 
virtual void resetSettingsToDefault ()
 Reset to default settings. More...
 
- Public Member Functions inherited from pqReaction
 pqReaction (QAction *parent, Qt::ConnectionType type=Qt::AutoConnection)
 Constructor. More...
 
 ~pqReaction () override
 
QAction * parentAction () const
 Provides access to the parent action. More...
 

Protected Member Functions

void onTriggered () override
 Called when the action is triggered. More...
 
virtual void clearSettings ()
 
virtual QStringList backupSettings ()
 

Additional Inherited Members

- Protected Slots inherited from pqReaction
virtual void updateEnableState ()
 
virtual void updateMasterEnableState (bool)
 
- Protected Attributes inherited from pqReaction
bool IsMaster
 

Detailed Description

reaction to restore user settings to default.

pqResetDefaultSettingsReaction can restore user settings to default. It pops up a prompt indicating whether the user wants to generate backups for settings being restored. If so, backups are generated.

Definition at line 20 of file pqResetDefaultSettingsReaction.h.

Constructor & Destructor Documentation

◆ pqResetDefaultSettingsReaction()

pqResetDefaultSettingsReaction::pqResetDefaultSettingsReaction ( QAction *  parent)

◆ ~pqResetDefaultSettingsReaction()

pqResetDefaultSettingsReaction::~pqResetDefaultSettingsReaction ( )
override

Member Function Documentation

◆ resetSettingsToDefault()

virtual void pqResetDefaultSettingsReaction::resetSettingsToDefault ( )
virtual

Reset to default settings.

Application must be restarted for the changes to take effect.

◆ onTriggered()

void pqResetDefaultSettingsReaction::onTriggered ( )
inlineoverrideprotectedvirtual

Called when the action is triggered.

Reimplemented from pqReaction.

Definition at line 39 of file pqResetDefaultSettingsReaction.h.

◆ clearSettings()

virtual void pqResetDefaultSettingsReaction::clearSettings ( )
protectedvirtual

◆ backupSettings()

virtual QStringList pqResetDefaultSettingsReaction::backupSettings ( )
protectedvirtual

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