FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TreeviewModel

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
keinfarbton



Joined: 03 Dec 2005
Posts: 224
Location: Stuttgart - Germany

PostPosted: Sun Jun 18, 2006 4:44 pm    Post subject: TreeviewModel Reply with quote

Did anybody had success with implementing an own TreeModel?

I want to display data from a database in a TreeView (as list). because I don't want to load all data into memory, I want to use a custum model which loads only the needed records and forgets about the old.
Back to top
View user's profile Send private message
bernd



Joined: 12 May 2006
Posts: 3

PostPosted: Wed Jun 21, 2006 12:29 am    Post subject: Reply with quote

Hi,
we use our own Model in GTK, we use a very good docu :
http://scentric.net/tutorial/treeview-tutorial.html.
With this help it is very easy.
MfG bernd
Back to top
View user's profile Send private message
keinfarbton



Joined: 03 Dec 2005
Posts: 224
Location: Stuttgart - Germany

PostPosted: Thu Jun 22, 2006 1:48 am    Post subject: Reply with quote

I don't understand how to do it in D with DUI.
Can you share some source?
Back to top
View user's profile Send private message
Ant



Joined: 06 Mar 2004
Posts: 306
Location: Canada

PostPosted: Sat Jun 24, 2006 8:45 pm    Post subject: Reply with quote

tionex wrote:
I don't understand how to do it in D with DUI.
Can you share some source?

I know have to address this sooner or later, but I guess it's going to be later. Sad
I know this is important for DUI.
I still don't know what will be the best implementation, well for now any would be the best, I don't have any idea on how to do it on DUI.
As it is now I see the data trippled: database, D structs and Gtk structs.
For now this works for me as I have only small simple sets of data to show on a TreeView.

bernd, do you have other resources the one you posted gives me a 404 error.

Ant

PS summer time is always a slow time for DUI as I go outside instead of coding... You don't want me to learn how to sky Smile
Back to top
View user's profile Send private message
keinfarbton



Joined: 03 Dec 2005
Posts: 224
Location: Stuttgart - Germany

PostPosted: Sun Jun 25, 2006 3:46 am    Post subject: Reply with quote

Quote:
bernd, do you have other resources the one you posted gives me a 404 error.

Try it without the dot.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group