view_crossalign_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:3k
源码类别:

生物技术

开发平台:

C/C++

  1. /*
  2.  * ===========================================================================
  3.  * PRODUCTION $Log: view_crossalign_.cpp,v $
  4.  * PRODUCTION Revision 1000.4  2004/06/01 20:59:15  gouriano
  5.  * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.27
  6.  * PRODUCTION
  7.  * ===========================================================================
  8.  */
  9. // generated by Fast Light User Interface Designer (fluid) version 1.0105
  10. /* $Id: view_crossalign_.cpp,v 1000.4 2004/06/01 20:59:15 gouriano Exp $ */
  11. #include <ncbi_pch.hpp>
  12. inline void CAlnCrossAlignView::cb_Cross_i(Fl_Window*, void*) {
  13.   OnExit();
  14. }
  15. void CAlnCrossAlignView::cb_Cross(Fl_Window* o, void* v) {
  16.   ((CAlnCrossAlignView*)(o->user_data()))->cb_Cross_i(o,v);
  17. }
  18. inline void CAlnCrossAlignView::cb_m_SeqChoice1_i(Fl_Choice*, void*) {
  19.   x_OnSelectionChanged();
  20. }
  21. void CAlnCrossAlignView::cb_m_SeqChoice1(Fl_Choice* o, void* v) {
  22.   ((CAlnCrossAlignView*)(o->parent()->parent()->user_data()))->cb_m_SeqChoice1_i(o,v);
  23. }
  24. inline void CAlnCrossAlignView::cb_m_SeqChoice2_i(Fl_Choice*, void*) {
  25.   x_OnSelectionChanged();
  26. }
  27. void CAlnCrossAlignView::cb_m_SeqChoice2(Fl_Choice* o, void* v) {
  28.   ((CAlnCrossAlignView*)(o->parent()->parent()->user_data()))->cb_m_SeqChoice2_i(o,v);
  29. }
  30. Fl_Window* CAlnCrossAlignView::x_CreateWindow() {
  31.   Fl_Window* w;
  32.   { Fl_Window* o = new Fl_Window(776, 502, "Cross Alignment View");
  33.     w = o;
  34.     o->box(FL_FLAT_BOX);
  35.     o->color(FL_BACKGROUND_COLOR);
  36.     o->selection_color(FL_BACKGROUND_COLOR);
  37.     o->labeltype(FL_NO_LABEL);
  38.     o->labelfont(0);
  39.     o->labelsize(14);
  40.     o->labelcolor(FL_BLACK);
  41.     o->callback((Fl_Callback*)cb_Cross, (void*)(this));
  42.     o->align(FL_ALIGN_TOP);
  43.     o->when(FL_WHEN_RELEASE);
  44.     { Fl_Group* o = new Fl_Group(15, 15, 745, 470);
  45.       o->box(FL_DOWN_BOX);
  46.       { Fl_Choice* o = m_SeqChoice1 = new Fl_Choice(30, 40, 715, 20, "Top Sequence:");
  47.         o->down_box(FL_BORDER_BOX);
  48.         o->callback((Fl_Callback*)cb_m_SeqChoice1);
  49.         o->align(FL_ALIGN_TOP_LEFT);
  50.       }
  51.       { Fl_Choice* o = m_SeqChoice2 = new Fl_Choice(30, 455, 715, 20, "Bottom Sequence:");
  52.         o->down_box(FL_BORDER_BOX);
  53.         o->callback((Fl_Callback*)cb_m_SeqChoice2);
  54.         o->align(FL_ALIGN_TOP_LEFT);
  55.       }
  56.       { CCrossAlnWidget* o = m_AlnWidget = new CCrossAlnWidget(30, 70, 715, 365);
  57.         o->box(FL_FLAT_BOX);
  58.         o->color(FL_BACKGROUND2_COLOR);
  59.         o->selection_color(FL_BACKGROUND_COLOR);
  60.         o->labeltype(FL_NORMAL_LABEL);
  61.         o->labelfont(0);
  62.         o->labelsize(14);
  63.         o->labelcolor(FL_BLACK);
  64.         o->align(FL_ALIGN_CENTER);
  65.         o->when(FL_WHEN_RELEASE);
  66.         Fl_Group::current()->resizable(o);
  67.       }
  68.       o->end();
  69.       Fl_Group::current()->resizable(o);
  70.     }
  71.     o->end();
  72.   }
  73.   return w;
  74. }