00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 #ifndef _FL_MDI_BAR_H_
00023 #define _FL_MDI_BAR_H_
00024 
00025 #include "Fl_Group.h"
00026 #include "Fl_MDI_Window.h"
00027 
00029 class Fl_MDI_Bar : public Fl_Group
00030 {
00031 public:
00032     static Fl_Named_Style *default_style;
00033 
00035     Fl_MDI_Bar(int x, int y, int w, int h, const char *l=0);
00036 
00038     Fl_MDI_Bar(const char* l = 0,int layout_size=30,Fl_Align layout_al=FL_ALIGN_TOP,int label_w=100);
00039 
00041     virtual ~Fl_MDI_Bar();
00042 
00043     virtual void layout();
00044 
00045     int spacing() { return spacing_; }
00046     void spacing(int val) { spacing_ = val; }
00047 
00048     int max_button_width() { return max_button_width_; }
00049     void max_button_width(int w) { max_button_width_ = w; }
00050 
00051     Fl_Widget *find_task(Fl_MDI_Window *win);
00052 
00053     
00054     void add_task(Fl_MDI_Window *win);
00055     void remove_task(Fl_MDI_Window *win);
00056     void update_task(Fl_MDI_Window *win);
00057     void update_tasks();
00058 
00059 private:
00060     int max_button_width_;
00061     int spacing_;
00062 };
00063 
00064 #endif