/* ==================== pgpanel_misnconf.h ==================== version 0.0.1 ==================== A PG_Panel sub-widget. Lets the user configure the active perameters of a mission in a pod's mission queue. CHANGELOG: ---------------------- 0.0.1 - August 20, 2003 - first release. supports IDLE, MOVE, PATROL, and HALT missions. TO-DO & EXPANSION LIST ---------------------- - change pursue to checkbox =============================================================== */ #ifndef PG_PANEL_MISNCONF_H #define PG_PANEL_MISNCONF_H #include "paragui.h" #include "pgeventobject.h" #include "pglabel.h" #include "pgdropdown.h" #include "pgscrollbar.h" #include "pgbutton.h" #include "../../pods/pod.h" #include "../../core/pointerhub.h" /** */ class PG_Panel_MisnConf: public PG_Widget, public PG_EventObject, public PointerHub { public: PG_Panel_MisnConf(PG_Widget* parent, const PG_Rect &r); virtual ~PG_Panel_MisnConf(); void ReceiveTileClick(int x, int y); void Refresh(Pod* p, int slot=0); //events PARAGUI_CALLBACK(change_target); PARAGUI_CALLBACK(change_pursue); PARAGUI_CALLBACK(slide_radius); PARAGUI_CALLBACK(slide_timeout); private: bool waiting_change_target; Pod* pod; // target pod to receive orders int slot; // mission slot PG_Label* misn_name_out; PG_Label* target_tile_out; PG_Button* set_target; PG_Label* radius_lab; PG_ScrollBar* radius; PG_Label* radius_out; PG_Label* pursue_lab; PG_DropDown* pursue; PG_Label* timeout_lab; PG_ScrollBar* timeout; PG_Label* timeout_out; PG_ScrollBar* fart1; PG_ScrollBar* fart2; PG_ScrollBar* fart3; PG_ScrollBar* fart4; PG_ScrollBar* fart5; }; #endif