37 #include <wx/bitmap.h>
83 SetExtraStyle(wxWS_EX_BLOCK_EVENTS|wxDIALOG_EX_CONTEXTHELP);
84 wxDialog::Create( parent,
id, caption, pos,
size, style );
89 GetSizer()->SetSizeHints(
this);
117 wxFlexGridSizer* itemFlexGridSizer2 =
new wxFlexGridSizer(2, 2, 0, 0);
118 itemDialog1->SetSizer(itemFlexGridSizer2);
120 wxArrayString m_AnnotBrowserStrings;
121 m_AnnotBrowser =
new wxListBox( itemDialog1,
ID_LISTBOX1, wxDefaultPosition, wxSize(250, 320), m_AnnotBrowserStrings, wxLB_SINGLE );
122 itemFlexGridSizer2->Add(
m_AnnotBrowser, 0, wxGROW|wxGROW|wxALL, 5);
124 wxStaticBox* itemStaticBoxSizer4Static =
new wxStaticBox(itemDialog1,
wxID_ANY,
_(
"Options"));
125 wxStaticBoxSizer* itemStaticBoxSizer4 =
new wxStaticBoxSizer(itemStaticBoxSizer4Static, wxVERTICAL);
126 itemFlexGridSizer2->Add(itemStaticBoxSizer4, 0, wxGROW|wxALIGN_TOP|wxALL, 5);
128 m_SmearAln =
new wxCheckBox( itemDialog1,
ID_CHECKBOX1,
_(
"Smear Alignments"), wxDefaultPosition, wxDefaultSize, 0 );
130 itemStaticBoxSizer4->Add(
m_SmearAln, 0, wxALIGN_LEFT|wxALL, 5);
134 itemStaticBoxSizer4->Add(
m_ShowLabel, 0, wxALIGN_LEFT|wxALL, 5);
139 wxColourPickerCtrl* itemColourPickerCtrl8 =
new wxColourPickerCtrl( itemDialog1,
ID_COLOURPICKERCTRL );
142 wxStaticText* itemStaticText9 =
new wxStaticText( itemDialog1, wxID_STATIC,
_(
"Annotation Background Color"), wxDefaultPosition, wxDefaultSize, 0 );
145 itemFlexGridSizer2->Add(5, 5, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
147 wxStdDialogButtonSizer* itemStdDialogButtonSizer11 =
new wxStdDialogButtonSizer;
149 itemFlexGridSizer2->Add(itemStdDialogButtonSizer11, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
150 wxButton* itemButton12 =
new wxButton( itemDialog1, wxID_OK,
_(
"&OK"), wxDefaultPosition, wxDefaultSize, 0 );
151 itemButton12->SetDefault();
152 itemStdDialogButtonSizer11->AddButton(itemButton12);
154 wxButton* itemButton13 =
new wxButton( itemDialog1, wxID_CANCEL,
_(
"&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
155 itemStdDialogButtonSizer11->AddButton(itemButton13);
157 itemStdDialogButtonSizer11->Realize();
159 itemFlexGridSizer2->AddGrowableRow(0);
160 itemFlexGridSizer2->AddGrowableCol(0);
187 if (sel_idx == wxNOT_FOUND) {
194 name.swap(the_state);
205 return am_it->second;
216 for ( ; align_iter; ++align_iter) {
266 CAnnotWriteConfig::CAnnotConfigSettings settings;
268 if (TransferDataFromWindow()) {
280 CAnnotWriteConfig::CAnnotConfigSettings settings;
EVT_CHECKBOX(ID_CADJUSTFEATURES_CHECKBOX, CAdjustFeaturesForGaps::OnKnownUnknownSelected) EVT_CHECKBOX(ID_CADJUSTFEATURES_CHECKBOX1
void OnSmearAlnClicked(wxCommandEvent &event)
void x_InitAnnotList(const objects::CBioseq_Handle &bsh)
void x_LoadWidgetValues()
wxBoxSizer * m_AnnotColorPicker
void x_SaveWidgetValues()
wxIcon GetIconResource(const wxString &name)
wxListBox * m_AnnotBrowser
wxBitmap GetBitmapResource(const wxString &name)
CRgbaColor m_AnnotBgColor
bool x_GetSelectedAnnotName(string &name)
bool Create(wxWindow *parent, wxWindowID id=10013, const wxString &caption=_("Annotation Rendering Options"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
void x_AnnotBrowserSelectionChanged()
void OnOkClick(wxCommandEvent &event)
CRef< objects::CSeq_annot > x_FindAnnot(const string &label)
static bool ShowToolTips()
CAnnotWriteConfig m_AnnotConfig
void SetBioseq(const objects::CBioseq_Handle &bsh)
void OnAnnotBrowserSelected(wxCommandEvent &event)
container_type::iterator iterator
const_iterator end() const
const_iterator find(const key_type &key) const
iterator_bool insert(const value_type &val)
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
static objects::SAnnotSelector GetAnnotSelector(TAnnotFlags flags=0)
request an annotation selector for a given type
static void GetLabel(const CObject &obj, string *label, ELabelType type=eDefault)
CConstRef< CSeq_annot > GetCompleteSeq_annot(void) const
Complete and return const reference to the current seq-annot.
const CSeq_annot_Handle & GetAnnot(void) const
Get handle to the seq-annot.
CSeq_align_Handle GetSeq_align_Handle(void) const
Get original alignment handle.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static const char label[]
const struct ncbi::grid::netcache::search::fields::SIZE size
#define ID_COLOURPICKERCTRL
wxString ToWxString(const string &s)
string ToStdString(const wxString &s)