43 #include <wx/msgdlg.h>
64 const wxString& caption,
const wxPoint& pos,
65 const wxSize&
size,
long style )
74 const wxString& caption,
const wxPoint& pos,
75 const wxSize&
size,
long style )
78 SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
84 GetSizer()->SetSizeHints(
this);
113 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
114 itemCBulkCmdDlg1->SetSizer(itemBoxSizer2);
116 wxStaticText* itemStaticText3 =
new wxStaticText(itemCBulkCmdDlg1, wxID_STATIC,
_(
"Title"), wxDefaultPosition, wxDefaultSize, 0);
117 itemBoxSizer2->Add(itemStaticText3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
120 itemBoxSizer2->Add(
m_Title, 0, wxGROW|wxALL, 5);
123 itemBoxSizer2->Add(
m_OkCancel, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
162 string msg(
"You are manually editing a title. If you continue, the title will not be automatically\n"
163 "updated if the taxonomy information changes. Do you want to continue?");
164 if (wxNO == wxMessageBox(
ToWxString(
msg),
wxT(
"Confirm"), wxYES_NO | wxICON_QUESTION)) {
191 for ( ; b_iter ; ++b_iter){
201 for ( ; set_ci ; ++set_ci){
217 bool modified =
false;
219 for ( ; entry_ci ; ++entry_ci){
233 string new_title = seqdesc->
GetTitle();
269 if ((*seqdesc)->IsTitle()){
void RemoveTitlesSeqEntry(CSeq_entry_Handle seh, const CSeq_entry &entry, CCmdComposite *composite)
bool UpdateAllDefinitionLine(CSeq_entry_Handle entry, CCmdComposite *composite, const string &title, edit::EExistingText existing_text)
void UpdateOneDefLine(const CSeq_entry_CI &entry_ci, CCmdComposite *composite, const string &title, edit::EExistingText existing_text, bool &modified)
int CountDefLineConflicts(CSeq_entry_Handle entry, const string &title)
#define ID_ADDDEFLINE_OKCANCEL
#define ID_ADDDEFLINE_TEXTCTRL
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
virtual CRef< CCmdComposite > GetCommand()
void CreateControls()
Creates the controls and sizers.
void Init()
Initialises member variables.
static bool ShowToolTips()
Should we show tooltips?
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
virtual string GetErrorMessage()
COkCancelPanel * m_OkCancel
bool Create(wxWindow *parent, wxWindowID id=10262, const wxString &caption=_("Add Definition Line"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
CAddDefLineDlg()
Constructors.
~CAddDefLineDlg()
Destructor.
bool NeedsDocsumTitle() const
objects::CSeq_entry_Handle m_TopSeqEntry
bool Create(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxFrameNameStr)
edit::EExistingText x_GetExistingTextHandling(int num_conflicts, bool allow_multiple=false)
void AddCommand(IEditCommand &command)
@ eObjectType_AutodefOptions
IWorkbench is the central interface in the application framework.
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.
TClass GetClass(void) const
bool IsSetClass(void) const
CScope & GetScope(void) const
Get scope this handle belongs to.
CSeq_entry_Handle GetSeq_entry_Handle(void) const
@ fIncludeGivenEntry
Include the top (given) entry.
@ fRecursive
Iterate recursively.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static bool IsBlank(const CTempString str, SIZE_TYPE pos=0)
Check if a string is blank (has no text).
static void TruncateSpacesInPlace(string &str, ETrunc where=eTrunc_Both)
Truncate whitespace in a string (in-place)
static bool Equal(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2, ECase use_case=eCase)
Test for equality of a substring with another string.
static string & ReplaceInPlace(string &src, const string &search, const string &replace, SIZE_TYPE start_pos=0, SIZE_TYPE max_replace=0, SIZE_TYPE *num_replace=0)
Replace occurrences of a substring within a string.
const TSet & GetSet(void) const
Get the variant data.
bool IsSet(void) const
Check if variant Set is selected.
TTitle & SetTitle(void)
Select the variant.
const TTitle & GetTitle(void) const
Get the variant data.
@ e_User
user defined object
@ e_Title
a title for this sequence
@ eMol_na
just a nucleic acid
const struct ncbi::grid::netcache::search::fields::SIZE size
#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.
static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
@ eExistingText_leave_old
bool AddValueToString(string &str, const string &value, EExistingText existing_text)
Add text to an existing string, using the "existing_text" directive to combine new text with existing...
wxString ToWxString(const string &s)
string ToStdString(const wxString &s)