예제 #1
0
//*******************************************************************
// save_state                                                PRIVATE
//*******************************************************************
void QBtConfigApps::save_state()
{
   QBtSettings stt;
   stt.save( QBtConfig::TERMINAL_GROUP + QBtConfig::USE_DEFAULT_KEY, console_default_->isChecked() );
   stt.save( QBtConfig::TERMINAL_GROUP + QBtConfig::COMMAND_KEY    , console_command_->text().trimmed() );
   stt.save( QBtConfig::DIFF_GROUP     + QBtConfig::USE_DEFAULT_KEY, diff_default_->isChecked() );
   stt.save( QBtConfig::DIFF_GROUP     + QBtConfig::COMMAND_KEY    , diff_command_->text().trimmed() );
}
예제 #2
0
//*******************************************************************
// save_data                                                  PUBLIC
//*******************************************************************
void QBtConfig::save_data() const
{
   QBtSettings stt;

   // filter state
   stt.save( MAIN_WINDOW_GROUP + FILTER_KEY, filter_ );
   // button mode
   stt.save( MAIN_WINDOW_GROUP + BTN_MODE_KEY, btn_mode_ );
   // button font
   stt.save( MAIN_WINDOW_GROUP + BTN_FONT_KEY, btn_font_.toString() );

   // font
   stt.save( VIEW_GROUP + FONT_KEY, font_.toString() );
   // background color
   stt.save( VIEW_GROUP + BKG_F_NC_NS_COLOR_KEY, bkg_f_nc_ns_color_.name() );
   // text color
   stt.save( VIEW_GROUP + TXT_F_NC_NS_COLOR_KEY, txt_f_nc_ns_color_.name() );
   // bkg nf nc ns
   stt.save( VIEW_GROUP + BKG_NF_NC_NS_COLOR_KEY, bkg_nf_nc_ns_color_.name() );
   // txt nf nc ns
   stt.save( VIEW_GROUP + TXT_NF_NC_NS_COLOR_KEY, txt_nf_nc_ns_color_.name() );
   // bkg f nc s
   stt.save( VIEW_GROUP + BKG_F_NC_S_COLOR_KEY, bkg_f_nc_s_color_.name() );
   // txt f nc s
   stt.save( VIEW_GROUP + TXT_F_NC_S_COLOR_KEY, txt_f_nc_s_color_.name() );
   // bkg nf nc s
   stt.save( VIEW_GROUP + BKG_NF_NC_S_COLOR_KEY, bkg_nf_nc_s_color_.name() );
   // txt nf nc s
   stt.save( VIEW_GROUP + TXT_NF_NC_S_COLOR_KEY, txt_nf_nc_s_color_.name() );
   // bkg f c s
   stt.save( VIEW_GROUP + BKG_F_C_S_COLOR_KEY, bkg_f_c_s_color_.name() );
   // txt f c s
   stt.save( VIEW_GROUP + TXT_F_C_S_COLOR_KEY, txt_f_c_s_color_.name() );
   // bkg nf c s
   stt.save( VIEW_GROUP + BKG_NF_C_S_COLOR_KEY, bkg_nf_c_s_color_.name() );
   // txt nf c s
   stt.save( VIEW_GROUP + TXT_NF_C_S_COLOR_KEY, txt_nf_c_s_color_.name() );
   // bkg f c ns
   stt.save( VIEW_GROUP + BKG_F_C_NS_COLOR_KEY, bkg_f_c_ns_color_.name() );
   // txt f c ns
   stt.save( VIEW_GROUP + TXT_F_C_NS_COLOR_KEY, txt_f_c_ns_color_.name() );
   // bkg nf c ns
   stt.save( VIEW_GROUP + BKG_NF_C_NS_COLOR_KEY, bkg_nf_c_ns_color_.name() );
   // txt nf c ns
   stt.save( VIEW_GROUP + TXT_NF_C_NS_COLOR_KEY, txt_nf_c_ns_color_ );
}
예제 #3
0
파일: QBtWorkspace.cpp 프로젝트: sclown/bsc
//*******************************************************************
// save                                                      PRIVATE
//*******************************************************************
void QBtWorkspace::save()
{
    QBtSettings stt;
    stt.save( QBtConfig::WORKSPACE_GROUP + QBtConfig::SPLITTER_KEY, splitter_->saveState() );
}