KVIrc 5.2.6
Developer APIs
KviDefaultScriptDialog Class Reference

A dialog which allow the user to choose which elements to restore. More...

#include <KviDefaultScript.h>

+ Inheritance diagram for KviDefaultScriptDialog:

Public Member Functions

 KviDefaultScriptDialog ()
 Constructs the default script dialog.
 
 ~KviDefaultScriptDialog ()
 Destroys the default script dialog.
 

Protected Slots

void accept () override
 Accepts the dialog.
 
void advanced ()
 Open/close the advanced widget.
 
void reject () override
 Rejects the dialog.
 
void toggleAll (bool)
 Enables or disables all checkboxes.
 

Protected Attributes

QCheckBox * m_pAction
 
QCheckBox * m_pAddon
 
QGroupBox * m_pAdvanced
 
QPushButton * m_pAdvancedButton
 
QCheckBox * m_pAlias
 
QCheckBox * m_pAll
 
QCheckBox * m_pClass
 
QCheckBox * m_pData
 
QCheckBox * m_pEvent
 
QCheckBox * m_pPopup
 
QCheckBox * m_pRaw
 
QCheckBox * m_pToolbar
 

Friends

class KviDefaultScriptManager
 

Detailed Description

A dialog which allow the user to choose which elements to restore.

Constructor & Destructor Documentation

◆ KviDefaultScriptDialog()

◆ ~KviDefaultScriptDialog()

KviDefaultScriptDialog::~KviDefaultScriptDialog ( )
default

Destroys the default script dialog.

Member Function Documentation

◆ accept

void KviDefaultScriptDialog::accept ( )
overrideprotectedslot

Accepts the dialog.

Called when the user clicks on 'Ok'

Returns
void

Referenced by KviDefaultScriptDialog().

◆ advanced

void KviDefaultScriptDialog::advanced ( )
protectedslot

Open/close the advanced widget.

Called when the user clicks on 'Advanced...'

Returns
void

References m_pAdvanced, and m_pAdvancedButton.

Referenced by KviDefaultScriptDialog().

◆ reject

void KviDefaultScriptDialog::reject ( )
overrideprotectedslot

Rejects the dialog.

Called when the user clicks on 'Cancel' or closes the dialog using the window decoration or pressing ESC

Returns
void

Referenced by KviDefaultScriptDialog().

◆ toggleAll

void KviDefaultScriptDialog::toggleAll ( bool )
protectedslot

Enables or disables all checkboxes.

Called when the user (de)selects the 'All' one

Returns
void

References m_pAction, m_pAddon, m_pAlias, m_pClass, m_pEvent, m_pPopup, m_pRaw, and m_pToolbar.

Referenced by KviDefaultScriptDialog().

Friends And Related Symbol Documentation

◆ KviDefaultScriptManager

friend class KviDefaultScriptManager
friend

Member Data Documentation

◆ m_pAction

QCheckBox* KviDefaultScriptDialog::m_pAction
protected

◆ m_pAddon

QCheckBox* KviDefaultScriptDialog::m_pAddon
protected

◆ m_pAdvanced

QGroupBox* KviDefaultScriptDialog::m_pAdvanced
protected

Referenced by advanced(), and KviDefaultScriptDialog().

◆ m_pAdvancedButton

QPushButton* KviDefaultScriptDialog::m_pAdvancedButton
protected

Referenced by advanced(), and KviDefaultScriptDialog().

◆ m_pAlias

QCheckBox* KviDefaultScriptDialog::m_pAlias
protected

◆ m_pAll

QCheckBox* KviDefaultScriptDialog::m_pAll
protected

◆ m_pClass

QCheckBox* KviDefaultScriptDialog::m_pClass
protected

◆ m_pData

QCheckBox* KviDefaultScriptDialog::m_pData
protected

◆ m_pEvent

QCheckBox* KviDefaultScriptDialog::m_pEvent
protected

◆ m_pPopup

QCheckBox* KviDefaultScriptDialog::m_pPopup
protected

◆ m_pRaw

QCheckBox* KviDefaultScriptDialog::m_pRaw
protected

◆ m_pToolbar

QCheckBox* KviDefaultScriptDialog::m_pToolbar
protected

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