00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef MATERIAL_FLTK_MENU_H__
00021 #define MATERIAL_FLTK_MENU_H__
00022
00023 #include "VMDFltkMenu.h"
00024
00025 class Fl_Value_Slider;
00026 class Fl_Hold_Browser;
00027 class Fl_Button;
00028 class Fl_Input;
00029
00032 class MaterialFltkMenu: public VMDFltkMenu {
00033 private:
00034 int curmat;
00035
00036 void fill_material_browser();
00037 void set_sliders();
00038
00039 void init(void);
00040
00041 Fl_Value_Slider *ambient;
00042 Fl_Value_Slider *specular;
00043 Fl_Value_Slider *diffuse;
00044 Fl_Value_Slider *shininess;
00045 Fl_Value_Slider *opacity;
00046 Fl_Value_Slider *outline;
00047 Fl_Value_Slider *outlinewidth;
00048 Fl_Hold_Browser *browser;
00049 Fl_Check_Button *transmode;
00050 Fl_Input *nameinput;
00051 Fl_Button *deletebutton;
00052 Fl_Button *defaultbutton;
00053
00054 private:
00055 static void slider_cb(Fl_Widget *w, void *v);
00056 static void createnew_cb(Fl_Widget *w, void *v);
00057 static void delete_cb(Fl_Widget *w, void *v);
00058 static void browser_cb(Fl_Widget *w, void *v);
00059 static void name_cb(Fl_Widget *w, void *v);
00060 static void default_cb(Fl_Widget *w, void *v);
00061
00062 protected:
00063 int act_on_command(int, Command *);
00064
00065 public:
00066 MaterialFltkMenu(VMDApp *);
00067 };
00068
00069 #endif