⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function_panel.fl

📁 SRI international 发布的OAA框架软件
💻 FL
📖 第 1 页 / 共 2 页
字号:
# data file for the Fltk User Interface Designer (fluid)
version 1.0103 
header_name {.h} 
code_name {.cxx}
decl {\#include <FL/Fl_Pixmap.H>} {} 

decl {\#include "Fl_Type.h"} {} 

decl {extern class Fl_Pixmap *pixmap[];} {} 

decl {extern class Fl_Type *Fl_Type_make(const char*);} {} 

decl {extern void select_only(Fl_Type*);} {} 

Function {make_function_panel()} {open
} {
  Fl_Window function_panel {
    label {function/method} open
    xywh {774 432 285 170} resizable modal visible
  } {
    Fl_Light_Button f_public_button {
      label public
      tooltip {Make the function or method publicly accessible.} xywh {10 10 65 25} labelsize 10 when 0
    }
    Fl_Light_Button f_c_button {
      label {C declaration}
      tooltip {Declare with a C interface instead of C++.} xywh {80 10 90 25} labelsize 10
    }
    Fl_Input f_name_input {
      label {Name(args): (blank for main())}
      tooltip {The name of the function or method.} xywh {10 55 265 25} labelsize 12 align 5 when 0 textfont 4 resizable
    }
    Fl_Input f_return_type_input {
      label {Return Type: (blank to return outermost widget)}
      tooltip {The return type of the function or method.} xywh {10 100 265 25} labelsize 12 align 5 when 0 textfont 4
    }
    Fl_Return_Button f_panel_ok {
      label OK
      tooltip {Apply the changes.} xywh {110 135 80 25} hotspot
    }
    Fl_Button f_panel_cancel {
      label Cancel
      tooltip {Cancel the changes.} xywh {195 135 80 25} shortcut 0xff1b
    }
  }
} 

Function {make_code_panel()} {open
} {
  Fl_Window code_panel {
    label code open
    xywh {327 261 548 175} resizable modal visible
  } {
    Fl_Group {} {open
      xywh {10 10 525 120} box DOWN_FRAME resizable
    } {
      Fl_Text_Editor code_input {selected
        xywh {12 12 521 116} box NO_BOX resizable
        code0 {o->buffer(new Fl_Text_Buffer);}
        code1 {o->textfont(FL_COURIER);}
        code2 {o->when(FL_WHEN_ENTER_KEY_CHANGED|FL_WHEN_RELEASE);}
      }
    }
    Fl_Return_Button code_panel_ok {
      label OK
      xywh {370 140 80 25} hotspot
    }
    Fl_Button code_panel_cancel {
      label Cancel
      xywh {455 140 80 25} shortcut 0xff1b
    }
  }
} 

Function {make_codeblock_panel()} {open
} {
  Fl_Window codeblock_panel {
    label codeblock open
    xywh {289 462 295 130} resizable modal visible
  } {
    Fl_Input code_before_input {
      tooltip {\#ifdef or similar conditional code block.} xywh {10 10 275 25} labelsize 12 align 5 when 0 textfont 4 resizable
    }
    Fl_Box {} {
      label {"{...child code...}" is inserted here}
      xywh {10 35 270 25} align 20
    }
    Fl_Input code_after_input {
      tooltip {\#endif or similar conditional code block.} xywh {10 60 275 25} labelsize 12 align 5 when 0 textfont 4
    }
    Fl_Return_Button codeblock_panel_ok {
      label OK
      xywh {120 95 80 25} hotspot
    }
    Fl_Button codeblock_panel_cancel {
      label Cancel
      xywh {205 95 80 25} shortcut 0xff1b
    }
  }
} 

Function {make_declblock_panel()} {open
} {
  Fl_Window declblock_panel {
    label {declaration block} open
    xywh {184 572 295 130} resizable modal visible
  } {
    Fl_Input decl_before_input {
      tooltip {\#ifdef or similar conditional declaration block.} xywh {10 10 275 25} labelsize 12 align 5 when 0 textfont 4 resizable
    }
    Fl_Box {} {
      label {"\\n...child code...\\n" is inserted here}
      xywh {10 35 275 25} align 20
    }
    Fl_Input decl_after_input {
      tooltip {\#endif or similar declaration code block.} xywh {10 60 275 25} labelsize 12 align 5 when 0 textfont 4
    }
    Fl_Return_Button declblock_panel_ok {
      label OK
      xywh {120 95 80 25} hotspot
    }
    Fl_Button declblock_panel_cancel {
      label Cancel
      xywh {205 95 80 25} shortcut 0xff1b
    }
  }
} 

Function {make_decl_panel()} {open
} {
  Fl_Window decl_panel {
    label declaration open
    xywh {393 601 290 180} resizable visible
  } {
    Fl_Light_Button decl_public_button {
      label public
      tooltip {Make the declaration publicly accessible.} xywh {10 10 65 25} labelsize 10 when 0
    }
    Fl_Input decl_input {
      label {Can be any declaration, like "int x;", an external symbol like "extern int foo();", a \#directive like "\#include <foo.h>", a comment like "//foo" or "/*foo*/", or typedef like "typedef char byte;" or "using std::list;".}
      tooltip {Declaration text.} xywh {10 40 270 25} labelsize 12 align 134 when 0 textfont 4 resizable
    }
    Fl_Return_Button decl_panel_ok {
      label OK
      xywh {115 145 80 25} hotspot
    }
    Fl_Button decl_panel_cancel {
      label Cancel
      xywh {200 145 80 25} shortcut 0xff1b
    }
  }
} 

Function {make_class_panel()} {open
} {
  Fl_Window class_panel {
    label class open
    xywh {517 797 285 170} resizable modal visible
  } {
    Fl_Light_Button c_public_button {
      label public
      tooltip {Make the class publicly accessible.} xywh {10 10 65 25} labelsize 10 when 0
    }
    Fl_Input c_name_input {
      label {Name:}
      tooltip {Name of class.} xywh {10 55 265 25} labelsize 12 align 5 when 0 textfont 4 resizable
    }
    Fl_Input c_subclass_input {
      label {Subclass of (text between : and \{)}
      tooltip {Name of subclass.} xywh {10 100 265 25} labelsize 12 align 5 when 0 textfont 4
    }
    Fl_Return_Button c_panel_ok {
      label OK
      xywh {110 135 80 25} hotspot
    }
    Fl_Button c_panel_cancel {
      label Cancel
      xywh {195 135 80 25} shortcut 0xff1b
    }
  }
} 

Function {type_make_cb(Fl_Widget*w,void*d)} {open return_type void
} {
  code {Fl_Type *t = Fl_Type_make((char*)d);
if (t) {select_only(t); modflag = 1; t->open();}} {}
} 

Function {make_widgetbin()} {open
} {
  Fl_Window widgetbin_panel {
    label Bin open
    xywh {325 137 443 100} type Double
    code0 {o->size(o->w(),80);} non_modal visible
  } {
    Fl_Group {} {open
      xywh {3 3 50 74} box THIN_DOWN_BOX
    } {
      Fl_Button {} {
        user_data {"Function"}
        callback type_make_cb
        tooltip Function xywh {4 4 24 24} box THIN_UP_BOX
        code0 {o->image(pixmap[7]);}
      }
      Fl_Button {} {
        user_data {"Class"}
        callback type_make_cb
        tooltip Class xywh {28 4 24 24} box THIN_UP_BOX
        code0 {o->image(pixmap[12]);}
      }
      Fl_Button {} {
        user_data {"Code"}
        callback type_make_cb
        tooltip Code xywh {4 28 24 24} box THIN_UP_BOX
        code0 {o->image(pixmap[8]);}
      }
      Fl_Button {} {
        user_data {"CodeBlock"}
        callback type_make_cb
        tooltip {Code Block} xywh {28 28 24 24} box THIN_UP_BOX
        code0 {o->image(pixmap[9]);}
      }
      Fl_Button {} {
        user_data {"decl"}
        callback type_make_cb
        tooltip Declaration xywh {4 52 24 24} box THIN_UP_BOX
        code0 {o->image(pixmap[10]);}
      }
      Fl_Button {} {
        user_data {"declblock"}
        callback type_make_cb
        tooltip {Declaration Block} xywh {28 52 24 24} box THIN_UP_BOX
        code0 {o->image(pixmap[11]);}
      }
    }
    Fl_Group {} {open
      xywh {55 3 74 74} box THIN_DOWN_BOX
    } {
      Fl_Button {} {
        user_data {"Fl_Window"}
        callback type_make_cb
        tooltip Window xywh {56 4 24 24} box THIN_UP_BOX
        code0 {o->image(pixmap[1]);}
      }
      Fl_Button {} {
        user_data {"Fl_Tabs"}
        callback type_make_cb
        tooltip Tabs xywh {56 28 24 24} box THIN_UP_BOX
        code0 {o->image(pixmap[13]);}
      }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -