00001 #ifndef SERVER_ACTIVATE_H 00002 #define SERVER_ACTIVATE_H 00003 00004 /* 00005 サーバの起動 00006 Satofumi KAMIMURA 00007 $Id$ 00008 */ 00009 00010 #include "resourceInitialize.h" 00011 #include "checkBoxComponent.h" 00012 #include "serverManage.h" 00013 00014 00015 class ServerActivate : public ResourceInitialize { 00016 ServerManage* server; 00017 unsigned short port; 00018 00019 DrawSurface* title; 00020 DrawSurface* host_text; 00021 DrawSurface* ip_text; 00022 DrawSurface* port_text; 00023 DrawSurface* meta_text; 00024 DrawSurface* activate_normal; 00025 DrawSurface* activate_focused; 00026 DrawSurface* cancel_normal; 00027 DrawSurface* cancel_focused; 00028 FillSurface* port_fill; 00029 00030 TextInputComponent* server_port; 00031 CheckBoxComponent* meta_check; 00032 ButtonComponent* activate_btn; 00033 ButtonComponent* cancel_btn; 00034 MenuComponent* menu; 00035 00036 public: 00037 ServerActivate(void); 00038 ~ServerActivate(void); 00039 int Initialize(int argc, char *argv[]); 00040 int MainLoop(void); 00041 void deleteObject(void); 00042 void recreate(void); 00043 }; 00044 00045 #endif /* !SERVER_ACTIVATE_H */ 00046