X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpanel.h;h=756108a5cafce149f688906dcb196dcd4c5e5ef4;hb=cfb830ca263defc307f9cfac74fb6771f6b7bfc6;hp=ebe765ddcf5f541c8d661231b1957536999978a8;hpb=ae62c05fe97d341c4f219656cdce7aadf321991b;p=libs%2Fgltk.git diff --git a/source/panel.h b/source/panel.h index ebe765d..756108a 100644 --- a/source/panel.h +++ b/source/panel.h @@ -26,7 +26,10 @@ public: public: Loader(Panel &, WidgetMap &); + private: + template + void add_child_type(const std::string &); Layout &get_layout(); Widget &get_last_widget(); template @@ -39,7 +42,8 @@ public: void gravity(int, int); void grid(unsigned); void layout(); - void panel(const std::string &); + template + void unnamed_child(); }; private: @@ -54,6 +58,7 @@ private: }; protected: + std::vector nav_order; Layout *layout; Panel(const Panel &); @@ -73,8 +78,10 @@ protected: public: virtual bool navigate(Navigation); - protected: + Widget *find_next_child(int, int, int, int, int) const; + static int compute_delta(int, int, int, int, int); + virtual void on_geometry_change(); virtual void on_child_added(Widget &); virtual void on_child_removed(Widget &);