Logo Search packages:      
Sourcecode: kmess version File versions

void EmoticonsPage::loadSettings ( const Account account  ) 

Load the settings of the dialog

Parameters:
account Account instance which settings will be loaded

Definition at line 190 of file emoticonspage.cpp.

References Account::getEmoticonStyle(), Account::getHandle(), EmoticonTheme::loadTheme(), updateCustomEmoticonView(), and updateThemesList().

{
  accountHandle_ = account->getHandle();

#ifdef KMESSDEBUG_EMOTICONS_SETTINGS
  kDebug() << "Loading emoticon settings for account " << accountHandle_ << " - Current is " << accountHandle_ << " .";
#endif

  // Read the settings and set current emoticons
  emoticonStyle_ = account->getEmoticonStyle();

  emoticonTheme_ = new EmoticonTheme();
  emoticonTheme_->loadTheme( accountHandle_, true );

  // Update the emoticon themes widget
  updateThemesList();

  // Update the custom emoticons widget
  updateCustomEmoticonView();

#ifdef KMESSDEBUG_EMOTICONS_SETTINGS
  kDebug() << "Done!";
#endif
}


Generated by  Doxygen 1.6.0   Back to index