A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/remove__desc__dlg_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/packages/pkg_sequence_edit/remove_desc_dlg.cpp Source File

41 #include <wx/button.h> 42 #include <wx/statbox.h> 44 #include <wx/listctrl.h> 45 #include <wx/radiobut.h> 46 #include <wx/checkbox.h> 47 #include <wx/textctrl.h> 81

wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

85  Create

(parent,

id

, caption, pos,

size

, style);

94

wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

97 

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

98

wxDialog::Create( parent,

id

, caption, pos,

size

, style );

103

GetSizer()->SetSizeHints(

this

);

108

SetSize(wxSize(280, 750));

169

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

170

itemDialog1->SetSizer(itemBoxSizer2);

172

wxBoxSizer* itemBoxSizer3 =

new

wxBoxSizer(wxHORIZONTAL);

173

itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

176

itemBoxSizer3->Add(

m_ListCtrl

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

178  m_ListCtrl

->InsertColumn(0,

" Descriptor"

, wxLIST_FORMAT_LEFT, 237);

187

wxBoxSizer* itemBoxSizer5 =

new

wxBoxSizer(wxHORIZONTAL);

188

itemBoxSizer2->Add(itemBoxSizer5, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

190

wxBoxSizer* itemBoxSizer6 =

new

wxBoxSizer(wxVERTICAL);

191

itemBoxSizer5->Add(itemBoxSizer6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

193

wxStaticBox* itemStaticBoxSizer7Static =

new

wxStaticBox(itemDialog1,

wxID_ANY

,

_

(

"Optional String Constraint"

));

194

wxStaticBoxSizer* itemStaticBoxSizer7 =

new

wxStaticBoxSizer(itemStaticBoxSizer7Static, wxVERTICAL);

195

itemBoxSizer6->Add(itemStaticBoxSizer7, 0, wxALIGN_LEFT|wxALL, 5);

197  m_RadioButton

=

new

wxRadioButton(itemDialog1,

ID_RBTN_RMVDESC1

,

_

(

"Remove When Text Is Present"

), wxDefaultPosition, wxDefaultSize, wxRB_GROUP);

199

itemStaticBoxSizer7->Add(

m_RadioButton

, 0, wxALIGN_LEFT|wxALL, 5);

201

wxRadioButton* itemRadioButton9 =

new

wxRadioButton(itemDialog1,

ID_RBTN_RMVDESC2

,

_

(

"Remove When Text Is Not Present"

));

202

itemRadioButton9->SetValue(

false

);

203

itemStaticBoxSizer7->Add(itemRadioButton9, 0, wxALIGN_LEFT|wxALL, 5);

206

itemStaticBoxSizer7->Add(

m_TextCtrl

, 0, wxALIGN_LEFT|wxALL, 5);

210

itemStaticBoxSizer7->Add(

m_CheckBox

, 0, wxALIGN_LEFT|wxALL, 5);

212

wxBoxSizer* itemBoxSizer12 =

new

wxBoxSizer(wxHORIZONTAL);

213

itemBoxSizer2->Add(itemBoxSizer12, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

215

wxButton* itemButton13 =

new

wxButton( itemDialog1, wxID_OK,

_

(

"Accept"

), wxDefaultPosition, wxDefaultSize, 0 );

216

itemBoxSizer12->Add(itemButton13, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

218

wxButton* itemButton14 =

new

wxButton( itemDialog1, wxID_CANCEL,

_

(

"Cancel"

), wxDefaultPosition, wxDefaultSize, 0 );

219

itemBoxSizer12->Add(itemButton14, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

265

item =

m_ListCtrl

->GetNextItem(item, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED);

266  if

( item == -1 )

break

;

280  if

((*it)->Which() == choice)

286  if

((*it)->GetUser().IsSetType() &&

287

(*it)->GetUser().GetType().IsStr() &&

288

(*it)->GetUser().GetType().GetStr() == name)

void AddCommand(IEditCommand &command)

CNcbiOstrstreamToString class helps convert CNcbiOstrstream to a string Sample usage:

bool Create(wxWindow *parent, wxWindowID id=11000, const wxString &caption=_("Remove Descriptors"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)

Creation.

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

map< string, objects::CSeqdesc::E_Choice > m_Types

static bool ShowToolTips()

Should we show tooltips?

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

CRef< CCmdComposite > GetCommand()

wxRadioButton * m_RadioButton

void CreateControls()

Creates the controls and sizers.

~CRemoveDescDlg()

Destructor.

CRemoveDescDlg()

Constructors.

objects::CSeq_entry_Handle m_TopSeqEntry

void x_ApplyToSeq_entry(objects::CSeq_entry_Handle tse, const objects::CSeq_entry &se, CCmdComposite *composite, objects::CSeqdesc::E_Choice choice, const string &name)

void Init()

Initialises member variables.

container_type::iterator iterator

const_iterator begin() const

const_iterator end() const

std::ofstream out("events_result.xml")

main entry point for tests

static const char * str(char *buf, int n)

@ eSerial_AsnText

ASN.1 text.

static CObjectOStream * Open(ESerialDataFormat format, CNcbiOstream &outStream, bool deleteOutStream)

Create serial object writer and attach it to an output stream.

CSeq_entry_Handle GetSeq_entryHandle(CDataLoader *loader, const TBlobId &blob_id, EMissing action=eMissing_Default)

Get Seq-entry handle by its blob-id, with possible loading.

CScope & GetScope(void) const

Get scope this handle belongs to.

bool IsMatch(CTempString str, TMatch flags=fMatch_default)

Check existence substring which match a specified pattern.

void Set(CTempStringEx pattern, TCompile flags=fCompile_default)

Set and compile PCRE.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

const TSet & GetSet(void) const

Get the variant data.

bool IsSet(void) const

Check if variant Set is selected.

E_Choice

Choice variants.

@ e_Embl

EMBL specific information.

@ e_Het

cofactor, etc associated but not bound

@ e_Num

a numbering system

@ e_User

user defined object

@ e_Update_date

date of last update

@ e_Pub

a reference to the publication

@ e_Pir

PIR specific info.

@ e_Genbank

GenBank specific info.

@ e_Prf

PRF specific information.

@ e_Sp

SWISSPROT specific info.

@ e_Dbxref

xref to other databases

@ e_Comment

a more extensive comment

@ e_Region

overall region (globin locus)

@ e_Molinfo

info on the molecule and techniques

@ e_Maploc

map location of this sequence

@ e_Create_date

date entry first created/released

@ e_Title

a title for this sequence

@ e_Pdb

PDB specific information.

@ e_Name

a name for this sequence

@ e_Source

source of materials, includes Org-ref

const struct ncbi::grid::netcache::search::fields::SIZE size

static int match(PCRE2_SPTR start_eptr, PCRE2_SPTR start_ecode, uint16_t top_bracket, PCRE2_SIZE frame_size, pcre2_match_data *match_data, match_block *mb)

#define ID_CHKBOX_RMVDESC

#define ID_LISTCTRL_DESC_DLG

#define FOR_EACH_SEQENTRY_ON_SEQSET(Itr, Var)

FOR_EACH_SEQENTRY_ON_SEQSET EDIT_EACH_SEQENTRY_ON_SEQSET.

#define FOR_EACH_SEQDESC_ON_SEQENTRY(Itr, Var)

FOR_EACH_SEQDESC_ON_SEQENTRY EDIT_EACH_SEQDESC_ON_SEQENTRY.

C++ wrappers for the Perl-compatible regular expression (PCRE) library.

wxString ToWxString(const string &s)

string ToStdString(const wxString &s)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4