change add model to model editor
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "add_model.h"
|
||||
|
||||
Fl_Double_Window *add_mod_win=(Fl_Double_Window *)0;
|
||||
Fl_Double_Window *edit_mod_win=(Fl_Double_Window *)0;
|
||||
|
||||
Fl_Group *mod_type_group=(Fl_Group *)0;
|
||||
|
||||
@@ -30,14 +30,18 @@ Fl_Round_Button *bot_val_btn=(Fl_Round_Button *)0;
|
||||
|
||||
Fl_Input *sig_mod_para_input=(Fl_Input *)0;
|
||||
|
||||
Fl_Return_Button *can_add_btn=(Fl_Return_Button *)0;
|
||||
Fl_Input *mod_val_input=(Fl_Input *)0;
|
||||
|
||||
Fl_Button *sig_add_btn=(Fl_Button *)0;
|
||||
|
||||
Fl_Input *mod_val_input=(Fl_Input *)0;
|
||||
Fl_Button *sig_replace_btn=(Fl_Button *)0;
|
||||
|
||||
Fl_Button *sig_delete_btn=(Fl_Button *)0;
|
||||
|
||||
Fl_Return_Button *can_add_btn=(Fl_Return_Button *)0;
|
||||
|
||||
void cb_add_mod_btn(Fl_Button*, void*) {
|
||||
{ add_mod_win = new Fl_Double_Window(315, 300, "Add model (gm3d)");
|
||||
{ edit_mod_win = new Fl_Double_Window(314, 320, "Model editor (gm3d)");
|
||||
{ mod_type_group = new Fl_Group(20, 25, 250, 53, "Model Type :");
|
||||
mod_type_group->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
||||
{ reg_bok_rbtn = new Fl_Round_Button(20, 25, 110, 28, "Regular Block");
|
||||
@@ -46,7 +50,7 @@ void cb_add_mod_btn(Fl_Button*, void*) {
|
||||
{ til_bok_rbtn = new Fl_Round_Button(160, 25, 100, 28, "Tilted Block");
|
||||
til_bok_rbtn->down_box(FL_ROUND_DOWN_BOX);
|
||||
} // Fl_Round_Button* til_bok_rbtn
|
||||
{ sph_rbtn = new Fl_Round_Button(20, 50, 70, 28, "Sphere");
|
||||
{ sph_rbtn = new Fl_Round_Button(20, 50, 70, 28, "Ellipsoid");
|
||||
sph_rbtn->down_box(FL_ROUND_DOWN_BOX);
|
||||
} // Fl_Round_Button* sph_rbtn
|
||||
{ int_face_rbtn = new Fl_Round_Button(160, 50, 80, 28, "Interface");
|
||||
@@ -67,13 +71,13 @@ void cb_add_mod_btn(Fl_Button*, void*) {
|
||||
} // Fl_Round_Button* era_val_rbtn
|
||||
val_type_group->end();
|
||||
} // Fl_Group* val_type_group
|
||||
{ agn_part_group = new Fl_Group(20, 150, 160, 28, "Assgin Part :");
|
||||
{ agn_part_group = new Fl_Group(20, 150, 160, 28, "Assign Part :");
|
||||
agn_part_group->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
||||
{ top_val_btn = new Fl_Round_Button(20, 150, 50, 28, "Top");
|
||||
top_val_btn->down_box(FL_ROUND_DOWN_BOX);
|
||||
top_val_btn->deactivate();
|
||||
} // Fl_Round_Button* top_val_btn
|
||||
{ bot_val_btn = new Fl_Round_Button(110, 150, 70, 28, "Bottom");
|
||||
{ bot_val_btn = new Fl_Round_Button(90, 150, 70, 28, "Bottom");
|
||||
bot_val_btn->down_box(FL_ROUND_DOWN_BOX);
|
||||
bot_val_btn->deactivate();
|
||||
} // Fl_Round_Button* bot_val_btn
|
||||
@@ -82,13 +86,19 @@ void cb_add_mod_btn(Fl_Button*, void*) {
|
||||
{ sig_mod_para_input = new Fl_Input(20, 200, 275, 28, "Model Parameter :");
|
||||
sig_mod_para_input->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
||||
} // Fl_Input* sig_mod_para_input
|
||||
{ can_add_btn = new Fl_Return_Button(210, 255, 85, 28, "Cancel");
|
||||
} // Fl_Return_Button* can_add_btn
|
||||
{ sig_add_btn = new Fl_Button(140, 255, 60, 28, "Add");
|
||||
} // Fl_Button* sig_add_btn
|
||||
{ mod_val_input = new Fl_Input(20, 255, 110, 28, "Model Value :");
|
||||
{ mod_val_input = new Fl_Input(180, 150, 115, 28, "Model Value :");
|
||||
mod_val_input->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
||||
} // Fl_Input* mod_val_input
|
||||
add_mod_win->end();
|
||||
} // Fl_Double_Window* add_mod_win
|
||||
{ sig_add_btn = new Fl_Button(19, 240, 80, 28, "Add");
|
||||
} // Fl_Button* sig_add_btn
|
||||
{ sig_replace_btn = new Fl_Button(118, 240, 80, 28, "Replace");
|
||||
sig_replace_btn->deactivate();
|
||||
} // Fl_Button* sig_replace_btn
|
||||
{ sig_delete_btn = new Fl_Button(215, 240, 80, 28, "Remove");
|
||||
sig_delete_btn->deactivate();
|
||||
} // Fl_Button* sig_delete_btn
|
||||
{ can_add_btn = new Fl_Return_Button(215, 280, 80, 28, "Cancel");
|
||||
} // Fl_Return_Button* can_add_btn
|
||||
edit_mod_win->end();
|
||||
} // Fl_Double_Window* edit_mod_win
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user