NCBI C++ ToolKit
wx_build_options_dlg.hpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 #ifndef GUI_WIDGETS_ALN_MULTIPLE___WX_BUILD_OPTIONS_DLG__HPP
2 #define GUI_WIDGETS_ALN_MULTIPLE___WX_BUILD_OPTIONS_DLG__HPP
3 /* $Id: wx_build_options_dlg.hpp 25493 2012-03-27 18:28:58Z kuznets $
4  * ===========================================================================
5  *
6  * PUBLIC DOMAIN NOTICE
7  * National Center for Biotechnology Information
8  *
9  * This software/database is a "United States Government Work" under the
10  * terms of the United States Copyright Act. It was written as part of
11  * the author's official duties as a United States Government employee and
12  * thus cannot be copyrighted. This software/database is freely available
13  * to the public for use. The National Library of Medicine and the U.S.
14  * Government have not placed any restriction on its use or reproduction.
15  *
16  * Although all reasonable efforts have been taken to ensure the accuracy
17  * and reliability of the software and data, the NLM and the U.S.
18  * Government do not and cannot warrant the performance or results that
19  * may be obtained by using this software or data. The NLM and the U.S.
20  * Government disclaim all warranties, express or implied, including
21  * warranties of performance, merchantability or fitness for any particular
22  * purpose.
23  *
24  * Please cite the author in any work or product based on this material.
25  *
26  * ===========================================================================
27  *
28  * Authors: Andrey Yazhuk
29  *
30  * File Description:
31  *
32  */
33 
35 
37 
38 ////@begin includes
39 #include "wx/valgen.h"
40 ////@end includes
41 
42 ////@begin forward declarations
43 ////@end forward declarations
44 
45 class wxListBox;
46 class wxTextCtrl;
47 
48 ////@begin control identifiers
49 #define SYMBOL_CBUILDOPTIONSDLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
50 #define SYMBOL_CBUILDOPTIONSDLG_TITLE wxT("Build Alignment")
51 #define SYMBOL_CBUILDOPTIONSDLG_IDNAME ID_CWXBUILDOPTIONSDLG
52 #define SYMBOL_CBUILDOPTIONSDLG_SIZE wxSize(400, 300)
53 #define SYMBOL_CBUILDOPTIONSDLG_POSITION wxDefaultPosition
54 ////@end control identifiers
55 
56 
58 
59 ///////////////////////////////////////////////////////////////////////////////
60 /// CwxBuildOptionsDlg
62 {
63  DECLARE_DYNAMIC_CLASS( CBuildOptionsDlg )
64  DECLARE_EVENT_TABLE()
65 
66 public:
68  CBuildOptionsDlg( wxWindow* parent, wxWindowID id = SYMBOL_CBUILDOPTIONSDLG_IDNAME, const wxString& caption = SYMBOL_CBUILDOPTIONSDLG_TITLE, const wxPoint& pos = SYMBOL_CBUILDOPTIONSDLG_POSITION, const wxSize& size = SYMBOL_CBUILDOPTIONSDLG_SIZE, long style = SYMBOL_CBUILDOPTIONSDLG_STYLE );
69 
70  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CBUILDOPTIONSDLG_IDNAME, const wxString& caption = SYMBOL_CBUILDOPTIONSDLG_TITLE, const wxPoint& pos = SYMBOL_CBUILDOPTIONSDLG_POSITION, const wxSize& size = SYMBOL_CBUILDOPTIONSDLG_SIZE, long style = SYMBOL_CBUILDOPTIONSDLG_STYLE );
71 
73 
74  void Init();
75 
76  void CreateControls();
77 
78 ////@begin CBuildOptionsDlg event handler declarations
79 
80  void OnMultipleRadioSelected( wxCommandEvent& event );
81 
82  void OnQueryRadioSelected( wxCommandEvent& event );
83 
84  void OnOriginalRadioSelected( wxCommandEvent& event );
85 
86  void OnClipRadioSelected( wxCommandEvent& event );
87 
88  void OnExtendRadioSelected( wxCommandEvent& event );
89 
90  void OnShowFlankRadioSelected( wxCommandEvent& event );
91 
92  void OnShowUaRadioSelected( wxCommandEvent& event );
93 
94 ////@end CBuildOptionsDlg event handler declarations
95 
96 ////@begin CBuildOptionsDlg member function declarations
97 
98  wxBitmap GetBitmapResource( const wxString& name );
99 
100  wxIcon GetIconResource( const wxString& name );
101 ////@end CBuildOptionsDlg member function declarations
102 
103  static bool ShowToolTips();
104 
105 public:
106  virtual bool TransferDataToWindow();
107  virtual bool TransferDataFromWindow();
108 
109  void SetParams(const CAlnMultiDSBuilder::TOptions& options, const vector<CBioseq_Handle>& handles, objects::CScope& scope);
110  void GetOptions(CAlnMultiDSBuilder::TOptions& options);
111 
112 protected:
113 ////@begin CBuildOptionsDlg member variables
114  wxListBox* m_AnchorIDList;
115  wxTextCtrl* m_StartText;
116  wxTextCtrl* m_EndText;
117  wxTextCtrl* m_ExtentText;
118  wxTextCtrl* m_FlankText;
119 protected:
123  bool m_Clip;
124  bool m_Extend;
125  wxArrayInt m_IDIndexes;
127  enum {
128  ID_CWXBUILDOPTIONSDLG = 10002,
129  ID_MULTIPLE_RADIO = 10004,
130  ID_QUERY_RADIO = 10003,
131  ID_ANCHOR_LIST = 10005,
132  ID_ORIGINAL_RADIO = 10006,
133  ID_CLIP_RADIO = 10007,
134  ID_START_TEXT = 10017,
135  ID_END_TEXT = 10009,
136  ID_EXTEND_RADIO = 10008,
137  ID_TEXTCTRL = 10010,
138  ID_HIDE_UA_RADIO = 10018,
139  ID_SHOW_FLANK_RADIO = 10020,
140  ID_EXTENT_TEXT = 10021,
141  ID_SHOW_UA_RADIO = 10018,
142  ID_COMBINE_CHECK = 10012,
143  ID_SEPARATE_STRANDS = 10011
144  };
145 ////@end CBuildOptionsDlg member variables
146 
147  vector<CBioseq_Handle> m_Handles;
150 };
151 
153 
154 #endif // GUI_WIDGETS_ALN_MULTIPLE___WX_BUILD_OPTIONS_DLG__HPP
Options for different alignment manager operations.
CwxBuildOptionsDlg.
vector< CBioseq_Handle > m_Handles
CAlnMultiDSBuilder::TOptions m_Options
CDialog.
Definition: dialog.hpp:47
static void Init(void)
Definition: cursor6.c:76
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
virtual void SetParams()
Called at the beginning of Run, before creating thread pool.
#define NCBI_GUIWIDGETS_ALNMULTIPLE_EXPORT
Definition: gui_export.h:520
const struct ncbi::grid::netcache::search::fields::SIZE size
#define ID_TEXTCTRL
#define SYMBOL_CBUILDOPTIONSDLG_IDNAME
#define SYMBOL_CBUILDOPTIONSDLG_SIZE
#define SYMBOL_CBUILDOPTIONSDLG_POSITION
#define SYMBOL_CBUILDOPTIONSDLG_TITLE
#define SYMBOL_CBUILDOPTIONSDLG_STYLE
Modified on Fri Sep 20 14:58:25 2024 by modify_doxy.py rev. 669887