@@ -35,6 +35,7 @@ enum LayoutEvent
35
35
ARRANGE_AUTO,
36
36
ARRANGE_VERT,
37
37
ARRANGE_HORI,
38
+ ARRANGE_SING,
38
39
SIZE_EVEN,
39
40
SIZE_TOP,
40
41
SIZE_BOT,
@@ -59,6 +60,7 @@ EVT_RADIOBUTTON(ROTATE_CCW, LayoutDialog::rotateCcw)
59
60
EVT_RADIOBUTTON(ARRANGE_AUTO, LayoutDialog::arrangeAuto)
60
61
EVT_RADIOBUTTON(ARRANGE_VERT, LayoutDialog::arrangeVert)
61
62
EVT_RADIOBUTTON(ARRANGE_HORI, LayoutDialog::arrangeHori)
63
+ EVT_RADIOBUTTON(ARRANGE_SING, LayoutDialog::arrangeSing)
62
64
EVT_RADIOBUTTON(SIZE_EVEN, LayoutDialog::sizeEven)
63
65
EVT_RADIOBUTTON(SIZE_TOP, LayoutDialog::sizeTop)
64
66
EVT_RADIOBUTTON(SIZE_BOT, LayoutDialog::sizeBot)
@@ -106,21 +108,22 @@ LayoutDialog::LayoutDialog(NooApp *app): wxDialog(nullptr, wxID_ANY, "Screen Lay
106
108
wxRadioButton *rotateBtns[3 ];
107
109
wxBoxSizer *rotateSizer = new wxBoxSizer (wxHORIZONTAL);
108
110
rotateSizer->Add (new wxStaticText (this , wxID_ANY, " Rotation:" , wxDefaultPosition,
109
- wxSize (wxDefaultSize.GetWidth (), size)), 1 , wxALIGN_CENTRE | wxRIGHT, size / 8 );
111
+ wxSize (wxDefaultSize.GetWidth (), size)), 0 , wxALIGN_CENTRE | wxRIGHT, size / 8 );
110
112
rotateSizer->Add (rotateBtns[0 ] = new wxRadioButton (this , ROTATE_NONE, " None" ,
111
113
wxDefaultPosition, wxDefaultSize, wxRB_GROUP), 0 , wxLEFT, size / 8 );
112
114
rotateSizer->Add (rotateBtns[1 ] = new wxRadioButton (this , ROTATE_CW, " Clockwise" ), 0 , wxLEFT, size / 8 );
113
115
rotateSizer->Add (rotateBtns[2 ] = new wxRadioButton (this , ROTATE_CCW, " Counter-Clockwise" ), 0 , wxLEFT, size / 8 );
114
116
115
117
// Set up the arrangement settings
116
- wxRadioButton *arrangeBtns[3 ];
118
+ wxRadioButton *arrangeBtns[4 ];
117
119
wxBoxSizer *arrangeSizer = new wxBoxSizer (wxHORIZONTAL);
118
120
arrangeSizer->Add (new wxStaticText (this , wxID_ANY, " Arrangement:" , wxDefaultPosition,
119
121
wxSize (wxDefaultSize.GetWidth (), size)), 0 , wxALIGN_CENTRE | wxRIGHT, size / 8 );
120
122
arrangeSizer->Add (arrangeBtns[0 ] = new wxRadioButton (this , ARRANGE_AUTO, " Automatic" ,
121
123
wxDefaultPosition, wxDefaultSize, wxRB_GROUP), 0 , wxLEFT, size / 8 );
122
124
arrangeSizer->Add (arrangeBtns[1 ] = new wxRadioButton (this , ARRANGE_VERT, " Vertical" ), 0 , wxLEFT, size / 8 );
123
125
arrangeSizer->Add (arrangeBtns[2 ] = new wxRadioButton (this , ARRANGE_HORI, " Horizontal" ), 0 , wxLEFT, size / 8 );
126
+ arrangeSizer->Add (arrangeBtns[3 ] = new wxRadioButton (this , ARRANGE_SING, " Single Screen" ), 0 , wxLEFT, size / 8 );
124
127
125
128
// Set up the sizing settings
126
129
wxRadioButton *sizeBtns[3 ];
@@ -155,7 +158,7 @@ LayoutDialog::LayoutDialog(NooApp *app): wxDialog(nullptr, wxID_ANY, "Screen Lay
155
158
posBtns[ScreenLayout::screenPosition]->SetValue (true );
156
159
if (ScreenLayout::screenRotation < 3 )
157
160
rotateBtns[ScreenLayout::screenRotation]->SetValue (true );
158
- if (ScreenLayout::screenArrangement < 3 )
161
+ if (ScreenLayout::screenArrangement < 4 )
159
162
arrangeBtns[ScreenLayout::screenArrangement]->SetValue (true );
160
163
if (ScreenLayout::screenSizing < 3 )
161
164
sizeBtns[ScreenLayout::screenSizing]->SetValue (true );
@@ -271,6 +274,13 @@ void LayoutDialog::arrangeHori(wxCommandEvent &event)
271
274
app->updateLayouts ();
272
275
}
273
276
277
+ void LayoutDialog::arrangeSing (wxCommandEvent &event)
278
+ {
279
+ // Set the screen arrangement setting to single screen
280
+ ScreenLayout::screenArrangement = 3 ;
281
+ app->updateLayouts ();
282
+ }
283
+
274
284
void LayoutDialog::sizeEven (wxCommandEvent &event)
275
285
{
276
286
// Set the screen sizing setting to even
0 commit comments