Ticket #712: sg_DlgPreferences.cpp.patch

File sg_DlgPreferences.cpp.patch, 4.5 KB (added by Simek, 16 years ago)
  • sg_DlgPreferences.cpp

     
    6161
    6262// Useful arrays used as templates for arrays created at runtime.
    6363//
    64 int iTimeOfDayArraySize = 24;
     64int iTimeOfDayArraySize = 25;
    6565wxString astrTimeOfDayStrings[] = {
    6666    wxT("0:00"),
    6767    wxT("1:00"),
     
    212212    EVT_CHECKBOX( ID_CUSTOMIZEPREFERENCES, CPanelPreferences::OnCustomizePreferencesClick )
    213213    EVT_COMBOBOX( ID_WORKBETWEENBEGIN, CPanelPreferences::OnWorkBetweenBeginSelected )
    214214    EVT_COMBOBOX( ID_CONNECTBETWEENBEGIN, CPanelPreferences::OnConnectBetweenBeginSelected )
    215     EVT_BUTTON(ID_SIMPLE_HELP, CPanelPreferences::OnButtonHelp)
     215    EVT_BUTTON( ID_SIMPLE_HELP, CPanelPreferences::OnButtonHelp )
    216216////@end CPanelPreferences event table entries
    217217END_EVENT_TABLE()
    218218
     
    220220 * CPanelPreferences constructors
    221221 */
    222222
    223 CPanelPreferences::CPanelPreferences( )
    224 {
     223CPanelPreferences::CPanelPreferences() {
    225224}
    226225
    227 
    228 CPanelPreferences::CPanelPreferences( wxWindow* parent ) : 
    229     wxPanel(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxNO_BORDER)
     226CPanelPreferences::CPanelPreferences( wxWindow* parent )
     227    : wxPanel(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxNO_BORDER)
    230228{
    231229    Create();
    232230}
     
    236234 * CPanelPreferences creator
    237235 */
    238236
    239 bool CPanelPreferences::Create()
    240 {
     237bool CPanelPreferences::Create() {
    241238////@begin CPanelPreferences member initialisation
    242239    m_SkinSelectorCtrl = NULL;
    243240    m_CustomizePreferencesCtrl = NULL;
     
    267264 * Control creation for CPanelPreferences
    268265 */
    269266
    270 void CPanelPreferences::CreateControls()
    271 {
     267void CPanelPreferences::CreateControls() {
    272268    CSkinSimple* pSkinSimple = wxGetApp().GetSkinManager()->GetSimple();
    273269
    274270    wxASSERT(pSkinSimple);
     
    637633
    638634
    639635void CPanelPreferences::OnOK() {
    640     CMainDocument*    pDoc = wxGetApp().GetDocument();
     636    CMainDocument* pDoc = wxGetApp().GetDocument();
    641637
    642638    wxASSERT(pDoc);
    643639    wxASSERT(wxDynamicCast(pDoc, CMainDocument));
     
    726722    if (retval == ERR_NOT_FOUND) {
    727723        // Older clients don't support get_global_prefs_working_struct RPC
    728724        global_preferences_working = pDoc->state.global_prefs;
    729         retval = pDoc->rpc.get_global_prefs_override_struct(global_preferences_working, global_preferences_mask);
     725        retval = pDoc->rpc.get_global_prefs_override_struct(global_preferences_working, global_preferences_mask);
    730726    }
    731727
    732728    if (!retval && global_preferences_override_mask.are_simple_prefs_set()) {
     
    997993
    998994BEGIN_EVENT_TABLE( CDlgPreferences, wxDialog )
    999995////@begin CDlgPreferences event table entries
    1000     EVT_HELP(wxID_ANY, CDlgPreferences::OnHelp)
     996    EVT_HELP( wxID_ANY, CDlgPreferences::OnHelp )
    1001997    EVT_BUTTON( wxID_OK, CDlgPreferences::OnOK )
    1002998////@end CDlgPreferences event table entries
    1003999END_EVENT_TABLE()
     
    10061002 * CDlgPreferences constructors
    10071003 */
    10081004
    1009 CDlgPreferences::CDlgPreferences( )
    1010 {
     1005CDlgPreferences::CDlgPreferences() {
    10111006}
    10121007
    10131008
    1014 CDlgPreferences::CDlgPreferences( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
    1015 {
     1009CDlgPreferences::CDlgPreferences( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style ) {
    10161010    Create(parent, id, caption, pos, size, style);
    10171011}
    10181012
     
    10211015 * CDlgPreferences creator
    10221016 */
    10231017
    1024 bool CDlgPreferences::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
    1025 {
     1018bool CDlgPreferences::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style ) {
    10261019    wxString strCaption = caption;
    10271020    if (strCaption.IsEmpty()) {
    1028         CSkinAdvanced*         pSkinAdvanced = wxGetApp().GetSkinManager()->GetAdvanced();
     1021        CSkinAdvanced* pSkinAdvanced = wxGetApp().GetSkinManager()->GetAdvanced();
    10291022        wxASSERT(pSkinAdvanced);
    10301023        wxASSERT(wxDynamicCast(pSkinAdvanced, CSkinAdvanced));
    10311024
     
    10631056 * wxEVT_HELP event handler for ID_DLGPREFERENCES
    10641057 */
    10651058
    1066 void CDlgPreferences::OnHelp(wxHelpEvent& event) {
     1059void CDlgPreferences::OnHelp( wxHelpEvent& event ) {
    10671060    wxLogTrace(wxT("Function Start/End"), wxT("CDlgPreferences::OnHelp - Function Begin"));
    10681061
    10691062    if (IsShown()) {
     
    10971090    m_pBackgroundPanel->OnOK();
    10981091    EndModal(wxID_OK);
    10991092}
    1100 
    1101 
    1102