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

Go to the SVN repository for this file.

1 /* $Id: unaligned_region_dlg.hpp 33153 2015-06-04 21:41:47Z evgeniev $
2  * ===========================================================================
3  *
4  * PUBLIC DOMAIN NOTICE
5  * National Center for Biotechnology Information
6  *
7  * This software/database is a "United States Government Work" under the
8  * terms of the United States Copyright Act. It was written as part of
9  * the author's official duties as a United States Government employee and
10  * thus cannot be copyrighted. This software/database is freely available
11  * to the public for use. The National Library of Medicine and the U.S.
12  * Government have not placed any restriction on its use or reproduction.
13  *
14  * Although all reasonable efforts have been taken to ensure the accuracy
15  * and reliability of the software and data, the NLM and the U.S.
16  * Government do not and cannot warrant the performance or results that
17  * may be obtained by using this software or data. The NLM and the U.S.
18  * Government disclaim all warranties, express or implied, including
19  * warranties of performance, merchantability or fitness for any particular
20  * purpose.
21  *
22  * Please cite the author in any work or product based on this material.
23  *
24  * ===========================================================================
25  *
26  * Authors: Vladislav Evgeniev
27  *
28  * File Description: Dialog, displaying unaligned regions.
29  *
30  */
31 #ifndef _UNALIGNED_REGION_DLG_H_
32 #define _UNALIGNED_REGION_DLG_H_
33 
34 
35 /*!
36  * Includes
37  */
38 #include <wx/dialog.h>
39 #include <wx/sizer.h>
40 #include <wx/button.h>
41 ////@begin includes
42 #include "wx/richtext/richtextctrl.h"
43 ////@end includes
44 
45 /*!
46  * Forward declarations
47  */
48 
49 ////@begin forward declarations
50 class wxRichTextCtrl;
51 ////@end forward declarations
52 
53 /*!
54  * Control identifiers
55  */
56 
57 ////@begin control identifiers
58 #define ID_UNALIGNEDREGION 10000
59 #define ID_SEQUENCE_RICHTEXTCTRL 10001
60 #define SYMBOL_CUNALIGNEDREGIONDLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
61 #define SYMBOL_CUNALIGNEDREGIONDLG_TITLE _("Unaligned Region")
62 #define SYMBOL_CUNALIGNEDREGIONDLG_IDNAME ID_UNALIGNEDREGION
63 #define SYMBOL_CUNALIGNEDREGIONDLG_SIZE wxSize(400, 300)
64 #define SYMBOL_CUNALIGNEDREGIONDLG_POSITION wxDefaultPosition
65 ////@end control identifiers
66 
68 
69 /*!
70  * CUnalignedRegionDlg class declaration
71  */
72 
73 class CUnalignedRegionDlg: public wxDialog
74 {
75  DECLARE_DYNAMIC_CLASS( CUnalignedRegionDlg )
76  DECLARE_EVENT_TABLE()
77 
78 public:
79  /// Constructors
81  CUnalignedRegionDlg( wxWindow* parent, wxWindowID id = SYMBOL_CUNALIGNEDREGIONDLG_IDNAME, const wxString& caption = SYMBOL_CUNALIGNEDREGIONDLG_TITLE, const wxPoint& pos = SYMBOL_CUNALIGNEDREGIONDLG_POSITION, const wxSize& size = SYMBOL_CUNALIGNEDREGIONDLG_SIZE, long style = SYMBOL_CUNALIGNEDREGIONDLG_STYLE );
82 
83  /// Creation
84  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CUNALIGNEDREGIONDLG_IDNAME, const wxString& caption = SYMBOL_CUNALIGNEDREGIONDLG_TITLE, const wxPoint& pos = SYMBOL_CUNALIGNEDREGIONDLG_POSITION, const wxSize& size = SYMBOL_CUNALIGNEDREGIONDLG_SIZE, long style = SYMBOL_CUNALIGNEDREGIONDLG_STYLE );
85 
86  /// Destructor
88 
89  /// Initialises member variables
90  void Init();
91 
92  /// Creates the controls and sizers
93  void CreateControls();
94 
95 // void SetData(const wxString &sequenceText, size_t unalignedRegionFrom, size_t unalignedRegionTo);
96  void WriteNormalText(const wxString &text);
97  void WriteRedText(const wxString &text);
98 
99 ////@begin CUnalignedRegionDlg event handler declarations
100 
101 ////@end CUnalignedRegionDlg event handler declarations
102 
103 ////@begin CUnalignedRegionDlg member function declarations
104 
105  wxBitmap GetBitmapResource( const wxString& name );
106 
107  wxIcon GetIconResource( const wxString& name );
108 ////@end CUnalignedRegionDlg member function declarations
109 
110  /// Should we show tooltips?
111  static bool ShowToolTips();
112 
113 ////@begin CUnalignedRegionDlg member variables
114  wxRichTextCtrl* m_SequenceTextCtrl;
115 ////@end CUnalignedRegionDlg member variables
116 };
117 
119 
120 #endif
121  // _UNALIGNED_REGION_DLG_H_
bool Create(wxWindow *parent, wxWindowID id=10000, const wxString &caption=_("Unaligned Region"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
wxBitmap GetBitmapResource(const wxString &name)
wxIcon GetIconResource(const wxString &name)
void CreateControls()
Creates the controls and sizers.
wxRichTextCtrl * m_SequenceTextCtrl
void WriteNormalText(const wxString &text)
static bool ShowToolTips()
Should we show tooltips?
void WriteRedText(const wxString &text)
CUnalignedRegionDlg()
Constructors.
void Init()
Initialises member variables.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
static void text(MDB_val *v)
Definition: mdb_dump.c:62
const struct ncbi::grid::netcache::search::fields::SIZE size
#define SYMBOL_CUNALIGNEDREGIONDLG_TITLE
#define SYMBOL_CUNALIGNEDREGIONDLG_SIZE
#define SYMBOL_CUNALIGNEDREGIONDLG_POSITION
#define SYMBOL_CUNALIGNEDREGIONDLG_IDNAME
#define SYMBOL_CUNALIGNEDREGIONDLG_STYLE
Modified on Wed Apr 17 13:08:52 2024 by modify_doxy.py rev. 669887