wxWindowID
id,
constwxPoint& pos,
constwxSize&
size,
longstyle )
102wxPanel::Create( parent,
id, pos,
size, style );
107GetSizer()->SetSizeHints(
this);
150wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
151itemPanel1->SetSizer(itemBoxSizer2);
155 m_ScrolledWindow->SetToolTip(
_(
"The use of citations on features is discouraged. Use this to indicate citations that apply specifically to this feature."));
156itemBoxSizer2->Add(
m_ScrolledWindow, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 0);
158 m_Sizer=
newwxBoxSizer(wxVERTICAL);
167 inttotal_height = 0;
176vector<TEntrezId> pmids;
177vector<TEntrezId> muids;
179vector<string> published_labels;
180vector<string> unpublished_labels;
182 boolcan_cit =
true;
183 if(pmids.size() > 0) {
187}
else if(muids.size() > 0) {
191}
else if(serials.size() > 0) {
195}
else if(published_labels.size() > 0) {
199}
else if(unpublished_labels.size() > 0) {
216 intwin_height, win_width;
217checkbox->GetSize(&win_width, &win_height);
218total_height += win_height;
219scroll_rate = win_height;
220 if(total_width < win_width) {
221total_width = win_width;
229vector<TEntrezId> pmids;
230vector<TEntrezId> muids;
232vector<string> published_labels;
233vector<string> unpublished_labels;
235 boolcan_cit =
true;
236 if(pmids.size() > 0) {
240}
else if(muids.size() > 0) {
244}
else if(serials.size() > 0) {
248}
else if(published_labels.size() > 0) {
252}
else if(unpublished_labels.size() > 0) {
269 intwin_height, win_width;
270checkbox->GetSize(&win_width, &win_height);
271total_height += win_height;
272scroll_rate = win_height;
273 if(total_width < win_width) {
274total_width = win_width;
293 if(
a.IsSetSerial_number() &&
b.IsSetSerial_number()
294&&
a.GetSerial_number() ==
b.GetSerial_number()) {
296}
else if(
a.IsSetSerial_number() ||
b.IsSetSerial_number()) {
298}
else if(
a.IsSetCit() &&
b.IsSetCit()) {
299 stringx =
a.GetCit();
300 stringy =
b.GetCit();
310 if(
a.IsGen() &&
b.IsGen()) {
312}
else if(
a.IsPmid() &&
b.IsPmid()) {
313 return(
a.GetPmid().Get() ==
b.GetPmid().Get());
314}
else if(
a.IsMuid() &&
b.IsMuid()) {
315 return(
a.GetMuid() ==
b.GetMuid());
324 if(!wxPanel::TransferDataToWindow())
348 if(!wxPanel::TransferDataFromWindow())
372seq_feat.
SetCit().SetPub().push_back(cit);
static CRef< CScope > m_Scope
User-defined methods of the data storage class.
User-defined methods of the data storage class.
static bool s_DoPubsMatch(const CCit_gen &a, const CCit_gen &b)
virtual bool TransferDataFromWindow()
~CCitationsPanel()
Destructor.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void SetCitations(objects::CSeq_feat &seq_feat)
vector< wxCheckBox * > m_Checkboxes
wxScrolledWindow * m_ScrolledWindow
CCitationsPanel()
Constructors.
static bool ShowToolTips()
Should we show tooltips?
vector< CRef< objects::CPub > > m_PubList
virtual bool TransferDataToWindow()
void Init()
Initialises member variables.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
bool Create(wxWindow *parent, wxWindowID id=ID_CCITATIONSPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
void CreateControls()
Creates the controls and sizers.
objects::CScope * m_Scope
CRef< objects::CSeq_feat > m_EditedFeat
bool GetLabel(string *label, TLabelFlags flags=0, ELabelVersion version=eLabel_DefaultVersion) const override
Append a label to "label" based on content.
namespace ncbi::objects::
void GetLabel(string *const label, ELabelType label_type) const
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
objects::CBioseq_Handle GetBioseqForSeqFeat(const objects::CSeq_feat &f, objects::CScope &scope)
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
const CSeqFeatData & GetData(void) const
#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 bool StartsWith(const CTempString str, const CTempString start, ECase use_case=eCase)
Check if a string starts with a specified prefix value.
static const char label[]
void SetSerial_number(TSerial_number value)
Assign a value to Serial_number data member.
void SetCit(const TCit &value)
Assign a value to Cit data member.
TPmid & SetPmid(void)
Select the variant.
TMuid & SetMuid(void)
Select the variant.
list< CRef< CPub > > TPub
TGen & SetGen(void)
Select the variant.
const TPub & GetPub(void) const
Get the variant data.
void SetCit(TCit &value)
Assign a value to Cit data member.
void ResetCit(void)
Reset Cit data member.
@ e_Pub
publication applies to this seq
const TPub & GetPub(void) const
Get the variant data.
const TPub & GetPub(void) const
Get the Pub member data.
@ e_Pub
a reference to the publication
const struct ncbi::grid::netcache::search::fields::SIZE size
wxString ToWxString(const string &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