Last active
January 3, 2016 01:19
-
-
Save zedtux/8388658 to your computer and use it in GitHub Desktop.
C++: Gtk::TreeView facile avec GTKmm - wmain.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef WMAIN_H | |
| #define WMAIN_H | |
| #include | |
| #include | |
| class DerivedWMain : public Gtk::Window | |
| { | |
| public: | |
| DerivedWMain(BaseObjectType* cobject, const Glib::RefPtr& refGlade); | |
| virtual ~DerivedWMain(); | |
| protected: | |
| virtual void gtkButtonClose_Click(); | |
| //~------------------~// | |
| //~ Button ~// | |
| //~------------------~// | |
| Gtk::Button * gtkButtonClose; | |
| //~------------------~// | |
| //~ TreeView ~// | |
| //~------------------~// | |
| Gtk::TreeView * gtkTreeViewList; | |
| class ModelColumns : public Gtk::TreeModel::ColumnRecord | |
| { | |
| public: | |
| ModelColumns() | |
| { | |
| add(columnId); | |
| add(columnName); | |
| } | |
| Gtk::TreeModelColumn columnId; | |
| Gtk::TreeModelColumn columnName; | |
| }; | |
| ModelColumns modelColumns; | |
| Glib::RefPtr refTreeStore; | |
| private: | |
| Glib::RefPtr refXmlGlade; | |
| }; | |
| #endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment