GeneralBehaviourDialog Class Reference

Dialog for adjusting the behaviour of xiaoning's Diary. More...

#include <GeneralBehaviourDialog.h>

List of all members.

Public Slots

void CloseClicked ()
 Called by Qt when user clicks the "Close"-button in dialog. Hides the dialog.
void NowPlayingPopupToggled (bool checked)
 Called by Qt when user clicks the PopUpNowPlayingcheckBox in dialog.
void StillRunningPopupToggled (bool checked)
 Called by Qt when user clicks the PopupStillRunning in dialog.
void AccesWebForPicturesToggled (bool checked)
 Called by Qt when user clicks the AllowPictureDownloadsCheckbox in dialog.
void AccesWebForUpdatesToggled (bool checked)
 Called by Qt when user clicks the AllowVersionCheckCheckbox in dialog.

Public Member Functions

 GeneralBehaviourDialog (mama_de_diary *aParent)
void HandleUiLanguageChange ()
 Reload the texts in elemnets.
void LoadInitialSettings ()
 Loads initial settings from SettingsStorage to different components of the dialog.

Public Attributes

Ui_BehaviourDialog ui
 UI of the dialog.


Detailed Description

Dialog for adjusting the behaviour of xiaoning's Diary.

Allows user to switch on/off the following


Member Function Documentation

void GeneralBehaviourDialog::AccesWebForPicturesToggled ( bool  checked  )  [slot]

Called by Qt when user clicks the AllowPictureDownloadsCheckbox in dialog.

Parameters:
checked True if checkbox is checked false if not.
Update behavioural setting by calling SettingsStorage::SetValue( checked, SettingsStorage::ACCES_WEB_TO_DOWNLOAD_PICTURES)

void GeneralBehaviourDialog::AccesWebForUpdatesToggled ( bool  checked  )  [slot]

Called by Qt when user clicks the AllowVersionCheckCheckbox in dialog.

Parameters:
checked True if checkbox is checked false if not.
Update behavioural setting by calling SettingsStorage::SetValue( checked, SettingsStorage::ACCESS_WEB_TO_CHECK_VERSION)

void GeneralBehaviourDialog::HandleUiLanguageChange (  ) 

Reload the texts in elemnets.

Called by Xiaoning's Diary when reload of UI language is required. This may be during start of the program or when user changes the UI language.

void GeneralBehaviourDialog::LoadInitialSettings (  ) 

Loads initial settings from SettingsStorage to different components of the dialog.

Called by Xiaoning's Diary when the program is started. Fetch the current settings from SettingsStorage and set the checkboxes in ui accordingly.

void GeneralBehaviourDialog::NowPlayingPopupToggled ( bool  checked  )  [slot]

Called by Qt when user clicks the PopUpNowPlayingcheckBox in dialog.

Parameters:
checked True if checkbox is checked false if not.
Update behavioural setting by calling SettingsStorage::SetValue( checked, SettingsStorage::POPUP_NOW_PLAYING_ON_SONG_CHANGE)

void GeneralBehaviourDialog::StillRunningPopupToggled ( bool  checked  )  [slot]

Called by Qt when user clicks the PopupStillRunning in dialog.

Parameters:
checked True if checkbox is checked false if not.
Update behavioural setting by calling SettingsStorage::SetValue( checked, SettingsStorage::POPUP_STILL_RUNNING_ON_HIDE_SYSTEMTRAY)


Member Data Documentation

Ui_BehaviourDialog GeneralBehaviourDialog::ui

UI of the dialog.

ui


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

Generated on Thu Mar 3 17:42:04 2011 for Xiaoning's Diary by  doxygen 1.5.9