LuaDebuggerInterface::LuaDebuggerInterface() : _BaseIconDir("./Data/Icons"), _ToolButtonSize(40.0f,40.0f) { createUtilTabs(); createToolbars(); createCodeEditor(); }
//============================================================================== JucerDocumentEditor::JucerDocumentEditor (JucerDocument* const doc) : document (doc), tabbedComponent (TabbedButtonBar::TabsAtTop), compLayoutPanel (0), lastViewportX (0), lastViewportY (0), currentZoomLevel (1.0) { setOpaque (true); if (document != nullptr) { setSize (document->getInitialWidth(), document->getInitialHeight()); addAndMakeVisible (tabbedComponent); tabbedComponent.setOutline (0); tabbedComponent.addTab ("Class", tabColour, new ClassPropertiesPanel (*document), true); if (document->getComponentLayout() != nullptr) tabbedComponent.addTab ("Subcomponents", tabColour, compLayoutPanel = new ComponentLayoutPanel (*document, *document->getComponentLayout()), true); tabbedComponent.addTab ("Resources", tabColour, new ResourceEditorPanel (*document), true); tabbedComponent.addTab ("Code", tabColour, createCodeEditor (document->getCppFile(), document->getCppDocument()), true); updateTabs(); tabbedComponent.setCurrentTabIndex (1); document->addChangeListener (this); resized(); refreshPropertiesPanel(); changeListenerCallback (nullptr); } }