buggins / dlangui Goto Github PK
View Code? Open in Web Editor NEWCross Platform GUI for D programming language
License: Boost Software License 1.0
Cross Platform GUI for D programming language
License: Boost Software License 1.0
Still getting "conflicting obj and ddoc generation options" when using the build instructions on windows even after issue was "fixed."
It must be possible to navigate to any directory in path.
If i click on CD-Device that have not disk in шею I am getting error:
"---------------------------
0x0040DF38 in pure @safe bool std.exception.enforce!(bool).enforce(bool, lazy object.Throwable) at C:\D\dmd2\windows\bin....\src\phobos\std\exception.d(498)
0x004CBD6C in uint std.file.getAttributes(const(char[]))
0x0046236B in bool dlangui.dialogs.filedlg.FileDialog.openDirectory(immutable(char)[], immutable(char)[]) at C:\Users\bubenkov_di\Downloads\dcd\dlangide-master\dlangide-master........\AppData\Roaming\dub\packages\dlangui-master\src\dlangui\dialogs\filedlg.d(150)
0x00462CFB in D7dlangui7dialogs7filedlg10FileDialog15createRootsListMFZ12__dgliteral1MFC7dlangui7widgets6widget6WidgetiZb at C:\Users\bubenkov_di\Downloads\dcd\dlangide-master\dlangide-master........\AppData\Roaming\dub\packages\dlangui-master\src\dlangui\dialogs\filedlg.d(245)
0x0047A2DA in D7dlangui4core7signals58__T6SignalTC7dlangui7widgets5lists21OnItemSelectedHandlerZ6Signal4emitMFC7dlangui7widgets6widget6WidgetiZ14__foreachbody4MFKDFC7dlangui7widgets6widget6WidgetiZbZi at C:\Users\bubenkov_di\Downloads\dcd\dlangide-master\dlangide-master........\AppData\Roaming\dub\packages\dlangui-master\src\dlangui\core\signals.d(215)
0x0047A9F5 in int dlangui.core.collections.Collection!(bool delegate(dlangui.widgets.widget.Widget, int), false).Collection.opApply(int delegate(ref bool delegate(dlangui.widgets.widget.Widget, int))) at C:\Users\bubenkov_di\Downloads\dcd\dlangide-master\dlangide-master........\AppData\Roaming\dub\packages\dlangui-master\src\dlangui\core\collections.d(158)
0x0047A29C in bool dlangui.core.signals.Signal!(dlangui.widgets.lists.OnItemSelectedHandler).Signal.emit(dlangui.widgets.widget.Widget, int) at C:\Users\bubenkov_di\Downloads\dcd\dlangide-master\dlangide-master........\AppData\Roaming\dub\packages\dlangui-master\src\dlangui\core\signals.d(214)
0x0047A254 in bool dlangui.core.signals.Signal!(dlangui.widgets.lists.OnItemSelectedHandler).Signal.opCall(dlangui.widgets.widget.Widget, int) at C:\Users\bubenkov_di\Downloads\dcd\dlangide-master\dlangide-master........\AppData\Roaming\dub\packages\dlangui-master\src\dlangui\core\signals.d(211)
0x004787BA in void dlangui.widgets.lists.ListWidget.itemClicked(int) at C:\Users\bubenkov_di\Downloads\dcd\dlangide-master\dlangide-master........\AppData\Roaming\dub\packages\dlangui-master\src\dlangui\widgets\lists.d(342)
0x0047A0E7 in bool dlangui.widgets.lists.ListWidget.onMouseEvent(dlangui.core.events.MouseEvent) at C:\Users\bubenkov_di\Downloads\dcd\dlangide-master\dlangide-master........\AppData\Roaming\dub\packages\dlangui-master\src\dlangui\widgets\lists.d(865)
0x0049CF97 in bool dlangui.platforms.common.platform.Window.sendAndCheckOverride(dlangui.widgets.widget.Widget, dlangui.core.events.MouseEvent) at C:\Users\bubenkov_di\Downloads\dcd\dlangide-master\dlangide-master........\AppData\Roaming\dub\packages\dlangui-master\src\dlangui\platforms\common\platform.d(504)
0x0049D6C3 in bool dlangui.platforms.common.platform.Window.dispatchMouseEvent(dlangui.core.events.MouseEvent) at C:\Users\bubenkov_di\Downloads\dcd\dlangide-master\dlangide-master........\AppData\Roaming\dub\packages\dlangui-master\src\dlangui\platforms\common\platform.d(676)
0x004A0E71 in bool dlangui.platforms.windows.winapp.Win32Window.onMouse(uint, uint, short, short) at C:\Users\bubenkov_di\Downloads\dcd\dlangide-master\dlangide-master........\AppData\Roaming\dub\packages\dlangui-master\src\dlangui\platforms\windows\winapp.d(597)
0x0049FF45 in WndProc at C:\Users\bubenkov_di\Downloads\dcd\dlangide-master\dlangide-master........\AppData\Roaming\dub\packages\dlangui-master\src\dlangui\platforms\windows\winapp.d(1034)
0x768362FA in gapfnScSendMessage
0x76836D3A in GetThreadDesktop
0x768377C4 in CharPrevW
0x7683788A in DispatchMessageW
0x0048D011 in int dlangui.platforms.windows.winapp.Win32Platform.enterMessageLoop() at C:\Users\bubenkov_di\Downloads\dcd\dlangide-master\dlangide-master........\AppData\Roaming\dub\packages\dlangui-master\src\dlangui\platforms\windows\winapp.d(694)
0x0043675C in UIAppMain at C:\Users\bubenkov_di\Downloads\dcd\dlangide-master\dlangide-master\src\dlangide.d(48)
0x00467E80 in int dlangui.platforms.windows.winapp.myWinMain(void_, void_, char*, int) at C:\Users\bubenkov_di\Downloads\dcd\dlangide-master\dlangide-master........\AppData\Roaming\dub\packages\dlangui-master\src\dlangui\platforms\windows\winapp.d(943)
0x004452C0 in DLANGUIWinMain at C:\Users\bubenkov_di\Downloads\dcd\dlangide-master\dlangide-master........\AppData\Roaming\dub\packages\dlangui-master\src\dlangui\platforms\windows\winapp.d(807)
0x00436662 in WinMain at C:\Users\bubenkov_di\Downloads\dcd\dlangide-master\dlangide-master........\AppData\Roaming\dub\packages\dlangui-master\src\dlangui\platforms\common\platform.d(946)
0x00502712 in WinMainCRTStartup
0x75FA338A in BaseThreadInitThunk
0x76F39F72 in RtlInitializeExceptionChain
ОК
---------------------------"
Need ability to show custom marks for lines in editors.
E.g.
Bookmarks
Breakpoints
Error marks
Open text file with LF line ending (unix format), then save it.
CRLF (windows) format line endings appear in saved file.
(issue #9 from dlangide project)
If to build example1, run it, and start to minimize holding of bottom, down buttons become more and more thin, and if continue, window become blank (white color).
src\dlangui\platforms\windows\winapp.d(774): Error: constructor dlangui.platform
s.windows.winapp.Win32Window.this (Win32Platform platform, immutable(dchar)[] wi
ndowCaption, Window parent, uint flags) is not callable using argument types (Pl
atform, string, typeof(null))
src\dlangui\platforms\windows\winapp.d(774): Error: no constructor for Win32Wind
ow
I'm probably gonna post way too much info here, but anything I'm including is just in case it's somehow responsible and I'm just too dumb to see it.
I'm using Ubuntu 12.04 and GDC 4.9.0 (old DMD, I know.)
I'll start with my dlangui revision and then crash info:
_dlangui version_
commit def5580108f2f2a66f9608731a53dfb5a1d7c604
Author: Vadim Lopatin <[email protected]>
Date: Mon Jul 7 11:19:25 2014 +0400
_Crash info_
donny@donny-desktop:/mnt/oih/hdon/src/git/dlangui$ LD_LIBRARY_PATH=~/src/hg/SDL/build/.libs:$LD_LIBRARY_PATH gdb ./examples/example1/.dub/build/application-debug-linux.posix-x86_64-gdc-2FC0161B42BAC2CFFE5008D87F1EA79C/example1
GNU gdb (GDB) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /mnt/oih/hdon/src/git/dlangui/examples/example1/.dub/build/application-debug-linux.posix-x86_64-gdc-2FC0161B42BAC2CFFE5008D87F1EA79C/example1...rdone.
(gdb) run
Starting program: /mnt/oih/hdon/src/git/dlangui/examples/example1/.dub/build/application-debug-linux.posix-x86_64-gdc-2FC0161B42BAC2CFFE5008D87F1EA79C/example1
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
2014-08-11 12:05:21.213 D FreeTypeFontManager.registerFont /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf SansSerif DejaVu italic=false weight=400
2014-08-11 12:05:21.214 D Creating default theme
[New Thread 0x7ffff2e50700 (LWP 20235)]
2014-08-11 12:05:21.602 D DrawableCache: adding path /mnt/oih/hdon/src/git/dlangui/examples/example1/.dub/build/application-debug-linux.posix-x86_64-gdc-2FC0161B42BAC2CFFE5008D87F1EA79C/../../../res/ to resource dir list.
2014-08-11 12:05:21.602 D DrawableCache: adding path /mnt/oih/hdon/src/git/dlangui/examples/example1/.dub/build/application-debug-linux.posix-x86_64-gdc-2FC0161B42BAC2CFFE5008D87F1EA79C/../../../res/mdpi/ to resource dir list.
2014-08-11 12:05:21.602 D DrawableCache: path /mnt/oih/hdon/src/git/dlangui/examples/example1/.dub/build/application-debug-linux.posix-x86_64-gdc-2FC0161B42BAC2CFFE5008D87F1EA79C/../../../../res/ does not exist.
2014-08-11 12:05:21.602 D DrawableCache: path /mnt/oih/hdon/src/git/dlangui/examples/example1/.dub/build/application-debug-linux.posix-x86_64-gdc-2FC0161B42BAC2CFFE5008D87F1EA79C/../../../../res/mdpi/ does not exist.
2014-08-11 12:05:21.603 D DrawableCache: path /mnt/oih/hdon/src/git/dlangui/examples/example1/.dub/build/application-debug-linux.posix-x86_64-gdc-2FC0161B42BAC2CFFE5008D87F1EA79C/res/ does not exist.
2014-08-11 12:05:21.603 D DrawableCache: path /mnt/oih/hdon/src/git/dlangui/examples/example1/.dub/build/application-debug-linux.posix-x86_64-gdc-2FC0161B42BAC2CFFE5008D87F1EA79C/../res/ does not exist.
2014-08-11 12:05:21.603 D DrawableCache: path /mnt/oih/hdon/src/git/dlangui/examples/example1/.dub/build/application-debug-linux.posix-x86_64-gdc-2FC0161B42BAC2CFFE5008D87F1EA79C/../../res/ does not exist.
2014-08-11 12:05:21.603 D DrawableCache: path /mnt/oih/hdon/src/git/dlangui/examples/example1/.dub/build/application-debug-linux.posix-x86_64-gdc-2FC0161B42BAC2CFFE5008D87F1EA79C/res/mdpi/ does not exist.
2014-08-11 12:05:21.603 D DrawableCache: path /mnt/oih/hdon/src/git/dlangui/examples/example1/.dub/build/application-debug-linux.posix-x86_64-gdc-2FC0161B42BAC2CFFE5008D87F1EA79C/../res/mdpi/ does not exist.
2014-08-11 12:05:21.603 D DrawableCache: path /mnt/oih/hdon/src/git/dlangui/examples/example1/.dub/build/application-debug-linux.posix-x86_64-gdc-2FC0161B42BAC2CFFE5008D87F1EA79C/../../res/mdpi/ does not exist.
2014-08-11 12:05:21.603 D DrawableCache.clear()
Program received signal SIGSEGV, Segmentation fault.
_d_arraysetlengthT (ti=..., newlength=0, p=0x5ce600 <.8861+32>) at ../../../../gcc-4.9.0/libphobos/libdruntime/rt/lifetime.d:1398
1398 *p = newdata[0 .. newlength];
(gdb) print p
$1 = (struct void[] *) 0x5ce600 <.8861+32>
(gdb) bt
#0 _d_arraysetlengthT (ti=..., newlength=0, p=0x5ce600 <.8861+32>) at ../../../../gcc-4.9.0/libphobos/libdruntime/rt/lifetime.d:1398
#1 0x00000000004099f5 in dlangui.core.i18n.UIStringTranslator.findTranslationsDir() (this=..., dirs=...) at src/dlangui/core/i18n.d:112
#2 0x0000000000435329 in dlangui.platforms.common.platform.Platform.resourceDirs() (this=..., dirs=...) at src/dlangui/platforms/common/platform.d:651
#3 0x0000000000479b90 in UIAppMain (args=...) at examples/example1/src/main.d:181
#4 0x000000000043949e in dlangui.platforms.sdl.sdlapp.sdlmain() (args=...) at src/dlangui/platforms/sdl/sdlapp.d:1067
#5 0x000000000043929f in D main (args=...) at src/dlangui/platforms/sdl/sdlapp.d:1018
#6 0x000000000051681f in __lambda1 (this=0x7fffffffe060) at ../../../../gcc-4.9.0/libphobos/libdruntime/rt/dmain2.d:422
#7 0x0000000000516cef in rt.dmain2._d_run_main() (this=this@entry=0x7fffffffe060, dg=...) at ../../../../gcc-4.9.0/libphobos/libdruntime/rt/dmain2.d:397
#8 0x0000000000516f39 in runAll (this=0x7fffffffe060) at ../../../../gcc-4.9.0/libphobos/libdruntime/rt/dmain2.d:422
#9 0x0000000000516cef in rt.dmain2._d_run_main() (this=this@entry=0x7fffffffe060, dg=...) at ../../../../gcc-4.9.0/libphobos/libdruntime/rt/dmain2.d:397
#10 0x0000000000516e66 in _d_run_main (argc=1, argv=0x7fffffffe1c8, mainFunc=<optimized out>) at ../../../../gcc-4.9.0/libphobos/libdruntime/rt/dmain2.d:430
#11 0x00000000004353a7 in main (argc=1, argv=0x7fffffffe1c8) at /mnt/oih/opt/gdc-4.9/include/d/4.9.0/__entrypoint.di:59
I started with these instructions:
git clone https://github.com/buggins/dlangui.git
cd dlangui
dub run dlangui:example1
I'm using GDC 4.9.0 (GDC has a very old DMD compiler front-end) and I'm guessing that's why the compiler didn't like the pragma(lib)
, so I removed them.
donny@donny-desktop:/mnt/oih/hdon/src/git/dlangui$ git diff
diff --git a/src/dlangui/platforms/common/platform.d b/src/dlangui/platforms/common/platform.d
index c82874a..9be1aa1 100644
--- a/src/dlangui/platforms/common/platform.d
+++ b/src/dlangui/platforms/common/platform.d
@@ -674,13 +674,13 @@ version (USE_OPENGL) {
mixin template APP_ENTRY_POINT() {
version (linux) {
//pragma(lib, "png");
- pragma(lib, "xcb");
- pragma(lib, "xcb-shm");
- pragma(lib, "xcb-image");
- pragma(lib, "xcb-keysyms");
- pragma(lib, "X11-xcb");
- pragma(lib, "X11");
- pragma(lib, "dl");
+ //pragma(lib, "xcb");
+ //pragma(lib, "xcb-shm");
+ //pragma(lib, "xcb-image");
+ //pragma(lib, "xcb-keysyms");
+ //pragma(lib, "X11-xcb");
+ //pragma(lib, "X11");
+ //pragma(lib, "dl");
}
/// workaround for link issue when WinMain is located in library
Also due to another DMD front-end bug that hasn't made its way into GDC yet, I had to change the command to compile and link the example program, removing the lib/libdlanguilib.a
linker argument, resulting in this command:
gdc -o examples/example1/.dub/build/application-debug-linux.posix-x86_64-gdc-2FC0161B42BAC2CFFE5008D87F1EA79C/example1 -fdebug -g -Werror -Wall -fversion=USE_OPENGL -fversion=USE_SDL -fversion=Unicode -fversion=Have_dlangui_example1 -fversion=Have_derelict_ft -fversion=Have_derelict_util -fversion=Have_derelict_sdl2 -fversion=Have_derelict_fi -fversion=Have_dlangui_dlanguilib -fversion=Have_derelict_gl3 -Iexamples/example1/src/ -I../../../../../../home/donny/.dub/packages/derelict-ft-master/source/ -I../../../../../../home/donny/.dub/packages/derelict-util-1.0.2/source/ -I../../../../../../home/donny/.dub/packages/derelict-sdl2-master/source/ -I../../../../../../home/donny/.dub/packages/derelict-fi-master/source/ -Isrc/ -I../../../../../../home/donny/.dub/packages/derelict-gl3-master/source/ src/api.d src/dlangui/all.d src/dlangui/core/collections.d src/dlangui/core/events.d src/dlangui/core/i18n.d src/dlangui/core/linestream.d src/dlangui/core/logger.d src/dlangui/core/signals.d src/dlangui/core/stdaction.d src/dlangui/core/types.d src/dlangui/dialogs/dialog.d src/dlangui/dialogs/filedlg.d src/dlangui/graphics/drawbuf.d src/dlangui/graphics/fonts.d src/dlangui/graphics/ftfonts.d src/dlangui/graphics/gldrawbuf.d src/dlangui/graphics/glsupport.d src/dlangui/graphics/images.d src/dlangui/graphics/resources.d src/dlangui/platforms/common/platform.d src/dlangui/platforms/sdl/sdlapp.d src/dlangui/platforms/windows/win32drawbuf.d src/dlangui/platforms/windows/win32fonts.d src/dlangui/platforms/windows/winapp.d src/dlangui/platforms/x11/x11app.d src/dlangui/widgets/controls.d src/dlangui/widgets/editors.d src/dlangui/widgets/grid.d src/dlangui/widgets/layouts.d src/dlangui/widgets/lists.d src/dlangui/widgets/menu.d src/dlangui/widgets/popup.d src/dlangui/widgets/styles.d src/dlangui/widgets/tabs.d src/dlangui/widgets/widget.d src/index.d src/screenshots.d examples/example1/src/main.d ../../../../../../home/donny/.dub/packages/derelict-ft-master/lib/libDerelictFT.a ../../../../../../home/donny/.dub/packages/derelict-sdl2-master/lib/libDerelictSDL2.a ../../../../../../home/donny/.dub/packages/derelict-fi-master/lib/libDerelictFI.a ../../../../../../home/donny/.dub/packages/derelict-gl3-master/lib/libDerelictGL3.a ../../../../../../home/donny/.dub/packages/derelict-util-1.0.2/lib/libDerelictUtil.a -ldl
So, I hope I'm not wasting my time here filing this issue. Maybe the problem goes away with a more recent DMD?
Ability to show marks for lines in editors:
E.g.
Orange - modified unsaved lines
Green - modified saved lines
To reproduce, use DLangIDE
Open project, click on some file in project to open editor.
Actual result: White background w/o text is shown, only line numbers are visible. Text appears only after clicking on editor.
Expected result: Text of opened file is shown in editor.
Having docs hosted on GitHub Pages would make this a much easier library to work with.
We need convenient way to deal with various settings
When I try to run your example program, I get a context creation error.
Press left mouse button over scrollbar thumb, then move mouse outside a window. Unpress button and return mouse cursor on thumb - tracking continues!
Probable solution: after mouse button pressed, capture mouse and track how far it is from scrollbar. When distance is far enough (say, 50 px), release capturing and return thumb to original place.
So I think it should act in reverse?
tabs.d, ~line 112:
if (_enableCloseButton) {
_closeButton.visibility = Visibility.Gone;
} else {
_closeButton.visibility = Visibility.Visible;
}
add ! to the if statement and it should act how it probably was intented.
Enabled, Visible, Checked states of Action-related controls must be able to update easy.
src/dlangui/core/linestream.d(141): Error: cannot implicitly convert expression (encode(d, s[cast(ulong)i])) of type ulong to int
src/dlangui/core/linestream.d(149): Error: cannot implicitly convert expression (encode(d, s[cast(ulong)i])) of type ulong to int
src/dlangui/core/linestream.d(159): Error: cannot implicitly convert expression (encode(d, s[cast(ulong)i])) of type ulong to int
src/dlangui/widgets/editors.d(489): Error: function dlangui.widgets.editors.EditableContent.updateTokenProps (int startLine, int endLine) is not callable using argument types (int, ulong)
src/dlangui/widgets/editors.d(537): Error: function dlangui.widgets.editors.EditableContent.lineEnd (int lineIndex) is not callable using argument types (ulong)
src/dlangui/widgets/editors.d(578): Error: function dlangui.widgets.editors.EditableContent.updateTokenProps (int startLine, int endLine) is not callable using argument types (int, ulong)
src/dlangui/widgets/editors.d(583): Error: function dlangui.widgets.editors.EditableContent.updateTokenProps (int startLine, int endLine) is not callable using argument types (int, ulong)
FAIL .dub/build/library-release-posix.osx-x86_64-dmd_2066-5B9F27E2A8B1C082EF974C9AAA016B0E/ dlanguilib staticLibrary
Error executing command run: dmd failed with exit code 1.
Currently LinearLayout shrinks WRAP_CONTENT items as well as FILL_PARENT ones.
It should avoid this if possible.
Unable to build dlangui on Ubuntu 13.10:
Running dmd...
../../../.dub/packages/dlangui-master/src/dlangui/platforms/x11/x11app.d(6): Error: module xcb is in file 'std/c/linux/X11/xcb/xcb.d' which cannot be read
import path[0] = ../../../.dub/packages/dlangui-master/src
import path[1] = ../../../.dub/packages/derelict-ft-master/source
import path[2] = ../../../.dub/packages/derelict-util-1.0.0/source
import path[3] = ../../../.dub/packages/derelict-fi-master/source
import path[4] = ../../../.dub/packages/derelict-gl3-master/source
import path[5] = /usr/include/dmd/phobos
import path[6] = /usr/include/dmd/druntime/import
FAIL ../../../.dub/packages/dlangui-master/.dub/build/library-debug-linux.posix-x86_64-dmd-273FC106E1D2945A61EEC07B540BB516 dlanguilib staticLibrary
Error executing command run: DMD compile run failed with exit code 1
I think dub.json is outdated. Also it would be great if correct importPaths will be added.
Resizer widget implementation is incomplete
Use dmd 2.066.1.
The error message like this:
Building dlib ~master configuration "library", build type release.
Running dmd...
AppData\Roaming\dub\packages\dlib-master\dlib\filesystem\windows\directory.d(77)
: Error: std.string.wcslen at E:\DeveloperTools\dmd2\dmd2\windows\bin....\src\phobos\std\string.d(42) conflicts with core.stdc.wchar_.wcslen at E:\DeveloperTools\dmd2\dmd2\windows\bin....\src\druntime\import\core\stdc\wchar_.d(102)FAIL AppData\Roaming\dub\packages\dlib-master.dub\build\library-release-windows-x86-dmd_2066-1B722BF4E0DEE69FE2B7DDC21C62E24B\ dlib staticLibrary
Error executing command run: dmd failed with exit code 1.
Building fails with:
/usr/include/dmd/phobos/std/c/linux/X11/xcb/image.d(14): Error: undefined identifier xcb_image_format_t
/usr/include/dmd/phobos/std/c/linux/X11/xcb/image.d(20): Error: undefined identifier xcb_image_order_t
/usr/include/dmd/phobos/std/c/linux/X11/xcb/image.d(21): Error: undefined identifier xcb_image_order_t
/usr/include/dmd/phobos/std/c/linux/X11/xcb/image.d(41): Error: undefined identifier xcb_image_format_t
/usr/include/dmd/phobos/std/c/linux/X11/xcb/image.d(41): Error: undefined identifier xcb_image_format_t
/usr/include/dmd/phobos/std/c/linux/X11/xcb/image.d(50): Error: undefined identifier xcb_image_format_t
/usr/include/dmd/phobos/std/c/linux/X11/xcb/image.d(142): Error: undefined identifier xcb_image_format_t
/usr/include/dmd/phobos/std/c/linux/X11/xcb/image.d(196): Error: undefined identifier xcb_image_format_t
/usr/include/dmd/phobos/std/c/linux/X11/xcb/image.d(196): Error: undefined identifier xcb_image_order_t
/usr/include/dmd/phobos/std/c/linux/X11/xcb/image.d(196): Error: undefined identifier xcb_image_order_t
../dlangui-master/src/dlangui/platforms/x11/x11app.d(39): Error: undefined identifier 'Xlib'
../dlangui-master/src/dlangui/platforms/x11/x11app.d(39): Error: std.c.linux.X11.Xlib.Display is used as a type
../dlangui-master/src/dlangui/platforms/x11/x11app.d(42): Error: undefined identifier 'Xlib'
../dlangui-master/src/dlangui/platforms/x11/x11app.d(42): Error: std.c.linux.X11.Xlib.Display is used as a type
../dlangui-master/src/dlangui/platforms/x11/x11app.d(793): Error: undefined identifier 'Xlib'
../dlangui-master/src/dlangui/platforms/x11/x11app.d(793): Error: std.c.linux.X11.Xlib.Display is used as a type
FAIL ../dlangui-master/.dub/build/library-debug-linux.posix-x86_64-dmd-273FC106E1D2945A61EEC07B540BB516 dlanguilib staticLibrary
Error executing command run: DMD compile run failed with exit code 1
main dub.json changed(so change examples dependency as "dlangui": "*" ):
{
"name": "dlangui",
"description": "Cross platform GUI for D. Layouts, styles, themes, unicode, i18n, OpenGL, widget set.",
"homepage": "https://github.com/buggins/dlangui",
"license": "Boost",
"authors": ["Vadim Lopatin"],
"buildRequirements":[
"allowWarnings"
],
"targetName": "dlangui",
"targetPath": "lib",
"targetType": "staticLibrary",
"versions-posix": ["USE_SDL", "USE_OPENGL"],
"versions-windows": ["Unicode", "USE_FREETYPE"],
"versions": ["EmbedStandardResources"],
"copyFiles-windows": ["lib/libfreetype-6.dll", "lib/zlib1.dll"],
"sourcePaths": [
"3rdparty", "src"
],
"importPaths": [
"3rdparty", "src"
],
"stringImportPaths": [
"views",
"views/res",
"views/res/mdpi",
"views/res/i18n"
],
"dependencies": {
"derelict-gl3": ">=1.0.12",
"dlib": ">=0.4.1",
"derelict-ft": ">=1.0.0",
"derelict-sdl2": ">=1.9.1"
},
"-ddoxFilterArgs": ["--unittest-examples", "--min-protection=Protected", "--ex", "win32.", "--ex", "src.dlangui"],
"subPackages": [
"./examples/helloworld/",
"./examples/example1/",
"./examples/tetris/"
]
}
Toolbar controls are required for many apps.
Only single line is supported now.
Need to improve
By ctrl+/ selection text should be commented/uncommented with //
Hey,
Would it be possible to replay FreeType with another library which doesn't have a dependency on X11? X11 is not installed by default on Mac and is very messy to use. For example, FreeType requires it to be running to get the fonts (but it isn't used for rendering).
Sorry, I haven't managed to do any research into possible replacements yet.
Thanks!
../../.dub/packages/dlangui-master/src/dlangui/core/settings.d(1447): Warning: statement is not reachable
It happily compiles if you comment out that line, but maybe you have a reason for it being there.
Build win32 app with version=USE_OPENGL
Build and run example1
Choose Menu/Open
In new window (FileDialog), no content is visible
It should be possible to select multiple files in FileDialog
Try to input several text lines (10-20).
Memory consumption of application increases after each change.
Current signature is
static static dchar getReplacementChar(dchar code)
which is an error. Shouldn't it be
private static dchar getReplacementChar(dchar code)
or just
static dchar getReplacementChar(dchar code)
?
"alias object.clear" is depricated.
at resource.d:173 should patch as: return embedResources!(splitLines(import(resourceList)))();
Subpixel antialiasing needed for better text quality
By Ctrl+Y, current line should be removed
Implement fontconfig support for reading list of available fonts.
Trying to use dlangui as a dependency:
"dependencies": {
"dlangui" : "~master"
}
Got errors:
Conflicting dependency derelict-util: Conflicting versions: 1.0.0 vs. ~master
derelict-ft requires >=1.0.0
derelict-sdl2 requires ~master
There are conflicts in the dependency graph.
Conflicting dependency derelict-util: Conflicting versions: 1.0.0 vs. ~master
derelict-ft requires >=1.0.0
derelict-sdl2 requires ~master
The dependency graph could not be filled, there are conflicts.
Conflicting dependency derelict-util: Conflicting versions: 1.0.0 vs. ~master
derelict-ft requires >=1.0.0
derelict-sdl2 requires ~master
The following changes will be performed:
Conflict derelict-util >=1.0.0, userWide
-> issued by:
derelict-ft: >=1.0.0
derelict-sdl2: ~master
derelict-fi: >=1.0.0
derelict-gl3: >=1.0.0
Error executing command build: Aborting package retrieval due to errors.
Combobox with list of file types should be added. Only files matching current filter must be shown.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.