Konsole
Konsole::EditProfileDialog Class Reference
#include <EditProfileDialog.h>

Detailed Description
A dialog which allows the user to edit a profile.After the dialog is created, it can be initialised with the settings for a profile using setProfile(). When the user makes changes to the dialog and accepts the changes, the dialog will update the profile in the SessionManager by calling the SessionManager's changeProfile() method.
Some changes made in the dialog are preview-only changes which cause the SessionManager's changeProfile() method to be called with the persistant argument set to false. These changes are then un-done when the dialog is closed.
Definition at line 64 of file EditProfileDialog.h.
Public Slots | |
virtual void | accept () |
virtual void | reject () |
Public Member Functions | |
EditProfileDialog (QWidget *parent=0) | |
void | selectProfileName () |
void | setProfile (Profile::Ptr profile) |
virtual | ~EditProfileDialog () |
Protected Member Functions | |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
Constructor & Destructor Documentation
EditProfileDialog::EditProfileDialog | ( | QWidget * | parent = 0 |
) |
Constructs a new dialog with the specified parent.
Definition at line 58 of file EditProfileDialog.cpp.
EditProfileDialog::~EditProfileDialog | ( | ) | [virtual] |
Definition at line 94 of file EditProfileDialog.cpp.
Member Function Documentation
void EditProfileDialog::accept | ( | ) | [virtual, slot] |
Definition at line 119 of file EditProfileDialog.cpp.
Definition at line 586 of file EditProfileDialog.cpp.
void EditProfileDialog::reject | ( | ) | [virtual, slot] |
Definition at line 114 of file EditProfileDialog.cpp.
void EditProfileDialog::selectProfileName | ( | ) |
Selects the text in the profile name edit area.
When the dialog is being used to create a new profile, this can be used to draw the user's attention to the profile name and make it easy for them to change it.
Definition at line 217 of file EditProfileDialog.cpp.
void EditProfileDialog::setProfile | ( | Profile::Ptr | profile | ) |
Initialises the dialog with the settings for the specified session type.
When the dialog closes, the profile will be updated in the SessionManager with the altered settings.
- Parameters:
-
key The key for the session type provided by the SessionManager instance
Definition at line 159 of file EditProfileDialog.cpp.
The documentation for this class was generated from the following files: