47 #include <wx/settings.h>
48 #include <wx/dcclient.h>
55 m_BioseqEditor(bioseqEditor),
56 m_TooltipContext(tooltpContext),
57 m_ShowAsnTypes(
false),
58 m_ShowPathToRoot(
false)
120 tooltipWnd->SetBackgroundColour(wxColor(255, 255, 225));
125 info->AddLine(
"Path to Root:");
128 for (
size_t i = 0;
i <
m_Hier.size(); ++
i) {
138 wxClientDC dc(tooltipWnd);
142 }
catch (
const exception&) {
145 tooltipWnd->SetClientSize(
size);
158 : m_Editor(editor),
m_Scope(scope) {}
160 virtual bool ProcessItem(
CTextItem& textItem)
164 x_UpdateEditFlags(*asnItem);
172 flags = x_UpdateEditFlags(*asnItem);
184 flags = m_Editor.GetEditFlags(eo);
236 for (TEditObjectList::iterator it2 =
objects.begin(); it2 !=
objects.end();) {
237 const CObject* pobj = it2->m_Obj.GetPointer();
238 if (objSet.
find(pobj) != objSet.
end()) {
static CRef< CScope > m_Scope
void SetEditFlags(int flags)
CEditObject GetEditObject(objects::CScope &scope)
virtual objects::CBioseq_Handle GetCurrentBioseq()
virtual void SetPanel(CTextItemPanel *panel)
CIRef< IBioseqEditor > m_BioseqEditor
virtual void RootInitialized()
virtual wxWindow * CreateTooltipWindow()
void SetShowAsnTypes(bool show)
virtual wxString GetWorkDir() const
virtual void GetCurrentSelection(TEditObjectList &objects)
virtual void MouseMoveInContainer(ITextItem *container)
virtual wxMenu * CreateMenu() const
void SetShowPathToRoot(bool show)
CAsnViewContext(objects::CScope &scope, const CSerialObject *so, IBioseqEditor *bioseqEditor=0, bool tooltpContext=false)
ITextItem * GetItem(size_t index)
virtual void CalcSize(wxDC &dc, CTextPanelContext *context)
size_t GetItemCount() const
void AddItem(ITextItem *item, bool updatePositions=true)
CConstRef< CObject > m_Obj
void SetSelectable(bool selectable=true)
CTextItem * GetCollapsedItem()
Base class for all serializable objects.
void SetMainItem(ITextItem *item, CTextPanelContext *context)
ITextItem * GetRootItem()
virtual wxSize GetSize() const
ITextItem * m_MouseOverItem
friend class CTextItemPanel
void AddHier(ITextItem *item)
CRef< objects::CScope > m_Scope
vector< ITextItem * > m_Hier
virtual void SetPanel(CTextItemPanel *panel)
set< ITextItem * > m_SelectedItems
virtual bool Traverse(ICompositeTraverser &)=0
iterator_bool insert(const value_type &val)
const_iterator find(const key_type &key) const
const_iterator end() const
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
vector< CEditObject > TEditObjectList
const struct ncbi::grid::netcache::search::fields::SIZE size
static CS_CONTEXT * context