- Timestamp:
- 27/05/07 09:05:36 (6 years ago)
- Location:
- trunk/OpenYahtzee
- Files:
-
- 4 edited
-
openyahtzee.kdevelop.pcs (modified) (previous)
-
openyahtzee.kdevses (modified) (1 diff)
-
src/MainFrame.cpp (modified) (2 diffs)
-
src/MainFrame.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/OpenYahtzee/openyahtzee.kdevses
r85 r87 4 4 <DocsAndViews NumberOfDocuments="8" > 5 5 <Doc0 NumberOfViews="1" URL="file:///home/guy/workspace/openyahtzee/trunk/OpenYahtzee/src/About.cpp" > 6 <View0 line="106"Type="Source" />6 <View0 Type="Source" /> 7 7 </Doc0> 8 8 <Doc1 NumberOfViews="1" URL="file:///home/guy/workspace/openyahtzee/trunk/OpenYahtzee/src/openyahtzee.cpp" > 9 <View0 line="0"Type="Source" />9 <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=" 505" Type="Source" />12 <View0 line="199" Type="Source" /> 13 13 </Doc2> 14 14 <Doc3 NumberOfViews="1" URL="file:///home/guy/workspace/openyahtzee/trunk/OpenYahtzee/src/MainFrame.h" > 15 <View0 line=" 31" Type="Source" />15 <View0 line="99" Type="Source" /> 16 16 </Doc3> 17 17 <Doc4 NumberOfViews="1" URL="file:///home/guy/workspace/openyahtzee/trunk/OpenYahtzee/src/About.h" > 18 <View0 line="24"Type="Source" />18 <View0 Type="Source" /> 19 19 </Doc4> 20 20 <Doc5 NumberOfViews="1" URL="file:///home/guy/workspace/openyahtzee/trunk/OpenYahtzee/src/UtilityFunctions.h" > 21 <View0 line="30"Type="Source" />21 <View0 Type="Source" /> 22 22 </Doc5> 23 23 <Doc6 NumberOfViews="1" URL="file:///home/guy/workspace/openyahtzee/trunk/OpenYahtzee/src/UtilityFunctions.cpp" > 24 <View0 line="23"Type="Source" />24 <View0 Type="Source" /> 25 25 </Doc6> 26 26 <Doc7 NumberOfViews="1" URL="file:///home/guy/workspace/openyahtzee/trunk/OpenYahtzee/src/wxDynamicBitmap.cpp" > -
trunk/OpenYahtzee/src/MainFrame.cpp
r85 r87 122 122 wxPanel* panel = new wxPanel(this, ID_PANEL, 123 123 wxDefaultPosition, wxDefaultSize); 124 125 wxBoxSizer *topSizer = new wxBoxSizer( wxHORIZONTAL ); 126 wxBoxSizer *sectionsSizer = new wxBoxSizer( wxVERTICAL ); 127 wxBoxSizer *diceSizer = new wxBoxSizer( wxVERTICAL ); 124 m_horizontallayout = 0; //TODO remove this line 125 wxBoxSizer *topSizer; 126 wxBoxSizer *sectionsSizer; 127 wxFlexGridSizer *diceSizer; 128 if (m_horizontallayout) { 129 topSizer = new wxBoxSizer( wxVERTICAL ); 130 sectionsSizer = new wxBoxSizer( wxHORIZONTAL ); 131 diceSizer = new wxFlexGridSizer(2, 0, 0, 0); 132 } else { 133 topSizer = new wxBoxSizer( wxHORIZONTAL ); 134 sectionsSizer = new wxBoxSizer( wxVERTICAL ); 135 diceSizer = new wxFlexGridSizer(1, 0, 0);; 136 } 128 137 129 138 wxSizer *uppersection = new wxStaticBoxSizer( new wxStaticBox( panel, wxID_ANY, wxT("Upper Section") ), wxVERTICAL); … … 183 192 184 193 //BEGIN layout for the dice section of the score board 185 diceSizer->Add(new wxDynamicBitmap(panel,ID_DICE1,*bitmap_dices[0]),0,wxALL,3); 186 diceSizer->Add(new wxCheckBox(panel, ID_DICE1KEEP, wxT("Keep")),0,wxBOTTOM,10); 187 diceSizer->Add(new wxDynamicBitmap(panel,ID_DICE2,*bitmap_dices[1]),0,wxALL,3); 188 diceSizer->Add(new wxCheckBox(panel, ID_DICE2KEEP, wxT("Keep")),0,wxBOTTOM,10); 189 diceSizer->Add(new wxDynamicBitmap(panel,ID_DICE3,*bitmap_dices[2]),0,wxALL,3); 190 diceSizer->Add(new wxCheckBox(panel, ID_DICE3KEEP, wxT("Keep")),0,wxBOTTOM,10); 191 diceSizer->Add(new wxDynamicBitmap(panel,ID_DICE4,*bitmap_dices[3]),0,wxALL,3); 192 diceSizer->Add(new wxCheckBox(panel, ID_DICE4KEEP, wxT("Keep")),0,wxBOTTOM,10); 193 diceSizer->Add(new wxDynamicBitmap(panel,ID_DICE5,*bitmap_dices[4]),0,wxALL,3); 194 diceSizer->Add(new wxCheckBox(panel, ID_DICE5KEEP, wxT("Keep")),0,wxBOTTOM,10); 195 diceSizer->Add(new wxButton(panel, ID_ROLL, wxT("Roll")),0,wxALL,3); 196 /*===> END layout for the dice section of the score board *******/ 194 if (m_horizontallayout) { 195 diceSizer->Add(new wxDynamicBitmap(panel,ID_DICE1,*bitmap_dices[0]),0,wxALL,3); 196 diceSizer->Add(new wxDynamicBitmap(panel,ID_DICE2,*bitmap_dices[1]),0,wxALL,3); 197 diceSizer->Add(new wxDynamicBitmap(panel,ID_DICE3,*bitmap_dices[2]),0,wxALL,3); 198 diceSizer->Add(new wxDynamicBitmap(panel,ID_DICE4,*bitmap_dices[3]),0,wxALL,3); 199 diceSizer->Add(new wxDynamicBitmap(panel,ID_DICE5,*bitmap_dices[4]),0,wxALL,3); 200 diceSizer->Add(new wxButton(panel, ID_ROLL, wxT("Roll!"),wxDefaultPosition,wxSize(64,64)),0,wxALL,3); 201 diceSizer->Add(new wxCheckBox(panel, ID_DICE1KEEP, wxT("Keep")),0,wxBOTTOM,10); 202 diceSizer->Add(new wxCheckBox(panel, ID_DICE2KEEP, wxT("Keep")),0,wxBOTTOM,10); 203 diceSizer->Add(new wxCheckBox(panel, ID_DICE3KEEP, wxT("Keep")),0,wxBOTTOM,10); 204 diceSizer->Add(new wxCheckBox(panel, ID_DICE4KEEP, wxT("Keep")),0,wxBOTTOM,10); 205 diceSizer->Add(new wxCheckBox(panel, ID_DICE5KEEP, wxT("Keep")),0,wxBOTTOM,10); 206 } else { 207 diceSizer->Add(new wxDynamicBitmap(panel,ID_DICE1,*bitmap_dices[0]),0,wxALL,3); 208 diceSizer->Add(new wxCheckBox(panel, ID_DICE1KEEP, wxT("Keep")),0,wxBOTTOM,10); 209 diceSizer->Add(new wxDynamicBitmap(panel,ID_DICE2,*bitmap_dices[1]),0,wxALL,3); 210 diceSizer->Add(new wxCheckBox(panel, ID_DICE2KEEP, wxT("Keep")),0,wxBOTTOM,10); 211 diceSizer->Add(new wxDynamicBitmap(panel,ID_DICE3,*bitmap_dices[2]),0,wxALL,3); 212 diceSizer->Add(new wxCheckBox(panel, ID_DICE3KEEP, wxT("Keep")),0,wxBOTTOM,10); 213 diceSizer->Add(new wxDynamicBitmap(panel,ID_DICE4,*bitmap_dices[3]),0,wxALL,3); 214 diceSizer->Add(new wxCheckBox(panel, ID_DICE4KEEP, wxT("Keep")),0,wxBOTTOM,10); 215 diceSizer->Add(new wxDynamicBitmap(panel,ID_DICE5,*bitmap_dices[4]),0,wxALL,3); 216 diceSizer->Add(new wxCheckBox(panel, ID_DICE5KEEP, wxT("Keep")),0,wxBOTTOM,10); 217 diceSizer->Add(new wxButton(panel, ID_ROLL, wxT("Roll!"),wxDefaultPosition,wxSize(64,64)),0,wxALL,3); 218 } 219 //END layout for the dice section of the score board *******/ 197 220 198 221 -
trunk/OpenYahtzee/src/MainFrame.h
r85 r87 98 98 bool m_calculatesubtotal; //sets whether to calculate the subtotal after every score or not 99 99 100 bool m_horizontallayout; 101 100 102 }; 101 103 #endif
Note: See TracChangeset
for help on using the changeset viewer.
