本文整理汇总了C++中Fl_Tabs::add方法的典型用法代码示例。如果您正苦于以下问题:C++ Fl_Tabs::add方法的具体用法?C++ Fl_Tabs::add怎么用?C++ Fl_Tabs::add使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Fl_Tabs
的用法示例。
在下文中一共展示了Fl_Tabs::add方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int argc, char ** argv)
{
program=(char*)malloc(4096);
params=(char*)malloc(40960);
exe_root=(char*)malloc(4096);
if( GetModuleFileName(NULL, exe_root, 4096)!=0)//os specific method win32
{
if(strrchr(exe_root, '\\')!=NULL)
(strrchr(exe_root, '\\'))[0]=0;
}
else
{
puts("Failed to find exe_root");
return 1;
}
enc_filename=(char*)malloc(4096);
dec_filename=(char*)malloc(4096);
enc_outname=(char*)malloc(4096);
dec_outname=(char*)malloc(4096);
enc_working=(char*)malloc(4096);
dec_working=(char*)malloc(4096);
memset(enc_filename, 0, 4096);
memset(dec_filename, 0, 4096);
memset(enc_outname, 0, 4096);
memset(dec_outname, 0, 4096);
memset(enc_working, 0, 4096);
memset(dec_working, 0, 4096);
window = new Fl_Window(640,480, "GPackGUI r1");/*lazy, rev goes here*/
Fl_Tabs *tabs = new Fl_Tabs(0, 0, 640, 480);
Fl_Group *dec_tab = new Fl_Group(0, 30, 640, 450, "Decode");
Fl_Group *enc_tab = new Fl_Group(0, 30, 640, 450, "Encode");
Fl_Group *help_tab = new Fl_Group(0, 30, 640, 450, "Help");
tabs->add(dec_tab);
tabs->add(enc_tab);
tabs->add(help_tab);
/*decode tab*****************************************************************/
/*setup text display*/
decode_buff = new Fl_Text_Buffer();
d_disp = new Fl_Text_Display(0, 310, 640, 170, "");
d_disp->buffer(decode_buff);
//window->resizable(*d_disp);
decode_buff->text(
"\n"
);
dec_tab->add(d_disp);
/*dec_filename description*/
Fl_Box *d_filename_desc = new Fl_Box(20, 70, 600, 25, "1) Select a grp file from an existing merge");
dec_tab->add(d_filename_desc);
/*dec_filename button*/
Fl_Button *d_filename_b = new Fl_Button(20, 100, 80, 25, "Browse");
d_filename_b->callback(d_filename_f,0);
dec_tab->add(d_filename_b);
/*dec_filename path*/
d_filename_box = new Fl_Box(105, 100, 535, 25, "No grp file selected");
dec_tab->add(d_filename_box);
/*dec_outname description*/
Fl_Box *d_outname_desc = new Fl_Box(20, 160, 600, 25, "2) Select an output directory (optional)");
dec_tab->add(d_outname_desc);
/*dec_filename button*/
Fl_Button *d_outname_b = new Fl_Button(20, 190, 80, 25, "Browse");
d_outname_b->callback(d_outname_f,0);
dec_tab->add(d_outname_b);
/*dec_filename path*/
dec_outname_box = new Fl_Box(105, 190, 535, 25, "Default to same directory as merged files");
dec_tab->add(dec_outname_box);
/*dec_exec description*/
Fl_Box *d_exec_desc = new Fl_Box(20, 250, 600, 25, "3) Execute");
dec_tab->add(d_exec_desc);
/*dec_exec button*/
d_exec_b = new Fl_Button(20, 280, 80, 25, "Make it so");
d_exec_b->callback(d_exec_f,0);
dec_tab->add(d_exec_b);
/*encode tab*****************************************************************/
/*setup text display*/
encode_buff = new Fl_Text_Buffer();
e_disp = new Fl_Text_Display(0, 400, 640, 80, "");
e_disp->buffer(encode_buff);
//window->resizable(*e_disp);
encode_buff->text(
"\n"
);
//.........这里部分代码省略.........