Re: Using a ButtonBox instead of a Notebook?
- From: Bachsau <web bachsau name>
- To: "Lucky B.C" <lblackc13 gmail com>
- Cc: gtk-app-devel-list list <gtk-app-devel-list gnome org>
- Subject: Re: Using a ButtonBox instead of a Notebook?
- Date: Mon, 19 Mar 2018 13:00:32 +0100
I'm sorry, but I think I don't understand what you're trying to tell me,
as I think this is how I already do it.
I have a working Application managing a bunch of data represented by a
list of items with several attributes. These items are displayed to the
user by using a GtkTreeView backed by a GtkListStore, to which I append
those items.
Now I want to expand my application to manage not just one but several
bunches of those data, each in a different tab inside the same window.
As I understand it, the GtkTreeView widget is really just a display
element, taking all of its data from the GtkListStore. This is why I
thought I could just create and keep a separate GtkListStore in memory
for every bunch of data and assign them to the one GtkTreeView widget
whenever the user clicks a button.
Am 19.03.2018 um 05:39 schrieb Lucky B.C:
Hi, you're wrong about GtkTreeView did! Let's have more detail about
what a GtkTreeView
<https://developer.gnome.org/gtk3/stable/GtkTreeView.html> can do, here
we go:
1) GtkTreeView can use more one GtkTreeModel
<https://developer.gnome.org/gtk3/stable/GtkTreeModel.html>.
2) GtkTreeModel is implemented by GtkListStore
<https://developer.gnome.org/gtk3/stable/GtkListStore.html>,
GtkTreeModelFilter
<https://developer.gnome.org/gtk3/stable/GtkTreeModelFilter.html>,
GtkTreeModelSort
<https://developer.gnome.org/gtk3/stable/GtkTreeModelSort.html> and
GtkTreeStore <https://developer.gnome.org/gtk3/stable/GtkTreeStore.html>.
3) GtkList ... GtkTreeStore are what you need in the case.
On Mon, Mar 19, 2018 at 4:21 AM, Bachsau <web bachsau name
<mailto:web bachsau name>> wrote:
Hi, I'm currently developing an app that uses two panes in its main
window, each containing a "TreeView". Now it shall be capable of
showing the contents of several different files in tabs. But using a
"Notebook" would require me to have a distinct copy of the "Paned"
and "TreeView" widgets on every page of the Notebook. I don't really
like that and had the idea of using a "ButtonBox" with radio buttons
instead, which just swap the "ListStore"s displayed by the "TreeView"s.
What do you think of this idea and is there a way to make the radio
buttons look like default "Notebook" tabs?
Thanks in advance,
Bachsau
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org <mailto:gtk-app-devel-list gnome org>
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
<https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]