fix log window size issue #48

This commit is contained in:
Vadim Lopatin 2015-03-27 14:10:19 +03:00
parent 0bda52db8a
commit e9a668407c
4 changed files with 7 additions and 19 deletions

View File

@ -72,7 +72,7 @@
<debuglevel>0</debuglevel>
<debugids>DebugInfo DCD</debugids>
<versionlevel>0</versionlevel>
<versionids>Unicode USE_FREETYPE USE_OPENGL USE_SDL</versionids>
<versionids>Unicode USE_FREETYPE USE_OPENGL</versionids>
<dump_source>0</dump_source>
<mapverbosity>3</mapverbosity>
<createImplib>0</createImplib>

View File

@ -553,9 +553,8 @@ class IDEFrame : AppFrame {
window.close();
return true;
case IDEActions.HelpAbout:
Window wnd = Platform.instance.createWindow("About...", window, WindowFlag.Modal);
wnd.mainWidget = createAboutWidget();
wnd.show();
window.showMessageBox(UIString("About DlangIDE"d),
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));
return true;
case StandardAction.OpenUrl:
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;
}

View File

@ -137,9 +137,12 @@ class OutputPanel : DockWindow {
}
override protected Widget createBodyWidget() {
layoutWidth(FILL_PARENT).layoutHeight(FILL_PARENT);
_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(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.readOnly = true;

View File

@ -130,7 +130,7 @@ struct SearchMatch {
long col;
dstring lineContent;
}
struct SearchMatchList {
string filename;
SearchMatch[] matches;