Skip to content

Commit

Permalink
Group checkboxes for newlines of OR,AND,SELECT
Browse files Browse the repository at this point in the history
  • Loading branch information
dnsmkl committed Dec 24, 2011
1 parent b16572f commit 5c92aec
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions gui/wx_fsqlf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,26 +149,33 @@ Notepad::Notepad() : wxFrame(NULL, wxID_ANY, wxT("wx Free SQL Formatter"), wxDef
sel_comma_nl->SetSelection(1);
sizerv->Add(sel_comma_nl,0,0,0);

// Check box - new line after SELECT
nl_after_select = new wxCheckBox(this, -1 , _("New line after select") );
// Check boxes for : OR , AND , SELECT
wxStaticBoxSizer* nl_other_sizer = new wxStaticBoxSizer(
new wxStaticBox(this, -1, _("New line:[other]"))
, wxVERTICAL);
sizerv->Add(nl_other_sizer,0,0,0);

nl_after_select = new wxCheckBox(this, -1 , _("[select] after ") );
nl_after_select->SetValue(true);
sizerv->Add(nl_after_select,0,0,0);
nl_other_sizer->Add(nl_after_select,0,0,0);

nl_before_or = new wxCheckBox(this, -1 , _("New line before or") );
nl_before_or = new wxCheckBox(this, -1 , _("[or] before") );
nl_before_or->SetValue(false);
sizerv->Add(nl_before_or,0,0,0);
nl_other_sizer->Add(nl_before_or,0,0,0);

nl_after_or = new wxCheckBox(this, -1 , _("New line after or") );
nl_after_or = new wxCheckBox(this, -1 , _("[or] after") );
nl_after_or->SetValue(false);
sizerv->Add(nl_after_or,0,0,0);
nl_other_sizer->Add(nl_after_or,0,0,0);

nl_before_and = new wxCheckBox(this, -1 , _("New line before and") );
nl_before_and = new wxCheckBox(this, -1 , _("[and] before") );
nl_before_and->SetValue(false);
sizerv->Add(nl_before_and,0,0,0);
nl_other_sizer->Add(nl_before_and,0,0,0);

nl_after_and = new wxCheckBox(this, -1 , _("New line after and") );
nl_after_and = new wxCheckBox(this, -1 , _("[and] after") );
nl_after_and->SetValue(false);
sizerv->Add(nl_after_and,0,0,0);
nl_other_sizer->Add(nl_after_and,0,0,0);



// Text area on the right
wxBoxSizer *sizerh = new wxBoxSizer(wxHORIZONTAL);
Expand Down

0 comments on commit 5c92aec

Please sign in to comment.