Skip to content

Instantly share code, notes, and snippets.

@zedtux
Last active January 3, 2016 01:19
Show Gist options
  • Select an option

  • Save zedtux/8388658 to your computer and use it in GitHub Desktop.

Select an option

Save zedtux/8388658 to your computer and use it in GitHub Desktop.
C++: Gtk::TreeView facile avec GTKmm - wmain.h
#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