Re: Blog Post #0036 - File Dialog - Open a Single File

2019-05-17 Thread Ron Tarrant via Digitalmars-d-learn

On Friday, 17 May 2019 at 12:14:51 UTC, drug wrote:
TreeView widget needs to be implemented. So still I have no a 
solution that satisfy me completely.


Yeah, they're confusing, for sure. If you don't need anything 
elaborate, you might have a look at this: 
https://github.com/rontarrant/gtkDcoding/blob/master/017_list_tree/list_tree_017_08_columns.d


Maybe it'll help.


Re: Blog Post #0036 - File Dialog - Open a Single File

2019-05-17 Thread drug via Digitalmars-d-learn

On 17.05.2019 14:39, Ron Tarrant wrote:

On Friday, 17 May 2019 at 11:12:41 UTC, Alex wrote:
ListStore and TreeStore and how they interact with TreeView and ComboBox 
via TreeIter, TreeSelection, etc., etc. That's taking most of my time ATM.

That would be really nice!
My use case is a large list of TreeView and I failed to make it using 
Gtk or Qt and start to use immediate mode GUI like dimgui then dear 
imgui and now nuklear. Also I ported nanogui to D and add a large list 
widget with different height of items (about 400K) but TreeView widget 
needs to be implemented. So still I have no a solution that satisfy me 
completely.




Re: Blog Post #0036 - File Dialog - Open a Single File

2019-05-17 Thread Ron Tarrant via Digitalmars-d-learn

On Friday, 17 May 2019 at 11:12:41 UTC, Alex wrote:


movable icons that can be interacted with using the icon by 
dragging them around in a DrawingArea.


So if you need ideas to for another tutorial...



Yup, this type of thing is on my todo list, but my lead time is 
around six weeks ATM, so it may take a while before it shows up 
on the blog.


Some of the ideas I have for DrawingArea tutorials:
- drag-n-drop (as you describe),
- nodes-n-noodles (as seen here: 
https://codepen.io/osublake/pen/4c3752574267b3a986cb8eee7ccb8c81), and (of course)

- drawing with the mouse.

My plan is to be as thorough as possible with coverage of each 
widget and to do them in more-or-less easiest to hardest order. 
Once the series on Dialog windows is finished, there's a whole 
raft of stuff on ListStore and TreeStore and how they interact 
with TreeView and ComboBox via TreeIter, TreeSelection, etc., 
etc. That's taking most of my time ATM.


Thanks for the comment, Alex. Have a great day.


Re: Blog Post #0036 - File Dialog - Open a Single File

2019-05-17 Thread Alex via Digitalmars-d-learn

On Friday, 17 May 2019 at 09:24:59 UTC, Ron Tarrant wrote:
The second post this week continues the series on Dialogs. This 
one is about opening files and can be found here: 
http://gtkdcoding.com/2019/05/17/0036-file-open-dialogs.html


So, I'm using gtkD and eventually I'll have the need to use 
movable icons that can be interacted with using the icon by 
dragging them around in a DrawingArea.


So if you need ideas to for another tutorial that would be 
helpful to me. It's probably not too hard but I've not messed 
with those things yet and maybe you'll find an easier way to deal 
with it.


The idea would be to create DrawingArea and then display the 
"icons" and have mouse interaction. I'm not sure if using custom 
drawing or something built in is best. Custom drawing is probably 
what I'll do since I know more about that then gtk.


Blog Post #0036 - File Dialog - Open a Single File

2019-05-17 Thread Ron Tarrant via Digitalmars-d-learn
The second post this week continues the series on Dialogs. This 
one is about opening files and can be found here: 
http://gtkdcoding.com/2019/05/17/0036-file-open-dialogs.html