diff --git a/dlangide.visualdproj b/dlangide.visualdproj index 55ab84d..7fad869 100644 --- a/dlangide.visualdproj +++ b/dlangide.visualdproj @@ -202,6 +202,7 @@ + diff --git a/outputpanel.d b/outputpanel.d new file mode 100644 index 0000000..5e99610 --- /dev/null +++ b/outputpanel.d @@ -0,0 +1,26 @@ +module dlangide.ui.outputpanel; + +import dlangui.all; +import dlangide.workspace.workspace; +import dlangide.workspace.project; + +class OutputPanel : DockWindow { + protected LogWidget _logWidget; + + this(string id) { + super(id); + _caption.text = "Output"d; + dockAlignment = DockAlignment.Bottom; + } + + override protected Widget createBodyWidget() { + _logWidget = new LogWidget("logwidget"); + _logWidget.readOnly = true; + _logWidget.layoutHeight(FILL_PARENT).layoutHeight(FILL_PARENT); + return _logWidget; + } + + void addLogLines(string category, dstring[] msg...) { + _logWidget.appendLines(msg); + } +} diff --git a/res/stdres/theme_default.xml b/res/stdres/theme_default.xml index eed0aa5..add1b54 100644 --- a/res/stdres/theme_default.xml +++ b/res/stdres/theme_default.xml @@ -302,15 +302,14 @@ />