www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Blog Post #0036 - File Dialog - Open a Single File

reply Ron Tarrant <rontarrant gmail.com> writes:
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
May 17 2019
parent reply Alex <AJ gmail.com> writes:
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.
May 17 2019
parent reply Ron Tarrant <rontarrant gmail.com> writes:
On Friday, 17 May 2019 at 11:12:41 UTC, Alex wrote:

<stuff clipped>
 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...
<more stuff clipped> 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.
May 17 2019
parent reply drug <drug2004 bk.ru> writes:
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.
May 17 2019
parent Ron Tarrant <rontarrant gmail.com> writes:
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.
May 17 2019