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
|
||||
}
|
||||
|
@@ -4,9 +4,9 @@ header_name {.h}
|
||||
code_name {.cxx}
|
||||
Function {cb_add_mod_btn(Fl_Button*, void*)} {open return_type void
|
||||
} {
|
||||
Fl_Window add_mod_win {
|
||||
label {Add model (gm3d)} open
|
||||
xywh {735 331 315 300} type Double visible
|
||||
Fl_Window edit_mod_win {
|
||||
label {Model editor (gm3d)} open selected
|
||||
xywh {889 252 314 320} type Double visible
|
||||
} {
|
||||
Fl_Group mod_type_group {
|
||||
label {Model Type :} open
|
||||
@@ -21,7 +21,7 @@ Function {cb_add_mod_btn(Fl_Button*, void*)} {open return_type void
|
||||
xywh {160 25 100 28} down_box ROUND_DOWN_BOX
|
||||
}
|
||||
Fl_Round_Button sph_rbtn {
|
||||
label Sphere
|
||||
label Ellipsoid
|
||||
xywh {20 50 70 28} down_box ROUND_DOWN_BOX
|
||||
}
|
||||
Fl_Round_Button int_face_rbtn {
|
||||
@@ -47,7 +47,7 @@ Function {cb_add_mod_btn(Fl_Button*, void*)} {open return_type void
|
||||
}
|
||||
}
|
||||
Fl_Group agn_part_group {
|
||||
label {Assgin Part :} open
|
||||
label {Assign Part :} open
|
||||
xywh {20 150 160 28} align 5
|
||||
} {
|
||||
Fl_Round_Button top_val_btn {
|
||||
@@ -56,24 +56,32 @@ Function {cb_add_mod_btn(Fl_Button*, void*)} {open return_type void
|
||||
}
|
||||
Fl_Round_Button bot_val_btn {
|
||||
label Bottom
|
||||
xywh {110 150 70 28} down_box ROUND_DOWN_BOX deactivate
|
||||
xywh {90 150 70 28} down_box ROUND_DOWN_BOX deactivate
|
||||
}
|
||||
}
|
||||
Fl_Input sig_mod_para_input {
|
||||
label {Model Parameter :}
|
||||
xywh {20 200 275 28} align 5
|
||||
}
|
||||
Fl_Return_Button can_add_btn {
|
||||
label Cancel
|
||||
xywh {210 255 85 28}
|
||||
Fl_Input mod_val_input {
|
||||
label {Model Value :}
|
||||
xywh {180 150 115 28} align 5
|
||||
}
|
||||
Fl_Button sig_add_btn {
|
||||
label Add
|
||||
xywh {140 255 60 28}
|
||||
xywh {19 240 80 28}
|
||||
}
|
||||
Fl_Input mod_val_input {
|
||||
label {Model Value :}
|
||||
xywh {20 255 110 28} align 5
|
||||
Fl_Button sig_replace_btn {
|
||||
label Replace
|
||||
xywh {118 240 80 28} deactivate
|
||||
}
|
||||
Fl_Button sig_delete_btn {
|
||||
label Remove
|
||||
xywh {215 240 80 28} deactivate
|
||||
}
|
||||
Fl_Return_Button can_add_btn {
|
||||
label Cancel
|
||||
xywh {215 280 80 28}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -4,7 +4,7 @@
|
||||
#define add_model_h
|
||||
#include <FL/Fl.H>
|
||||
#include <FL/Fl_Double_Window.H>
|
||||
extern Fl_Double_Window *add_mod_win;
|
||||
extern Fl_Double_Window *edit_mod_win;
|
||||
#include <FL/Fl_Group.H>
|
||||
extern Fl_Group *mod_type_group;
|
||||
#include <FL/Fl_Round_Button.H>
|
||||
@@ -21,10 +21,12 @@ extern Fl_Round_Button *top_val_btn;
|
||||
extern Fl_Round_Button *bot_val_btn;
|
||||
#include <FL/Fl_Input.H>
|
||||
extern Fl_Input *sig_mod_para_input;
|
||||
#include <FL/Fl_Return_Button.H>
|
||||
extern Fl_Return_Button *can_add_btn;
|
||||
extern Fl_Input *mod_val_input;
|
||||
#include <FL/Fl_Button.H>
|
||||
extern Fl_Button *sig_add_btn;
|
||||
extern Fl_Input *mod_val_input;
|
||||
extern Fl_Button *sig_replace_btn;
|
||||
extern Fl_Button *sig_delete_btn;
|
||||
#include <FL/Fl_Return_Button.H>
|
||||
extern Fl_Return_Button *can_add_btn;
|
||||
void cb_add_mod_btn(Fl_Button*, void*);
|
||||
#endif
|
||||
|
223
fluid_project/gm3d_gui2.cxx
Normal file
223
fluid_project/gm3d_gui2.cxx
Normal file
@@ -0,0 +1,223 @@
|
||||
// generated by Fast Light User Interface Designer (fluid) version 1.0305
|
||||
|
||||
#include "gm3d_gui2.h"
|
||||
|
||||
Fl_Double_Window *main_window=(Fl_Double_Window *)0;
|
||||
Fl_Tabs *main_tabs=(Fl_Tabs *)0;
|
||||
Fl_Group *model_tab=(Fl_Group *)0;
|
||||
Fl_Input *mesh_para_input=(Fl_Input *)0;
|
||||
Fl_Button *mesh_file_btn=(Fl_Button *)0;
|
||||
Fl_Button *mod_para_file_btn=(Fl_Button *)0;
|
||||
Fl_Input *mod_ele_input_build=(Fl_Input *)0;
|
||||
Fl_Button *build_mod_btn=(Fl_Button *)0;
|
||||
Fl_Output *mesh_para_output=(Fl_Output *)0;
|
||||
Fl_Button *edit_mod_btn=(Fl_Button *)0;
|
||||
Fl_Check_Button *rm_emp_bok_check=(Fl_Check_Button *)0;
|
||||
Fl_Browser *mod_para_brw=(Fl_Browser *)0;
|
||||
Fl_Button *mod_file_out_btn=(Fl_Button *)0;
|
||||
Fl_Output *mod_out_file_output=(Fl_Output *)0;
|
||||
Fl_Group *forward_tab=(Fl_Group *)0;
|
||||
Fl_Group *grav_group=(Fl_Group *)0;
|
||||
Fl_Check_Button *Vz_check=(Fl_Check_Button *)0;
|
||||
Fl_Check_Button *Vzx_check=(Fl_Check_Button *)0;
|
||||
Fl_Check_Button *Vzy_check=(Fl_Check_Button *)0;
|
||||
Fl_Check_Button *Vzz_check=(Fl_Check_Button *)0;
|
||||
Fl_Button *mod_file_btn=(Fl_Button *)0;
|
||||
Fl_Button *obs_file_btn=(Fl_Button *)0;
|
||||
Fl_Input *mod_file_input=(Fl_Input *)0;
|
||||
Fl_Output *mod_file_output=(Fl_Output *)0;
|
||||
Fl_Input *obs_file_input=(Fl_Input *)0;
|
||||
Fl_Output *obs_file_output=(Fl_Output *)0;
|
||||
Fl_Input *mod_ele_input=(Fl_Input *)0;
|
||||
Fl_Group *mag_group=(Fl_Group *)0;
|
||||
Fl_Check_Button *DeltaT_check=(Fl_Check_Button *)0;
|
||||
Fl_Check_Button *DeltaTx_check=(Fl_Check_Button *)0;
|
||||
Fl_Check_Button *DeltaTy_check=(Fl_Check_Button *)0;
|
||||
Fl_Check_Button *DeltaTz_check=(Fl_Check_Button *)0;
|
||||
Fl_Check_Button *Hax_check=(Fl_Check_Button *)0;
|
||||
Fl_Check_Button *Hay_check=(Fl_Check_Button *)0;
|
||||
Fl_Check_Button *Za_check=(Fl_Check_Button *)0;
|
||||
Fl_Input *mag_para_input=(Fl_Input *)0;
|
||||
Fl_Check_Button *mag_data_check=(Fl_Check_Button *)0;
|
||||
Fl_Button *cal_btn=(Fl_Button *)0;
|
||||
Fl_Input *noise_para_input=(Fl_Input *)0;
|
||||
Fl_Check_Button *noise_check=(Fl_Check_Button *)0;
|
||||
Fl_Input *res_file_input=(Fl_Input *)0;
|
||||
Fl_Button *res_file_btn=(Fl_Button *)0;
|
||||
Fl_Output *res_out_file_output=(Fl_Output *)0;
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
{ main_window = new Fl_Double_Window(500, 600, "gm3d");
|
||||
{ main_tabs = new Fl_Tabs(10, 10, 480, 580);
|
||||
{ model_tab = new Fl_Group(10, 40, 480, 550, "Build Model");
|
||||
{ mesh_para_input = new Fl_Input(40, 70, 300, 28, "Input Mesh Parameters :");
|
||||
mesh_para_input->callback((Fl_Callback*)cb_mesh_para_input);
|
||||
mesh_para_input->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
||||
mesh_para_input->tooltip("mesh parameters:\n<xmin>/<dx>/<xmax>/<ymin>/<dy>/<ymax>/<zmin>/<dz>/<zmax>");
|
||||
} // Fl_Input* mesh_para_input
|
||||
{ mesh_file_btn = new Fl_Button(360, 70, 100, 28, "Mesh File");
|
||||
mesh_file_btn->callback((Fl_Callback*)cb_mesh_file_btn);
|
||||
mesh_file_btn->tooltip("read mesh parameters from an input file.");
|
||||
} // Fl_Button* mesh_file_btn
|
||||
{ mod_para_file_btn = new Fl_Button(170, 160, 160, 28, "Add Model From File");
|
||||
mod_para_file_btn->callback((Fl_Callback*)cb_mod_para_file_btn);
|
||||
mod_para_file_btn->tooltip("read model parameters from an input file.");
|
||||
} // Fl_Button* mod_para_file_btn
|
||||
{ mod_ele_input_build = new Fl_Input(40, 445, 215, 28, "Input Model Element Data Name:");
|
||||
mod_ele_input_build->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
||||
mod_ele_input_build->tooltip("a string. e.g. my_model");
|
||||
} // Fl_Input* mod_ele_input_build
|
||||
{ build_mod_btn = new Fl_Button(40, 545, 420, 28, "Build Model !");
|
||||
build_mod_btn->callback((Fl_Callback*)cb_build_mod_btn);
|
||||
build_mod_btn->tooltip("callback a gm3d function to build the model.");
|
||||
} // Fl_Button* build_mod_btn
|
||||
{ mesh_para_output = new Fl_Output(40, 120, 300, 28, "Mesh Parameters :");
|
||||
mesh_para_output->value("Unset");
|
||||
mesh_para_output->box(FL_FLAT_BOX);
|
||||
mesh_para_output->color(FL_BACKGROUND_COLOR);
|
||||
mesh_para_output->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
||||
} // Fl_Output* mesh_para_output
|
||||
{ edit_mod_btn = new Fl_Button(40, 160, 100, 28, "Model Editor");
|
||||
edit_mod_btn->callback((Fl_Callback*)cb_edit_mod_btn);
|
||||
edit_mod_btn->tooltip("add or edit model in a gui interface.");
|
||||
} // Fl_Button* edit_mod_btn
|
||||
{ rm_emp_bok_check = new Fl_Check_Button(280, 447, 180, 28, "Remove Empty Blocks");
|
||||
rm_emp_bok_check->down_box(FL_DOWN_BOX);
|
||||
rm_emp_bok_check->callback((Fl_Callback*)cb_rm_emp_bok_check);
|
||||
rm_emp_bok_check->tooltip("suppress the output of blocks with zero values.");
|
||||
} // Fl_Check_Button* rm_emp_bok_check
|
||||
{ mod_para_brw = new Fl_Browser(40, 205, 420, 210);
|
||||
mod_para_brw->callback((Fl_Callback*)cb_mod_para_brw);
|
||||
} // Fl_Browser* mod_para_brw
|
||||
{ mod_file_out_btn = new Fl_Button(360, 500, 100, 28, "Model File");
|
||||
mod_file_out_btn->callback((Fl_Callback*)cb_mod_file_out_btn);
|
||||
mod_file_out_btn->tooltip("create or choose a filename for outputting.");
|
||||
} // Fl_Button* mod_file_out_btn
|
||||
{ mod_out_file_output = new Fl_Output(40, 500, 300, 28, "Output File Name :");
|
||||
mod_out_file_output->box(FL_FLAT_BOX);
|
||||
mod_out_file_output->color(FL_BACKGROUND_COLOR);
|
||||
mod_out_file_output->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
||||
} // Fl_Output* mod_out_file_output
|
||||
model_tab->end();
|
||||
} // Fl_Group* model_tab
|
||||
{ forward_tab = new Fl_Group(10, 40, 480, 550, "Forward Modeling");
|
||||
forward_tab->hide();
|
||||
{ grav_group = new Fl_Group(40, 340, 190, 58, "Forward Gravitational Data :");
|
||||
grav_group->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
||||
{ Vz_check = new Fl_Check_Button(40, 340, 50, 28, "Vz");
|
||||
Vz_check->down_box(FL_DOWN_BOX);
|
||||
} // Fl_Check_Button* Vz_check
|
||||
{ Vzx_check = new Fl_Check_Button(105, 340, 50, 28, "Vzx");
|
||||
Vzx_check->down_box(FL_DOWN_BOX);
|
||||
} // Fl_Check_Button* Vzx_check
|
||||
{ Vzy_check = new Fl_Check_Button(170, 340, 50, 28, "Vzy");
|
||||
Vzy_check->down_box(FL_DOWN_BOX);
|
||||
} // Fl_Check_Button* Vzy_check
|
||||
{ Vzz_check = new Fl_Check_Button(40, 370, 50, 28, "Vzz");
|
||||
Vzz_check->down_box(FL_DOWN_BOX);
|
||||
} // Fl_Check_Button* Vzz_check
|
||||
grav_group->end();
|
||||
} // Fl_Group* grav_group
|
||||
{ mod_file_btn = new Fl_Button(360, 70, 100, 28, "Model File");
|
||||
mod_file_btn->callback((Fl_Callback*)cb_mod_file_btn);
|
||||
} // Fl_Button* mod_file_btn
|
||||
{ obs_file_btn = new Fl_Button(360, 130, 100, 28, "Observe File");
|
||||
obs_file_btn->callback((Fl_Callback*)cb_obs_file_btn);
|
||||
} // Fl_Button* obs_file_btn
|
||||
{ mod_file_input = new Fl_Input(40, 70, 300, 28, "Input Model FIle :");
|
||||
mod_file_input->callback((Fl_Callback*)cb_mod_file_input);
|
||||
mod_file_input->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
||||
} // Fl_Input* mod_file_input
|
||||
{ mod_file_output = new Fl_Output(40, 240, 200, 28, "Chosen Model File :");
|
||||
mod_file_output->box(FL_FLAT_BOX);
|
||||
mod_file_output->color(FL_BACKGROUND_COLOR);
|
||||
mod_file_output->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
||||
mod_file_output->value("Unset");
|
||||
} // Fl_Output* mod_file_output
|
||||
{ obs_file_input = new Fl_Input(40, 130, 300, 28, "Input Observe FIle :");
|
||||
obs_file_input->callback((Fl_Callback*)cb_obs_file_input);
|
||||
obs_file_input->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
||||
} // Fl_Input* obs_file_input
|
||||
{ obs_file_output = new Fl_Output(260, 240, 200, 28, "Chosen Observe File :");
|
||||
obs_file_output->box(FL_FLAT_BOX);
|
||||
obs_file_output->color(FL_BACKGROUND_COLOR);
|
||||
obs_file_output->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
||||
obs_file_output->value("Unset");
|
||||
} // Fl_Output* obs_file_output
|
||||
{ mod_ele_input = new Fl_Input(260, 315, 200, 28, "Model Element Data Name :");
|
||||
mod_ele_input->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
||||
} // Fl_Input* mod_ele_input
|
||||
{ mag_group = new Fl_Group(40, 440, 420, 90);
|
||||
{ DeltaT_check = new Fl_Check_Button(40, 475, 65, 25, "DeltaT");
|
||||
DeltaT_check->down_box(FL_DOWN_BOX);
|
||||
DeltaT_check->deactivate();
|
||||
} // Fl_Check_Button* DeltaT_check
|
||||
{ DeltaTx_check = new Fl_Check_Button(120, 475, 70, 25, "DeltaTx");
|
||||
DeltaTx_check->down_box(FL_DOWN_BOX);
|
||||
DeltaTx_check->deactivate();
|
||||
} // Fl_Check_Button* DeltaTx_check
|
||||
{ DeltaTy_check = new Fl_Check_Button(200, 475, 70, 25, "DeltaTy");
|
||||
DeltaTy_check->down_box(FL_DOWN_BOX);
|
||||
DeltaTy_check->deactivate();
|
||||
} // Fl_Check_Button* DeltaTy_check
|
||||
{ DeltaTz_check = new Fl_Check_Button(280, 475, 70, 25, "DeltaTz");
|
||||
DeltaTz_check->down_box(FL_DOWN_BOX);
|
||||
DeltaTz_check->deactivate();
|
||||
} // Fl_Check_Button* DeltaTz_check
|
||||
{ Hax_check = new Fl_Check_Button(40, 505, 65, 25, "Hax");
|
||||
Hax_check->down_box(FL_DOWN_BOX);
|
||||
Hax_check->deactivate();
|
||||
} // Fl_Check_Button* Hax_check
|
||||
{ Hay_check = new Fl_Check_Button(120, 505, 65, 25, "Hay");
|
||||
Hay_check->down_box(FL_DOWN_BOX);
|
||||
Hay_check->deactivate();
|
||||
} // Fl_Check_Button* Hay_check
|
||||
{ Za_check = new Fl_Check_Button(200, 505, 65, 25, "Za");
|
||||
Za_check->down_box(FL_DOWN_BOX);
|
||||
Za_check->deactivate();
|
||||
} // Fl_Check_Button* Za_check
|
||||
{ mag_para_input = new Fl_Input(220, 440, 240, 28, "Magnetization Parameters : ");
|
||||
mag_para_input->tooltip("<I0>/<D0>/<I>/<D>");
|
||||
mag_para_input->callback((Fl_Callback*)cb_mag_para_input);
|
||||
mag_para_input->deactivate();
|
||||
} // Fl_Input* mag_para_input
|
||||
mag_group->end();
|
||||
} // Fl_Group* mag_group
|
||||
{ mag_data_check = new Fl_Check_Button(40, 405, 170, 30, "Forward Magnetic Data");
|
||||
mag_data_check->down_box(FL_DOWN_BOX);
|
||||
mag_data_check->callback((Fl_Callback*)cb_mag_data_check);
|
||||
} // Fl_Check_Button* mag_data_check
|
||||
{ cal_btn = new Fl_Button(40, 545, 420, 28, "Calculate !");
|
||||
cal_btn->callback((Fl_Callback*)cb_cal_btn);
|
||||
} // Fl_Button* cal_btn
|
||||
{ noise_para_input = new Fl_Input(260, 370, 200, 28);
|
||||
noise_para_input->tooltip("<noise-mean>/<nosie-deviation>");
|
||||
noise_para_input->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
||||
noise_para_input->deactivate();
|
||||
} // Fl_Input* noise_para_input
|
||||
{ noise_check = new Fl_Check_Button(260, 345, 180, 30, "Input Noise Parameters :");
|
||||
noise_check->down_box(FL_DOWN_BOX);
|
||||
noise_check->callback((Fl_Callback*)cb_noise_check);
|
||||
} // Fl_Check_Button* noise_check
|
||||
{ res_file_input = new Fl_Input(40, 190, 300, 28, "Input Prefix of Output FIle :");
|
||||
res_file_input->callback((Fl_Callback*)cb_res_file_input);
|
||||
res_file_input->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
||||
} // Fl_Input* res_file_input
|
||||
{ res_file_btn = new Fl_Button(360, 190, 100, 28, "Result File");
|
||||
res_file_btn->callback((Fl_Callback*)cb_res_file_btn);
|
||||
} // Fl_Button* res_file_btn
|
||||
{ res_out_file_output = new Fl_Output(40, 290, 200, 28, "Prefix of Output File :");
|
||||
res_file_output->box(FL_FLAT_BOX);
|
||||
res_file_output->color(FL_BACKGROUND_COLOR);
|
||||
res_file_output->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
||||
res_file_output->value("Unset");
|
||||
} // Fl_Output* res_out_file_output
|
||||
forward_tab->end();
|
||||
} // Fl_Group* forward_tab
|
||||
main_tabs->end();
|
||||
} // Fl_Tabs* main_tabs
|
||||
main_window->end();
|
||||
} // Fl_Double_Window* main_window
|
||||
main_window->show(argc, argv);
|
||||
return Fl::run();
|
||||
}
|
@@ -8,15 +8,12 @@ Function {cb_mesh_para_input(Fl_Input*, void*)} {open
|
||||
Function {cb_mesh_file_btn(Fl_Widget*, void*)} {open
|
||||
} {}
|
||||
|
||||
Function {cb_add_mod_btn(Fl_Widget*, void*)} {open
|
||||
Function {cb_edit_mod_btn(Fl_Widget*, void*)} {open
|
||||
} {}
|
||||
|
||||
Function {cb_mod_para_file_btn(Fl_Widget*, void*)} {open
|
||||
} {}
|
||||
|
||||
Function {cb_del_mod_btn(Fl_Widget*, void*)} {open
|
||||
} {}
|
||||
|
||||
Function {cb_mod_para_brw(Fl_Browser*, void*)} {open
|
||||
} {}
|
||||
|
||||
@@ -66,14 +63,14 @@ Function {} {open
|
||||
} {
|
||||
Fl_Window main_window {
|
||||
label gm3d open
|
||||
xywh {678 185 500 600} type Double visible
|
||||
xywh {857 85 500 600} type Double visible
|
||||
} {
|
||||
Fl_Tabs main_tabs {open
|
||||
xywh {10 10 480 580}
|
||||
} {
|
||||
Fl_Group model_tab {
|
||||
label {Build Model} open
|
||||
xywh {10 40 480 550} hide
|
||||
label {Build Model} open selected
|
||||
xywh {10 40 480 550}
|
||||
} {
|
||||
Fl_Input mesh_para_input {
|
||||
label {Input Mesh Parameters :}
|
||||
@@ -104,16 +101,11 @@ Function {} {open
|
||||
label {Mesh Parameters :}
|
||||
xywh {40 120 300 28} box NO_BOX align 5
|
||||
}
|
||||
Fl_Button add_mod_btn {
|
||||
label {Add Model}
|
||||
callback cb_add_mod_btn
|
||||
Fl_Button edit_mod_btn {
|
||||
label {Model Editor}
|
||||
callback cb_edit_mod_btn
|
||||
xywh {40 160 100 28}
|
||||
}
|
||||
Fl_Button del_mod_btn {
|
||||
label {Delete Model}
|
||||
callback cb_del_mod_btn
|
||||
xywh {360 160 100 28} deactivate
|
||||
}
|
||||
Fl_Check_Button rm_emp_bok_check {
|
||||
label {Remove Empty Blocks}
|
||||
callback cb_rm_emp_bok_check
|
||||
@@ -134,15 +126,15 @@ Function {} {open
|
||||
}
|
||||
}
|
||||
Fl_Group forward_tab {
|
||||
label {Forward Modeling} open
|
||||
xywh {10 40 480 550}
|
||||
label {Forward Modeling}
|
||||
xywh {10 40 480 550} hide
|
||||
} {
|
||||
Fl_Group grav_group {
|
||||
label {Forward Gravitational Data :} open
|
||||
xywh {40 340 190 58} align 5
|
||||
} {
|
||||
Fl_Check_Button Vz_check {
|
||||
label Vz selected
|
||||
label Vz
|
||||
xywh {40 340 50 28} down_box DOWN_BOX
|
||||
}
|
||||
Fl_Check_Button Vzx_check {
|
83
fluid_project/gm3d_gui2.h
Normal file
83
fluid_project/gm3d_gui2.h
Normal file
@@ -0,0 +1,83 @@
|
||||
// generated by Fast Light User Interface Designer (fluid) version 1.0305
|
||||
|
||||
#ifndef _GM3D_GUI_H
|
||||
#define _GM3D_GUI_H
|
||||
#include <FL/Fl.H>
|
||||
#include <FL/Fl_Double_Window.H>
|
||||
#include <FL/Fl_Tabs.H>
|
||||
#include <FL/Fl_Group.H>
|
||||
#include <FL/Fl_Input.H>
|
||||
#include <FL/Fl_Button.H>
|
||||
#include <FL/Fl_Output.H>
|
||||
#include <FL/Fl_Check_Button.H>
|
||||
#include <FL/Fl_Browser.H>
|
||||
#include <FL/Fl_File_Chooser.H>
|
||||
|
||||
#include <iostream>
|
||||
#include <string.h>
|
||||
#include <sstream>
|
||||
#include <fstream>
|
||||
|
||||
extern void cb_mesh_para_input(Fl_Input*, void*);
|
||||
extern void cb_mesh_file_btn(Fl_Widget*, void*);
|
||||
extern void cb_edit_mod_btn(Fl_Widget*, void*);
|
||||
extern void cb_mod_para_file_btn(Fl_Widget*, void*);
|
||||
extern void cb_mod_para_brw(Fl_Browser*, void*);
|
||||
extern void cb_rm_emp_bok_check(Fl_Check_Button*, void*);
|
||||
extern void cb_mod_file_out_btn(Fl_Widget*, void*);
|
||||
extern void cb_build_mod_btn(Fl_Widget*, void*);
|
||||
extern void cb_mod_file_input(Fl_Input*, void*);
|
||||
extern void cb_mod_file_btn(Fl_Widget*, void*);
|
||||
extern void cb_obs_file_input(Fl_Input*, void*);
|
||||
extern void cb_obs_file_btn(Fl_Widget*, void*);
|
||||
extern void cb_res_file_input(Fl_Input*, void*);
|
||||
extern void cb_res_file_btn(Fl_Widget*, void*);
|
||||
extern void cb_nosie_check(Fl_Check_Button*, void*);
|
||||
extern void cb_mag_data_check(Fl_Check_Button*, void*);
|
||||
extern void cb_mag_para_input(Fl_Input*, void*);
|
||||
extern void cb_cal_btn(Fl_Button*, void*);
|
||||
|
||||
extern Fl_Double_Window *main_window;
|
||||
extern Fl_Tabs *main_tabs;
|
||||
extern Fl_Group *model_tab;
|
||||
extern Fl_Input *mesh_para_input;
|
||||
extern Fl_Button *mesh_file_btn;
|
||||
extern Fl_Button *mod_para_file_btn;
|
||||
extern Fl_Input *mod_ele_input_build;
|
||||
extern Fl_Button *build_mod_btn;
|
||||
extern Fl_Output *mesh_para_output;
|
||||
extern Fl_Button *edit_mod_btn;
|
||||
extern Fl_Check_Button *rm_emp_bok_check;
|
||||
extern Fl_Browser *mod_para_brw;
|
||||
extern Fl_Button *mod_file_out_btn;
|
||||
extern Fl_Output *mod_out_file_output;
|
||||
extern Fl_Group *forward_tab;
|
||||
extern Fl_Group *grav_group;
|
||||
extern Fl_Check_Button *Vz_check;
|
||||
extern Fl_Check_Button *Vzx_check;
|
||||
extern Fl_Check_Button *Vzy_check;
|
||||
extern Fl_Check_Button *Vzz_check;
|
||||
extern Fl_Button *mod_file_btn;
|
||||
extern Fl_Button *obs_file_btn;
|
||||
extern Fl_Input *mod_file_input;
|
||||
extern Fl_Output *mod_file_output;
|
||||
extern Fl_Input *obs_file_input;
|
||||
extern Fl_Output *obs_file_output;
|
||||
extern Fl_Input *mod_ele_input;
|
||||
extern Fl_Group *mag_group;
|
||||
extern Fl_Check_Button *DeltaT_check;
|
||||
extern Fl_Check_Button *DeltaTx_check;
|
||||
extern Fl_Check_Button *DeltaTy_check;
|
||||
extern Fl_Check_Button *DeltaTz_check;
|
||||
extern Fl_Check_Button *Hax_check;
|
||||
extern Fl_Check_Button *Hay_check;
|
||||
extern Fl_Check_Button *Za_check;
|
||||
extern Fl_Input *mag_para_input;
|
||||
extern Fl_Check_Button *mag_data_check;
|
||||
extern Fl_Button *cal_btn;
|
||||
extern Fl_Input *noise_para_input;
|
||||
extern Fl_Check_Button *noise_check;
|
||||
extern Fl_Input *res_file_input;
|
||||
extern Fl_Button *res_file_btn;
|
||||
extern Fl_Output *res_file_output;
|
||||
#endif //_GM3D_GUI_H
|
Reference in New Issue
Block a user