NCBI C++ ToolKit
seq_feat_remove_dlg.cpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: seq_feat_remove_dlg.cpp 25493 2012-03-27 18:28:58Z kuznets $
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: Roman Katargin
27  *
28  * File Description:
29  *
30  */
31 
32 #include <ncbi_pch.hpp>
33 
34 ////@begin includes
35 ////@end includes
36 
37 #include "seq_feat_remove_dlg.hpp"
38 
39 #include <wx/sizer.h>
40 #include <wx/stattext.h>
41 #include <wx/radiobut.h>
42 #include <wx/icon.h>
43 #include <wx/bitmap.h>
44 #include <wx/button.h>
45 #include <wx/textctrl.h>
46 
47 ////@begin XPM images
48 ////@end XPM images
49 
51 
52 IMPLEMENT_DYNAMIC_CLASS( CSeqFeatRemoveDlg, wxDialog )
53 
54 BEGIN_EVENT_TABLE( CSeqFeatRemoveDlg, wxDialog )
55 
56 ////@begin CSeqFeatRemoveDlg event table entries
57 ////@end CSeqFeatRemoveDlg event table entries
58 
60 
62 {
63  Init();
64 }
65 
66 CSeqFeatRemoveDlg::CSeqFeatRemoveDlg( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
67 {
68  Init();
69  Create(parent, id, caption, pos, size, style);
70 }
71 
72 bool CSeqFeatRemoveDlg::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
73 {
74 ////@begin CSeqFeatRemoveDlg creation
75  SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
76  wxDialog::Create( parent, id, caption, pos, size, style );
77 
79  if (GetSizer())
80  {
81  GetSizer()->SetSizeHints(this);
82  }
83  Centre();
84 ////@end CSeqFeatRemoveDlg creation
85  return true;
86 }
87 
89 {
90 ////@begin CSeqFeatRemoveDlg destruction
91 ////@end CSeqFeatRemoveDlg destruction
92 }
93 
95 {
96 ////@begin CSeqFeatRemoveDlg member initialisation
97 ////@end CSeqFeatRemoveDlg member initialisation
98 }
99 
101 {
102 ////@begin CSeqFeatRemoveDlg content construction
103  CSeqFeatRemoveDlg* itemDialog1 = this;
104 
105  wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL);
106  itemDialog1->SetSizer(itemBoxSizer2);
107 
108  wxStaticText* itemStaticText3 = new wxStaticText( itemDialog1, wxID_STATIC, _("Do you really want to delete the following:"), wxDefaultPosition, wxDefaultSize, 0 );
109  itemBoxSizer2->Add(itemStaticText3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
110 
111  wxTextCtrl* itemTextCtrl4 = new wxTextCtrl( itemDialog1, ID_TEXTCTRL1, wxT(""), wxDefaultPosition, itemDialog1->ConvertDialogToPixels(wxSize(250, 120)), wxTE_MULTILINE );
112  itemBoxSizer2->Add(itemTextCtrl4, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
113 
114  wxStdDialogButtonSizer* itemStdDialogButtonSizer5 = new wxStdDialogButtonSizer;
115 
116  itemBoxSizer2->Add(itemStdDialogButtonSizer5, 0, wxALIGN_RIGHT|wxALL, 5);
117  wxButton* itemButton6 = new wxButton( itemDialog1, wxID_OK, _("&OK"), wxDefaultPosition, wxDefaultSize, 0 );
118  itemStdDialogButtonSizer5->AddButton(itemButton6);
119 
120  wxButton* itemButton7 = new wxButton( itemDialog1, wxID_CANCEL, _("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
121  itemStdDialogButtonSizer5->AddButton(itemButton7);
122 
123  itemStdDialogButtonSizer5->Realize();
124 
125  // Set validators
126  itemTextCtrl4->SetValidator( wxTextValidator(wxFILTER_NONE, & m_Text) );
127 ////@end CSeqFeatRemoveDlg content construction
128 }
129 
131 {
132  return true;
133 }
134 wxBitmap CSeqFeatRemoveDlg::GetBitmapResource( const wxString& name )
135 {
136  // Bitmap retrieval
137 ////@begin CSeqFeatRemoveDlg bitmap retrieval
138  wxUnusedVar(name);
139  return wxNullBitmap;
140 ////@end CSeqFeatRemoveDlg bitmap retrieval
141 }
142 wxIcon CSeqFeatRemoveDlg::GetIconResource( const wxString& name )
143 {
144  // Icon retrieval
145 ////@begin CSeqFeatRemoveDlg icon retrieval
146  wxUnusedVar(name);
147  return wxNullIcon;
148 ////@end CSeqFeatRemoveDlg icon retrieval
149 }
150 
bool Create(wxWindow *parent, wxWindowID id=ID_CSEQFEATREMOVEDLG, const wxString &caption=_("Feature Delete Dialog"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
wxBitmap GetBitmapResource(const wxString &name)
wxIcon GetIconResource(const wxString &name)
#define _(proto)
Definition: ct_nlmzip_i.h:78
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
END_EVENT_TABLE()
#define wxT(x)
Definition: muParser.cpp:41
const struct ncbi::grid::netcache::search::fields::SIZE size
Modified on Sun Mar 03 03:16:05 2024 by modify_doxy.py rev. 669887