#include #include #include #include #include #include using namespace Xfc; class DemoTreeView : public Gtk::TreeView { Pointer model; protected: void on_row_activated(const Gtk::TreePath& path, Gtk::TreeViewColumn& column); void on_demo_destroy(Gtk::TreePath *path); void on_selection_changed(); public: DemoTreeView(); ~DemoTreeView(); }; class DemoTextView : public Gtk::ScrolledWindow { public: DemoTextView(Pointer &buffer, bool is_source); ~DemoTextView(); }; class DemoWindow : public Gtk::Window { Gtk::TreeView *tree_view; static Pointer info_buffer; static Pointer header_buffer; static Pointer source_buffer; static char *current_file; void set_default_icon(); static void fontify(Pointer& buffer); public: DemoWindow(); ~DemoWindow(); static String find_file(const char *base, G::Error *error = 0); static void load_file(const char *filename); };