mirror of https://github.com/buggins/dlangide.git
fix Travis CI unittest
This commit is contained in:
parent
bc7041530d
commit
0cdd6a9216
|
@ -68,31 +68,32 @@ extern (C) int UIAppMain(string[] args) {
|
||||||
//}
|
//}
|
||||||
version(unittest) {
|
version(unittest) {
|
||||||
return 0;
|
return 0;
|
||||||
|
} else {
|
||||||
|
|
||||||
|
// create window
|
||||||
|
Window window = Platform.instance.createWindow("Dlang IDE", null, WindowFlag.Resizable, 900, 730);
|
||||||
|
// set window icon
|
||||||
|
window.windowIcon = drawableCache.getImage("dlangui-logo1");
|
||||||
|
|
||||||
|
//Widget w = new Widget();
|
||||||
|
//pragma(msg, w.click.return_t, "", w.click.params_t);
|
||||||
|
|
||||||
|
IDEFrame frame = new IDEFrame(window);
|
||||||
|
|
||||||
|
|
||||||
|
// open home screen tab
|
||||||
|
frame.showHomeScreen();
|
||||||
|
// for testing: load workspace at startup
|
||||||
|
//frame.openFileOrWorkspace(appendPath(exePath, "../workspaces/sample1/sample1.dlangidews"));
|
||||||
|
|
||||||
|
// show window
|
||||||
|
window.show();
|
||||||
|
|
||||||
|
//jsonTest();
|
||||||
|
|
||||||
|
// run message loop
|
||||||
|
return Platform.instance.enterMessageLoop();
|
||||||
}
|
}
|
||||||
|
|
||||||
// create window
|
|
||||||
Window window = Platform.instance.createWindow("Dlang IDE", null, WindowFlag.Resizable, 900, 730);
|
|
||||||
// set window icon
|
|
||||||
window.windowIcon = drawableCache.getImage("dlangui-logo1");
|
|
||||||
|
|
||||||
//Widget w = new Widget();
|
|
||||||
//pragma(msg, w.click.return_t, "", w.click.params_t);
|
|
||||||
|
|
||||||
IDEFrame frame = new IDEFrame(window);
|
|
||||||
|
|
||||||
|
|
||||||
// open home screen tab
|
|
||||||
frame.showHomeScreen();
|
|
||||||
// for testing: load workspace at startup
|
|
||||||
//frame.openFileOrWorkspace(appendPath(exePath, "../workspaces/sample1/sample1.dlangidews"));
|
|
||||||
|
|
||||||
// show window
|
|
||||||
window.show();
|
|
||||||
|
|
||||||
//jsonTest();
|
|
||||||
|
|
||||||
// run message loop
|
|
||||||
return Platform.instance.enterMessageLoop();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -46,7 +46,7 @@ import std.path;
|
||||||
|
|
||||||
immutable string HELP_PAGE_URL = "https://github.com/buggins/dlangide/wiki";
|
immutable string HELP_PAGE_URL = "https://github.com/buggins/dlangide/wiki";
|
||||||
// TODO: get version from GIT commit
|
// TODO: get version from GIT commit
|
||||||
immutable dstring DLANGIDE_VERSION = "v0.6.15"d;
|
immutable dstring DLANGIDE_VERSION = "v0.6.17"d;
|
||||||
|
|
||||||
bool isSupportedSourceTextFileFormat(string filename) {
|
bool isSupportedSourceTextFileFormat(string filename) {
|
||||||
return (filename.endsWith(".d") || filename.endsWith(".txt") || filename.endsWith(".cpp") || filename.endsWith(".h") || filename.endsWith(".c")
|
return (filename.endsWith(".d") || filename.endsWith(".txt") || filename.endsWith(".cpp") || filename.endsWith(".h") || filename.endsWith(".c")
|
||||||
|
|
Loading…
Reference in New Issue