mirror of https://github.com/buggins/dlangide.git
fixes
This commit is contained in:
parent
48a6f5754a
commit
3c8f770d93
|
@ -31,7 +31,7 @@ extern (C) int UIAppMain(string[] args) {
|
||||||
version (USE_OPENGL) {
|
version (USE_OPENGL) {
|
||||||
// you can turn on subpixel font rendering (ClearType) here
|
// you can turn on subpixel font rendering (ClearType) here
|
||||||
FontManager.subpixelRenderingMode = SubpixelRenderingMode.None; //
|
FontManager.subpixelRenderingMode = SubpixelRenderingMode.None; //
|
||||||
FontManager.fontGamma = 0.8;
|
FontManager.fontGamma = 0.9;
|
||||||
FontManager.hintingMode = HintingMode.AutoHint;
|
FontManager.hintingMode = HintingMode.AutoHint;
|
||||||
} else {
|
} else {
|
||||||
version (USE_FREETYPE) {
|
version (USE_FREETYPE) {
|
||||||
|
@ -42,20 +42,6 @@ extern (C) int UIAppMain(string[] args) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//import ddc.lexer.tokenizer;
|
|
||||||
//runTokenizerTest();
|
|
||||||
//debug(DebugInfo) {
|
|
||||||
// version(USE_MAGO) {
|
|
||||||
// import ddebug.windows.mago;
|
|
||||||
// testMago();
|
|
||||||
// }
|
|
||||||
// version(Windows) {
|
|
||||||
// import ddebug.windows.debuginfo;
|
|
||||||
// import std.file;
|
|
||||||
// //debugInfoTest(thisExePath);
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
|
|
||||||
//version(USE_WIN_DEBUG) {
|
//version(USE_WIN_DEBUG) {
|
||||||
// debuggerTest();
|
// debuggerTest();
|
||||||
//}
|
//}
|
||||||
|
@ -64,7 +50,7 @@ extern (C) int UIAppMain(string[] args) {
|
||||||
//}
|
//}
|
||||||
|
|
||||||
// create window
|
// create window
|
||||||
Window window = Platform.instance.createWindow("Dlang IDE", null, WindowFlag.Resizable, 800, 600);
|
Window window = Platform.instance.createWindow("Dlang IDE", null, WindowFlag.Resizable, 1000, 800);
|
||||||
// set window icon
|
// set window icon
|
||||||
window.windowIcon = drawableCache.getImage("dlangui-logo1");
|
window.windowIcon = drawableCache.getImage("dlangui-logo1");
|
||||||
|
|
||||||
|
|
|
@ -49,10 +49,9 @@ class DebuggerUIHandler : DebuggerCallback, StackFrameSelectedHandler {
|
||||||
void onStackFrameSelected(ulong threadId, int frame) {
|
void onStackFrameSelected(ulong threadId, int frame) {
|
||||||
if (_debugInfo) {
|
if (_debugInfo) {
|
||||||
if (DebugThread t = _debugInfo.findThread(threadId)) {
|
if (DebugThread t = _debugInfo.findThread(threadId)) {
|
||||||
if (frame < t.length)
|
DebugFrame f = (frame < t.length) ? t[frame] : t.frame;
|
||||||
updateLocation(t[frame]);
|
updateLocation(f);
|
||||||
else
|
_debugger.requestDebugContextInfo(threadId, frame);
|
||||||
updateLocation(t.frame);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,18 @@ class VariablesWindow : StringGridWidget {
|
||||||
autoFit();
|
autoFit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override void layout(Rect rc) {
|
||||||
|
if (visibility == Visibility.Gone) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
super.layout(rc);
|
||||||
|
int cw = clientRect.width;
|
||||||
|
setColWidth(1, cw * 40 / 100);
|
||||||
|
setColWidth(2, cw * 45 / 100);
|
||||||
|
setColWidth(3, cw * 25 / 100);
|
||||||
|
super.layout(_pos);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class WatchPanel : DockWindow {
|
class WatchPanel : DockWindow {
|
||||||
|
|
Loading…
Reference in New Issue