summaryrefslogtreecommitdiff
path: root/LiteEditor/workspace_pane.cpp
diff options
context:
space:
mode:
authorAlessio Treglia <quadrispro@ubuntu.com>2010-03-26 10:58:27 +0100
committerAlessio Treglia <quadrispro@ubuntu.com>2010-03-26 10:58:27 +0100
commitc298bfa6913b48e5e16f7d3fed3839e203fadba1 (patch)
treea3514c157bd90fd687f5b9290e691263aef88dff /LiteEditor/workspace_pane.cpp
parentab5bf5023dc0f25091831e11fd68bcf33bbeb4c3 (diff)
Imported Upstream version 2.3.0.3833~dfsg
Diffstat (limited to 'LiteEditor/workspace_pane.cpp')
-rw-r--r--LiteEditor/workspace_pane.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/LiteEditor/workspace_pane.cpp b/LiteEditor/workspace_pane.cpp
index a50435c6..6b196460 100644
--- a/LiteEditor/workspace_pane.cpp
+++ b/LiteEditor/workspace_pane.cpp
@@ -71,21 +71,17 @@ void WorkspacePane::CreateGUIControls()
// selected configuration:
- mainSizer->Add(new wxStaticText(this, wxID_ANY, wxT("Selected Configuration:")), 0, wxEXPAND| wxTOP|wxLEFT|wxRIGHT, 5);
+ mainSizer->Add(new wxStaticText(this, wxID_ANY, wxT("Selected Configuration:")), 0, wxALIGN_CENTER_HORIZONTAL| wxALL, 2);
wxBoxSizer *hsz = new wxBoxSizer(wxHORIZONTAL);
- mainSizer->Add(hsz, 0, wxEXPAND|wxALL, 5);
+ mainSizer->Add(hsz, 0, wxEXPAND|wxTOP|wxBOTTOM, 5);
wxArrayString choices;
m_workspaceConfig = new wxChoice(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, choices);
m_workspaceConfig->Enable(false);
m_workspaceConfig->Append(OPEN_CONFIG_MGR_STR);
ConnectChoice(m_workspaceConfig, WorkspacePane::OnConfigurationManagerChoice);
- hsz->Add(m_workspaceConfig, 1, wxEXPAND);
-
- // add static line separator
- wxStaticLine *line = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
- mainSizer->Add(line, 0, wxEXPAND);
+ hsz->Add(m_workspaceConfig, 1, wxEXPAND| wxALL, 1);
// add notebook for tabs
long bookStyle = wxVB_LEFT|wxVB_FIXED_WIDTH;
@@ -304,12 +300,12 @@ void WorkspacePane::OnConfigurationManagerChoice(wxCommandEvent &event)
BuildMatrixPtr matrix = ManagerST::Get()->GetWorkspaceBuildMatrix();
matrix->SetSelectedConfigurationName(selection);
ManagerST::Get()->SetWorkspaceBuildMatrix(matrix);
-
+
// Set the focus to the active editor if any
LEditor *editor = Frame::Get()->GetMainBook()->GetActiveEditor();
if(editor)
editor->SetActive();
-
+
}
void WorkspacePane::OnConfigurationManager(wxCommandEvent& e)