Skip to content

Commit d240a4a

Browse files
committed
Changes to editor layout
1 parent af855a0 commit d240a4a

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

Editor/EditorManager.cpp

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,28 @@ namespace RTEGUI {
9595
zoomCheckBox->SetText("Zoom");
9696
zoomCheckBox->SetCheck(GUICheckbox::Unchecked);
9797

98-
m_PropertyPage.reset(dynamic_cast<GUIPropertyPage *>(m_EditorControlManager->AddControl("PropertyPage", "PROPERTYPAGE", m_LeftColumn.get(), editorControls->GetRelXPos(), editorControls->GetRelYPos() + 165, 270, 360)));
98+
GUICollectionBox *propertyPagePanel = dynamic_cast<GUICollectionBox *>(m_EditorControlManager->AddControl("PropertyPagePanel", "COLLECTIONBOX", m_LeftColumn.get(), 5, editorControls->GetYPos() + editorControls->GetHeight() + 10, 270, 360));
99+
propertyPagePanel->SetDrawType(GUICollectionBox::Panel);
100+
101+
GUILabel *propertyPageLabel = dynamic_cast<GUILabel *>(m_EditorControlManager->AddControl("PropertyPageLabel", "LABEL", propertyPagePanel, 10, 5, 110, 20));
102+
propertyPageLabel->SetText("Element Properties :");
103+
m_PropertyPage.reset(dynamic_cast<GUIPropertyPage *>(m_EditorControlManager->AddControl("PropertyPage", "PROPERTYPAGE", m_LeftColumn.get(), 10, 260, 260, 330)));
99104

100105
m_RightColumn.reset(dynamic_cast<GUICollectionBox *>(m_EditorControlManager->AddControl("RightColumn", "COLLECTIONBOX", nullptr, 990, 0, 290, screen->GetBitmap()->GetHeight())));
101106
m_RightColumn->SetDrawBackground(true);
102107
m_RightColumn->SetDrawColor(makecol(23, 23, 23));
103108
m_RightColumn->SetDrawType(GUICollectionBox::Color);
104109

105-
m_CollectionBoxList.reset(dynamic_cast<GUIListBox *>(m_EditorControlManager->AddControl("CollectionBoxList", "LISTBOX", m_RightColumn.get(), 15, 5, 270, 230)));
106-
m_ControlsInCollectionBoxList.reset(dynamic_cast<GUIListBox *>(m_EditorControlManager->AddControl("ControlsInCollectionBoxList", "LISTBOX", m_RightColumn.get(), 15, m_CollectionBoxList->GetRelYPos() + 240, 270, 350)));
110+
GUICollectionBox *listsPanel = dynamic_cast<GUICollectionBox *>(m_EditorControlManager->AddControl("ControlListsPanel", "COLLECTIONBOX", m_RightColumn.get(), 15, 5, m_RightColumn->GetWidth() - 20, 590));
111+
listsPanel->SetDrawType(GUICollectionBox::Panel);
112+
113+
GUILabel *collectionBoxListLabel = dynamic_cast<GUILabel *>(m_EditorControlManager->AddControl("CollectionBoxListLabel", "LABEL", listsPanel, 10, 5, 100, 20));
114+
collectionBoxListLabel->SetText("Active Containers :");
115+
m_CollectionBoxList.reset(dynamic_cast<GUIListBox *>(m_EditorControlManager->AddControl("CollectionBoxList", "LISTBOX", listsPanel, 5, collectionBoxListLabel->GetHeight() + 5, 260, 230)));
116+
117+
GUILabel *controlsInCollectionBoxListLabel = dynamic_cast<GUILabel *>(m_EditorControlManager->AddControl("ControlsInCollectionBoxListLabel", "LABEL", listsPanel, 10, collectionBoxListLabel->GetHeight() + m_CollectionBoxList->GetHeight() + 10, 110, 20));
118+
controlsInCollectionBoxListLabel->SetText("Container Elements :");
119+
m_ControlsInCollectionBoxList.reset(dynamic_cast<GUIListBox *>(m_EditorControlManager->AddControl("ControlsInCollectionBoxList", "LISTBOX", listsPanel, 5, controlsInCollectionBoxListLabel->GetHeight() + m_CollectionBoxList->GetRelYPos() + 235, 260, 305)));
107120

108121
// Create the workspace area showing the editing box
109122
GUICollectionBox *workspace = dynamic_cast<GUICollectionBox *>(m_EditorControlManager->AddControl("Workspace", "COLLECTIONBOX", m_EditorBase.get(), m_WorkspacePosX, m_WorkspacePosY, m_WorkspaceWidth, m_WorkspaceHeight));

0 commit comments

Comments
 (0)