view_crossalign_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:3k
- /*
- * ===========================================================================
- * PRODUCTION $Log: view_crossalign_.cpp,v $
- * PRODUCTION Revision 1000.4 2004/06/01 20:59:15 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.27
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: view_crossalign_.cpp,v 1000.4 2004/06/01 20:59:15 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CAlnCrossAlignView::cb_Cross_i(Fl_Window*, void*) {
- OnExit();
- }
- void CAlnCrossAlignView::cb_Cross(Fl_Window* o, void* v) {
- ((CAlnCrossAlignView*)(o->user_data()))->cb_Cross_i(o,v);
- }
- inline void CAlnCrossAlignView::cb_m_SeqChoice1_i(Fl_Choice*, void*) {
- x_OnSelectionChanged();
- }
- void CAlnCrossAlignView::cb_m_SeqChoice1(Fl_Choice* o, void* v) {
- ((CAlnCrossAlignView*)(o->parent()->parent()->user_data()))->cb_m_SeqChoice1_i(o,v);
- }
- inline void CAlnCrossAlignView::cb_m_SeqChoice2_i(Fl_Choice*, void*) {
- x_OnSelectionChanged();
- }
- void CAlnCrossAlignView::cb_m_SeqChoice2(Fl_Choice* o, void* v) {
- ((CAlnCrossAlignView*)(o->parent()->parent()->user_data()))->cb_m_SeqChoice2_i(o,v);
- }
- Fl_Window* CAlnCrossAlignView::x_CreateWindow() {
- Fl_Window* w;
- { Fl_Window* o = new Fl_Window(776, 502, "Cross Alignment View");
- w = o;
- o->box(FL_FLAT_BOX);
- o->color(FL_BACKGROUND_COLOR);
- o->selection_color(FL_BACKGROUND_COLOR);
- o->labeltype(FL_NO_LABEL);
- o->labelfont(0);
- o->labelsize(14);
- o->labelcolor(FL_BLACK);
- o->callback((Fl_Callback*)cb_Cross, (void*)(this));
- o->align(FL_ALIGN_TOP);
- o->when(FL_WHEN_RELEASE);
- { Fl_Group* o = new Fl_Group(15, 15, 745, 470);
- o->box(FL_DOWN_BOX);
- { Fl_Choice* o = m_SeqChoice1 = new Fl_Choice(30, 40, 715, 20, "Top Sequence:");
- o->down_box(FL_BORDER_BOX);
- o->callback((Fl_Callback*)cb_m_SeqChoice1);
- o->align(FL_ALIGN_TOP_LEFT);
- }
- { Fl_Choice* o = m_SeqChoice2 = new Fl_Choice(30, 455, 715, 20, "Bottom Sequence:");
- o->down_box(FL_BORDER_BOX);
- o->callback((Fl_Callback*)cb_m_SeqChoice2);
- o->align(FL_ALIGN_TOP_LEFT);
- }
- { CCrossAlnWidget* o = m_AlnWidget = new CCrossAlnWidget(30, 70, 715, 365);
- o->box(FL_FLAT_BOX);
- o->color(FL_BACKGROUND2_COLOR);
- o->selection_color(FL_BACKGROUND_COLOR);
- o->labeltype(FL_NORMAL_LABEL);
- o->labelfont(0);
- o->labelsize(14);
- o->labelcolor(FL_BLACK);
- o->align(FL_ALIGN_CENTER);
- o->when(FL_WHEN_RELEASE);
- Fl_Group::current()->resizable(o);
- }
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- return w;
- }