mirror of https://github.com/buggins/dlangide.git
fix log window size issue #48
This commit is contained in:
parent
0bda52db8a
commit
e9a668407c
|
@ -72,7 +72,7 @@
|
||||||
<debuglevel>0</debuglevel>
|
<debuglevel>0</debuglevel>
|
||||||
<debugids>DebugInfo DCD</debugids>
|
<debugids>DebugInfo DCD</debugids>
|
||||||
<versionlevel>0</versionlevel>
|
<versionlevel>0</versionlevel>
|
||||||
<versionids>Unicode USE_FREETYPE USE_OPENGL USE_SDL</versionids>
|
<versionids>Unicode USE_FREETYPE USE_OPENGL</versionids>
|
||||||
<dump_source>0</dump_source>
|
<dump_source>0</dump_source>
|
||||||
<mapverbosity>3</mapverbosity>
|
<mapverbosity>3</mapverbosity>
|
||||||
<createImplib>0</createImplib>
|
<createImplib>0</createImplib>
|
||||||
|
|
|
@ -553,9 +553,8 @@ class IDEFrame : AppFrame {
|
||||||
window.close();
|
window.close();
|
||||||
return true;
|
return true;
|
||||||
case IDEActions.HelpAbout:
|
case IDEActions.HelpAbout:
|
||||||
Window wnd = Platform.instance.createWindow("About...", window, WindowFlag.Modal);
|
window.showMessageBox(UIString("About DlangIDE"d),
|
||||||
wnd.mainWidget = createAboutWidget();
|
UIString("DLangIDE\n(C) Vadim Lopatin, 2014\nhttp://github.com/buggins/dlangide\nIDE for D programming language written in D\nUses DlangUI library for GUI"d));
|
||||||
wnd.show();
|
|
||||||
return true;
|
return true;
|
||||||
case StandardAction.OpenUrl:
|
case StandardAction.OpenUrl:
|
||||||
platform.openURL(a.stringParam);
|
platform.openURL(a.stringParam);
|
||||||
|
@ -820,17 +819,3 @@ class IDEFrame : AppFrame {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget createAboutWidget()
|
|
||||||
{
|
|
||||||
LinearLayout res = new VerticalLayout();
|
|
||||||
res.padding(Rect(10,10,10,10));
|
|
||||||
res.addChild(new MultilineTextWidget(null, "DLangIDE\n(C) Vadim Lopatin, 2014\nhttp://github.com/buggins/dlangide\nIDE for D programming language written in D\nUses DlangUI library for GUI"d));
|
|
||||||
Button closeButton = new Button("close", "Close"d);
|
|
||||||
closeButton.onClickListener = delegate(Widget src) {
|
|
||||||
Log.i("Closing window");
|
|
||||||
res.window.close();
|
|
||||||
return true;
|
|
||||||
};
|
|
||||||
res.addChild(closeButton);
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
|
|
|
@ -137,9 +137,12 @@ class OutputPanel : DockWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
override protected Widget createBodyWidget() {
|
override protected Widget createBodyWidget() {
|
||||||
|
layoutWidth(FILL_PARENT).layoutHeight(FILL_PARENT);
|
||||||
_tabs = new TabWidget("OutputPanelTabs", Align.Bottom);
|
_tabs = new TabWidget("OutputPanelTabs", Align.Bottom);
|
||||||
//_tabs.setStyles(STYLE_DOCK_HOST_BODY, STYLE_TAB_UP_DARK, STYLE_TAB_UP_BUTTON_DARK, STYLE_TAB_UP_BUTTON_DARK_TEXT);
|
//_tabs.setStyles(STYLE_DOCK_HOST_BODY, STYLE_TAB_UP_DARK, STYLE_TAB_UP_BUTTON_DARK, STYLE_TAB_UP_BUTTON_DARK_TEXT);
|
||||||
_tabs.setStyles(null, STYLE_TAB_DOWN_DARK, STYLE_TAB_DOWN_BUTTON_DARK, STYLE_TAB_UP_BUTTON_DARK_TEXT);
|
_tabs.setStyles(null, STYLE_TAB_DOWN_DARK, STYLE_TAB_DOWN_BUTTON_DARK, STYLE_TAB_UP_BUTTON_DARK_TEXT);
|
||||||
|
_tabs.layoutWidth(FILL_PARENT).layoutHeight(FILL_PARENT);
|
||||||
|
_tabs.tabHost.layoutWidth(FILL_PARENT).layoutHeight(FILL_PARENT);
|
||||||
|
|
||||||
_logWidget = new CompilerLogWidget("logwidget");
|
_logWidget = new CompilerLogWidget("logwidget");
|
||||||
_logWidget.readOnly = true;
|
_logWidget.readOnly = true;
|
||||||
|
|
|
@ -130,7 +130,7 @@ struct SearchMatch {
|
||||||
long col;
|
long col;
|
||||||
dstring lineContent;
|
dstring lineContent;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct SearchMatchList {
|
struct SearchMatchList {
|
||||||
string filename;
|
string filename;
|
||||||
SearchMatch[] matches;
|
SearchMatch[] matches;
|
||||||
|
|
Loading…
Reference in New Issue