mirror of https://github.com/buggins/dlangide.git
fixes
This commit is contained in:
parent
ead4391676
commit
926ecb0cd8
|
|
@ -20,13 +20,13 @@ extern (C) int UIAppMain(string[] args) {
|
|||
FontManager.hintingMode = HintingMode.Normal;
|
||||
// you can override antialiasing setting here
|
||||
FontManager.minAnitialiasedFontSize = 0;
|
||||
version (USE_OPENGL) {
|
||||
//version (USE_OPENGL) {
|
||||
// you can turn on subpixel font rendering (ClearType) here
|
||||
FontManager.subpixelRenderingMode = SubpixelRenderingMode.None; //
|
||||
} else {
|
||||
//} else {
|
||||
// you can turn on subpixel font rendering (ClearType) here
|
||||
FontManager.subpixelRenderingMode = SubpixelRenderingMode.BGR; //SubpixelRenderingMode.None; //
|
||||
}
|
||||
//FontManager.subpixelRenderingMode = SubpixelRenderingMode.BGR; //SubpixelRenderingMode.None; //
|
||||
//}
|
||||
|
||||
// create window
|
||||
Window window = Platform.instance.createWindow("Dlang IDE", null);
|
||||
|
|
|
|||
|
|
@ -33,6 +33,24 @@ bool isSupportedSourceTextFileFormat(string filename) {
|
|||
|| filename.endsWith(".html") || filename.endsWith(".css") || filename.endsWith(".log") || filename.endsWith(".hpp"));
|
||||
}
|
||||
|
||||
class BackgroundOperationWatcherTest : BackgroundOperationWatcher {
|
||||
this(AppFrame frame) {
|
||||
super(frame);
|
||||
}
|
||||
int _counter;
|
||||
/// returns description of background operation to show in status line
|
||||
override @property dstring description() { return "Test progress: "d ~ to!dstring(_counter); }
|
||||
/// returns icon of background operation to show in status line
|
||||
override @property string icon() { return "folder"; }
|
||||
/// update background operation status
|
||||
override void update() {
|
||||
_counter++;
|
||||
if (_counter >= 100)
|
||||
_finished = true;
|
||||
super.update();
|
||||
}
|
||||
}
|
||||
|
||||
/// DIDE app frame
|
||||
class IDEFrame : AppFrame {
|
||||
|
||||
|
|
@ -358,6 +376,10 @@ class IDEFrame : AppFrame {
|
|||
};
|
||||
dlg.show();
|
||||
return true;
|
||||
case IDEActions.BuildProject:
|
||||
case IDEActions.BuildWorkspace:
|
||||
setBackgroundOperation(new BackgroundOperationWatcherTest(this));
|
||||
return true;
|
||||
case IDEActions.WindowCloseAllDocuments:
|
||||
askForUnsavedEdits(delegate() {
|
||||
closeAllDocuments();
|
||||
|
|
|
|||
Loading…
Reference in New Issue