mirror of https://github.com/adamdruppe/arsd.git
merge conflict
This commit is contained in:
commit
bd189d4a2b
39
minigui.d
39
minigui.d
|
@ -3097,6 +3097,10 @@ class TabWidget : Widget {
|
||||||
recomputeChildLayout();
|
recomputeChildLayout();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
version(win32_widgets) {
|
||||||
|
InvalidateRect(parentWindow.hwnd, null, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3197,6 +3201,26 @@ class TabWidgetPage : Widget {
|
||||||
this(string title, Widget parent) {
|
this(string title, Widget parent) {
|
||||||
this.title = title;
|
this.title = title;
|
||||||
super(parent);
|
super(parent);
|
||||||
|
|
||||||
|
/*
|
||||||
|
version(win32_widgets) {
|
||||||
|
static bool classRegistered = false;
|
||||||
|
if(!classRegistered) {
|
||||||
|
HINSTANCE hInstance = cast(HINSTANCE) GetModuleHandle(null);
|
||||||
|
WNDCLASSEX wc;
|
||||||
|
wc.cbSize = wc.sizeof;
|
||||||
|
wc.hInstance = hInstance;
|
||||||
|
wc.lpfnWndProc = &DefWindowProc;
|
||||||
|
wc.lpszClassName = "arsd_minigui_TabWidgetPage"w.ptr;
|
||||||
|
if(!RegisterClassExW(&wc))
|
||||||
|
throw new Exception("RegisterClass ");// ~ to!string(GetLastError()));
|
||||||
|
classRegistered = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
createWin32Window(this, "arsd_minigui_TabWidgetPage"w, "", 0);
|
||||||
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
override int minHeight() {
|
override int minHeight() {
|
||||||
|
@ -3395,6 +3419,8 @@ class Window : Widget {
|
||||||
this.width = w;
|
this.width = w;
|
||||||
this.height = h;
|
this.height = h;
|
||||||
recomputeChildLayout();
|
recomputeChildLayout();
|
||||||
|
version(win32_widgets)
|
||||||
|
InvalidateRect(hwnd, null, true);
|
||||||
redraw();
|
redraw();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -5536,15 +5562,16 @@ class TextLabel : Widget {
|
||||||
@scriptable
|
@scriptable
|
||||||
void label(string l) {
|
void label(string l) {
|
||||||
label_ = l;
|
label_ = l;
|
||||||
|
version(win32_widgets) {
|
||||||
|
WCharzBuffer bfr = WCharzBuffer(l);
|
||||||
|
SetWindowTextW(hwnd, bfr.ptr);
|
||||||
|
} else version(custom_widgets)
|
||||||
redraw();
|
redraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
this(string label, Widget parent = null) {
|
this(string label, Widget parent = null) {
|
||||||
this.label_ = label;
|
this(label, TextAlignment.Right, parent);
|
||||||
this.alignment = TextAlignment.Right;
|
|
||||||
this.tabStop = false;
|
|
||||||
super(parent);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
@ -5553,10 +5580,14 @@ class TextLabel : Widget {
|
||||||
this.alignment = alignment;
|
this.alignment = alignment;
|
||||||
this.tabStop = false;
|
this.tabStop = false;
|
||||||
super(parent);
|
super(parent);
|
||||||
|
|
||||||
|
version(win32_widgets)
|
||||||
|
createWin32Window(this, "static"w, label, 0, alignment == TextAlignment.Right ? WS_EX_RIGHT : WS_EX_LEFT);
|
||||||
}
|
}
|
||||||
|
|
||||||
TextAlignment alignment;
|
TextAlignment alignment;
|
||||||
|
|
||||||
|
version(custom_widgets)
|
||||||
override void paint(WidgetPainter painter) {
|
override void paint(WidgetPainter painter) {
|
||||||
painter.outlineColor = Color.black;
|
painter.outlineColor = Color.black;
|
||||||
painter.drawText(Point(0, 0), this.label, Point(width, height), alignment);
|
painter.drawText(Point(0, 0), this.label, Point(width, height), alignment);
|
||||||
|
|
|
@ -308,7 +308,7 @@ vs|xterm|xterm-color|xterm-256color|vs100|xterm terminal emulator (X Window Syst
|
||||||
|
|
||||||
|
|
||||||
#rxvt, added by me
|
#rxvt, added by me
|
||||||
rxvt|rxvt-unicode:\
|
rxvt|rxvt-unicode|rxvt-unicode-256color:\
|
||||||
:am:bs:mi@:km:co#80:li#55:\
|
:am:bs:mi@:km:co#80:li#55:\
|
||||||
:im@:ei@:\
|
:im@:ei@:\
|
||||||
:ct=\E[3k:ue=\E[m:\
|
:ct=\E[3k:ue=\E[m:\
|
||||||
|
|
Loading…
Reference in New Issue