📄 textaln_widget_demo.fl
字号:
# data file for the Fltk User Interface Designer (fluid)version 1.0105 do_not_include_H_from_C header_name {.hpp} code_name {.cpp}decl {/* $Id: textaln_widget_demo.fl,v 1000.1 2004/06/01 21:08:14 gouriano Exp $ */} {public} decl {/* $Id: textaln_widget_demo.fl,v 1000.1 2004/06/01 21:08:14 gouriano Exp $ */} {} decl {\#include <ncbi_pch.hpp>} {} decl {\#include "textaln_widget_demo.hpp"} {selected} Function {closeWindowCB( Fl_Widget*, void* )} {private return_type void} { code {delete mainWindow;} {}} Function {backColorBtnCB(Fl_Widget* o, void*)} {open} { code {Fl_Color c = fl_show_colormap( o->color() );o->color(c);m_TextAlnView->SetColor(CTextAlnView::eBackground, c);} {}} Function {gridColorBtnCB(Fl_Widget* o, void*)} {open} { code {Fl_Color c = fl_show_colormap( o->color() );o->color(c);m_TextAlnView->SetColor(CTextAlnView::eGrid, c);} {}} Function {numColorBtnCB(Fl_Widget* o, void*)} {} { code {Fl_Color c = fl_show_colormap( o->color() );o->color(c);m_TextAlnView->SetColor(CTextAlnView::eNumbers, c);} {}} Function {selColorBtnCB(Fl_Widget* o, void*)} {} { code {Fl_Color c = fl_show_colormap( o->color() );o->color(c);m_TextAlnView->SetColor(CTextAlnView::eSelection, c);} {}} Function {loadSeqCB(Fl_Widget* o, void*)} {open} { code {CTextAlnViewTestDS* ds = new CTextAlnViewTestDS(); m_TextAlnView->SetDataSource( ds );} {}} Function {showMMCB(Fl_Widget*, void*)} {} { code {bool show_mm = m_ShowMM->value();m_TextAlnView->ShowSequenceAsDots(show_mm);} {}} Function {} {return_type int} { Fl_Window mainWindow { label {Text Alignment Viewer} open xywh {351 340 925 527} type Double hide resizable code0 {\#include <stdio.h>} code1 {\#include <FL/fl_show_colormap.H>} code2 {\#include "demo_data_source.hpp"} code3 {using namespace ncbi;} } { Fl_Menu_Bar {} { xywh {0 0 925 30} } { submenu {} { label {&File} xywh {0 0 100 20} } { menuitem {} { label {&Load Aln. results} callback loadSeqCB xywh {0 0 100 20} divider } menuitem {} { label {&Exit} callback closeWindowCB xywh {0 0 100 20} } } } Fl_Button {} { label Close callback closeWindowCB tooltip {Click to close the window} xywh {820 485 95 25} } Fl_Group m_TextAlnView {open xywh {10 40 695 420} box FLAT_BOX color 7 labeltype NO_LABEL align 0 resizable code0 {\#include <gui/widgets/aln_textaln/view.hpp>} class CTextAlnView } {} Fl_Button {} { label {Background Color} callback backColorBtnCB xywh {715 125 35 25} color 55 align 8 } Fl_Button {} { label {Selection Color} callback selColorBtnCB xywh {715 155 35 25} color 4 align 8 } Fl_Box {} { xywh {10 470 905 5} box THIN_DOWN_FRAME labeltype NO_LABEL } Fl_Button {} { label {Numbers Color} callback numColorBtnCB xywh {715 215 35 25} color 4 align 8 } Fl_Button {} { label {Grid Color} callback gridColorBtnCB xywh {715 185 35 25} align 8 } Fl_Check_Button m_Anchor { label {Anchor Base Sequence} callback setAnchor xywh {715 40 185 25} down_box DOWN_BOX when 1 } Fl_Check_Button m_ShowMM { label {Show Mismatches Only} callback showMMCB xywh {715 65 185 25} down_box DOWN_BOX when 1 } Fl_Button {} { label {Sequence Color} callback seqColorBtnCB xywh {715 245 35 25} color 0 align 8 } Fl_Button {} { label {Load Aln. results} callback loadSeqCB xywh {715 435 160 25} } Fl_Light_Button m_EditMode { label {Edit Mode} xywh {715 405 160 25} } Fl_Group {} { label {Features Display:} xywh {715 350 160 50} box THIN_DOWN_FRAME align 5 } { Fl_Round_Button m_FeatOff { label Off callback setFeatures xywh {715 350 160 20} type Radio down_box ROUND_DOWN_BOX value 1 } Fl_Round_Button m_FeatBase { label {Base Sequence} callback setFeatures xywh {715 365 160 20} type Radio down_box ROUND_DOWN_BOX } Fl_Round_Button m_FeatAll { label {All Sequences} callback setFeatures xywh {715 380 160 20} type Radio down_box ROUND_DOWN_BOX } } Fl_Check_Button m_ShowLongInfo { label {Show Long Name} xywh {715 90 185 25} down_box DOWN_BOX } Fl_Button {} { label {Select All} callback selectCB xywh {715 285 85 25} } Fl_Button {} { label {Deselect All} callback deselectCB xywh {805 285 85 25} } }} Function {seqColorBtnCB(Fl_Widget* o, void*)} {} { code {Fl_Color c = fl_show_colormap( o->color() );o->color(c);m_TextAlnView->SetColor(CTextAlnView::eSequence, c);} {}} Function {setAnchor(Fl_Widget*, void*)} {open} { code {bool anchor = m_Anchor->value();if (anchor) m_TextAlnView->SetAnchor(0);else m_TextAlnView->UnsetAnchor();} {}} Function {setFeatures(Fl_Widget*, void*)} {} { code {if (m_FeatOff->value()) m_TextAlnView->SetFeatureDisplay(CTextAlnView::eOff);if (m_FeatBase->value()) m_TextAlnView->SetFeatureDisplay(CTextAlnView::eBase);if (m_FeatAll->value()) m_TextAlnView->SetFeatureDisplay(CTextAlnView::eAll);} {}} Function {selectCB(Fl_Widget* o, void*)} {} { code {m_TextAlnView->SelectAll( true );} {}} Function {deselectCB(Fl_Widget* o, void*)} {} { code {m_TextAlnView->SelectAll( false );} {}}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -