- Timestamp:
- 27/05/07 13:16:16 (6 years ago)
- Location:
- trunk/OpenYahtzee
- Files:
-
- 5 edited
-
openyahtzee.kdevelop.pcs (modified) (previous)
-
openyahtzee.kdevses (modified) (3 diffs)
-
src/MainFrame.cpp (modified) (5 diffs)
-
src/SettingsDialog.cpp (modified) (4 diffs)
-
src/SettingsDialog.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/OpenYahtzee/openyahtzee.kdevses
r87 r88 2 2 <!DOCTYPE KDevPrjSession> 3 3 <KDevPrjSession> 4 <DocsAndViews NumberOfDocuments=" 8" >4 <DocsAndViews NumberOfDocuments="9" > 5 5 <Doc0 NumberOfViews="1" URL="file:///home/guy/workspace/openyahtzee/trunk/OpenYahtzee/src/About.cpp" > 6 6 <View0 Type="Source" /> … … 10 10 </Doc1> 11 11 <Doc2 NumberOfViews="1" URL="file:///home/guy/workspace/openyahtzee/trunk/OpenYahtzee/src/MainFrame.cpp" > 12 <View0 line="1 99" Type="Source" />12 <View0 line="124" Type="Source" /> 13 13 </Doc2> 14 14 <Doc3 NumberOfViews="1" URL="file:///home/guy/workspace/openyahtzee/trunk/OpenYahtzee/src/MainFrame.h" > … … 21 21 <View0 Type="Source" /> 22 22 </Doc5> 23 <Doc6 NumberOfViews="1" URL="file:///home/guy/workspace/openyahtzee/trunk/OpenYahtzee/src/ UtilityFunctions.cpp" >24 <View0 Type="Source" />23 <Doc6 NumberOfViews="1" URL="file:///home/guy/workspace/openyahtzee/trunk/OpenYahtzee/src/wxDynamicBitmap.cpp" > 24 <View0 line="106" Type="Source" /> 25 25 </Doc6> 26 <Doc7 NumberOfViews="1" URL="file:///home/guy/workspace/openyahtzee/trunk/OpenYahtzee/src/ wxDynamicBitmap.cpp" >27 <View0 line=" 84" Type="Source" />26 <Doc7 NumberOfViews="1" URL="file:///home/guy/workspace/openyahtzee/trunk/OpenYahtzee/src/SettingsDialog.cpp" > 27 <View0 line="40" Type="Source" /> 28 28 </Doc7> 29 <Doc8 NumberOfViews="1" URL="file:///home/guy/workspace/openyahtzee/trunk/OpenYahtzee/src/SettingsDialog.h" > 30 <View0 line="70" Type="Source" /> 31 </Doc8> 29 32 </DocsAndViews> 30 33 <pluginList> -
trunk/OpenYahtzee/src/MainFrame.cpp
r87 r88 122 122 wxPanel* panel = new wxPanel(this, ID_PANEL, 123 123 wxDefaultPosition, wxDefaultSize); 124 m_horizontallayout = 0; //TODO remove this line 124 125 125 wxBoxSizer *topSizer; 126 126 wxBoxSizer *sectionsSizer; … … 430 430 data.animate = (m_settingsdb->GetKey("animate")=="Yes")?true:false; 431 431 data.subtotal = (m_settingsdb->GetKey("calculatesubtotal")=="Yes")?true:false; 432 data.horizontal = (m_settingsdb->GetKey("horizontallayout")=="Yes")?true:false; 432 433 433 434 dialog->SetData(data); … … 458 459 m_settingsdb->SetKey("calculatesubtotal","No"); 459 460 m_calculatesubtotal = false; 461 } 462 if (data.horizontal){ 463 m_settingsdb->SetKey("horizontallayout","Yes"); 464 m_horizontallayout = true; 465 466 } else { 467 m_settingsdb->SetKey("horizontallayout","No"); 468 m_horizontallayout = false; 460 469 } 461 470 … … 1014 1023 m_animate = true; 1015 1024 } 1025 1016 1026 if (m_settingsdb->GetKey("calculatesubtotal") == "Yes") { 1017 1027 m_calculatesubtotal = true; … … 1022 1032 m_calculatesubtotal = true; 1023 1033 } 1024 1034 1035 if (m_settingsdb->GetKey("horizontallayout") == "Yes") { 1036 m_horizontallayout = true; 1037 } else if (m_settingsdb->GetKey("horizontallayout") == "No") { 1038 m_horizontallayout = false; 1039 } else { 1040 m_settingsdb->SetKey("horizontallayout", "No"); 1041 m_horizontallayout = false; 1042 } 1025 1043 if (m_settingsdb->GetKey("openyahtzeehomepage") == "") { 1026 1044 m_settingsdb->SetKey("openyahtzeehomepage", "http://openyahtzee.sourceforge.net/"); -
trunk/OpenYahtzee/src/SettingsDialog.cpp
r58 r88 39 39 animate_checkbox = new wxCheckBox(this, ID_ANIMATECHECKBOX, wxT("Animate dice")); 40 40 subtotal_checkbox = new wxCheckBox(this, wxID_ANY, wxT("Calculate sub-total score for the upper and lower sections")); 41 horizontal_checkbox = new wxCheckBox(this, wxID_ANY, wxT("Enable horizontal layout for user interface \n(requires restart of the game).")); 41 42 42 43 … … 65 66 top_sizer->Add(animate_checkbox,0,wxALL,5); 66 67 top_sizer->Add(subtotal_checkbox,0,wxALL,5); 68 top_sizer->Add(horizontal_checkbox,0,wxALL,5); 67 69 68 70 top_sizer->Add(CreateButtonSizer(wxOK|wxCANCEL), 1, wxBOTTOM, 10); … … 93 95 animate_checkbox->SetValue(data.animate); 94 96 subtotal_checkbox->SetValue(data.subtotal); 97 horizontal_checkbox->SetValue(data.horizontal); 95 98 } 96 99 … … 102 105 data.animate = animate_checkbox->GetValue(); 103 106 data.subtotal = subtotal_checkbox->GetValue(); 107 data.horizontal = horizontal_checkbox->GetValue(); 104 108 return data; 105 109 } -
trunk/OpenYahtzee/src/SettingsDialog.h
r58 r88 39 39 bool animate; 40 40 bool subtotal; 41 bool horizontal; 41 42 }; 42 43 … … 68 69 wxCheckBox* animate_checkbox; 69 70 wxCheckBox* subtotal_checkbox; 71 wxCheckBox* horizontal_checkbox; 70 72 71 73 };
Note: See TracChangeset
for help on using the changeset viewer.
