49 #include <wx/msgdlg.h>
72 parent = wxTheApp->GetTopWindow();
75 bool res = wxFrame::Create(parent,
id, title, pos,
size, style, name);
76 wxVisualAttributes attr = wxPanel::GetClassDefaultAttributes();
77 if (attr.colBg != wxNullColour)
78 SetOwnBackgroundColour(attr.colBg);
87 parent = wxTheApp->GetTopWindow();
89 return wxFrame::Create(parent,
id, title, pos,
size, style, name);
106 if (!sel_srv)
return false;
107 sel_srv->GetActiveObjects(
objects);
130 if (!ws)
return false;
155 sel_srv->GetActiveObjects(sel_objects);
157 if (sel_objects.empty())
166 wxSizerItemList& slist = sizer->GetChildren();
168 for (wxSizerItemList::iterator iter = slist.begin(); iter != slist.end(); ++iter, ++
n) {
169 if ((*iter)->IsSizer()) {
171 }
else if ((*iter)->IsWindow()) {
172 wxWindow* child = (*iter)->GetWindow();
179 wxSizer* subsizer = child->GetSizer();
195 if (num_conflicts > 0) {
196 string msg =
"Do you want to overwrite " +
NStr::NumericToString(num_conflicts) +
" existing values?";
197 int answer = wxMessageBox(
ToWxString(msg),
wxT(
"Existing Text"),
198 wxYES_NO | wxCANCEL | wxICON_QUESTION,
this);
199 if (answer == wxCANCEL) {
201 }
else if (answer == wxYES) {
206 if (dlg.ShowModal() == wxID_OK) {
215 return existing_text;
221 if (
orig.GetWidth() < add.GetWidth() + borders) {
222 orig.SetWidth(add.GetWidth() + borders);
224 orig.SetHeight(
orig.GetHeight() + add.GetHeight() + borders);
User-defined methods of the data storage class.
User-defined methods of the data storage class.
void AddSize(wxSize &orig, const wxSize &add, int borders)
USING_SCOPE(ncbi::objects)
TConstScopedObjects GetSelectedObjects()
virtual void ExecuteCmd(CRef< CCmdComposite > cmd)
void onCancelPressed(wxCommandEvent &event)
CConstRef< objects::CSeq_submit > m_SeqSubmit
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)
bool GetTopLevelSeqEntryAndProcessor()
ICommandProccessor * m_CmdProccessor
void UpdateChildrenFeaturePanels(wxSizer *sizer)
edit::EExistingText x_GetExistingTextHandling(int num_conflicts, bool allow_multiple=false)
objects::edit::EExistingText GetExistingTextHandler()
void AllowAdditionalQual(bool val)
void ListPresentFeaturesFirst(const objects::CSeq_entry_Handle &entry, vector< const objects::CFeatListItem * > *featlist=nullptr)
CUndoManager & GetUndoManager()
CProjectService - a service providing API for operations with Workspaces and Projects.
virtual void Execute(IEditCommand *command, wxWindow *window=0)=0
IWorkbench is the central interface in the application framework.
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
CIRef< T > GetServiceByType()
retrieves a typed reference to a service, the name of C++ type is used as the name of the service.
objects::CSeq_entry_Handle GetTopSeqEntryFromScopedObject(SConstScopedObject &obj)
vector< SConstScopedObject > TConstScopedObjects
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static enable_if< is_arithmetic< TNumeric >::value||is_convertible< TNumeric, Int8 >::value, string >::type NumericToString(TNumeric value, TNumToStringFlags flags=0, int base=10)
Convert numeric value to string.
where boath are integers</td > n< td ></td > n</tr > n< tr > n< td > tse</td > n< td > optional</td > n< td > String</td > n< td class=\"description\"> TSE option controls what blob is orig
void GetViewObjects(IWorkbench *workbench, TConstScopedObjects &objects)
const struct ncbi::grid::netcache::search::fields::SIZE size
@ eExistingText_replace_old
wxString ToWxString(const string &s)