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/wx__histogram__dlg_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/hit_matrix/wx_histogram_dlg.cpp Source File

39 #include <wx/clrpicker.h> 40 #include <wx/checklst.h> 41 #include <wx/stattext.h> 85  Create

(parent,

id

, caption, pos,

size

, style);

93 bool CwxHistogramDlg::Create

( wxWindow* parent, wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

96 

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

97

wxDialog::Create( parent,

id

, caption, pos,

size

, style );

102

GetSizer()->SetSizeHints(

this

);

146

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

147

itemDialog1->SetSizer(itemBoxSizer2);

149

wxFlexGridSizer* itemFlexGridSizer3 =

new

wxFlexGridSizer(0, 2, 0, 0);

150

itemBoxSizer2->Add(itemFlexGridSizer3, 1, wxGROW|wxALL, 5);

152  m_SubjectLabel

=

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Subject Graphs:"

), wxDefaultPosition, wxDefaultSize, 0 );

153

itemFlexGridSizer3->Add(

m_SubjectLabel

, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 15);

155  m_QueryLabel

=

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Query Graphs:"

), wxDefaultPosition, wxDefaultSize, 0 );

156

itemFlexGridSizer3->Add(

m_QueryLabel

, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 15);

158

wxArrayString m_SubjectListStrings;

159  m_SubjectList

=

new

wxCheckListBox( itemDialog1,

ID_SUBJECT_LIST

, wxDefaultPosition, wxSize(220, 160), m_SubjectListStrings, wxLB_SINGLE );

160

itemFlexGridSizer3->Add(

m_SubjectList

, 1, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

162

wxArrayString m_QueryListStrings;

163  m_QueryList

=

new

wxCheckListBox( itemDialog1,

ID_QUERY_LIST

, wxDefaultPosition, wxSize(220, 160), m_QueryListStrings, wxLB_SINGLE );

164

itemFlexGridSizer3->Add(

m_QueryList

, 1, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

166

itemFlexGridSizer3->AddGrowableRow(1);

167

itemFlexGridSizer3->AddGrowableCol(0);

168

itemFlexGridSizer3->AddGrowableCol(1);

170

wxBoxSizer* itemBoxSizer8 =

new

wxBoxSizer(wxHORIZONTAL);

171

itemBoxSizer2->Add(itemBoxSizer8, 0, wxGROW|wxALL, 5);

174

itemBoxSizer8->Add(

m_ColorBtn

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

176  m_ColorText

=

new

wxStaticText( itemDialog1, wxID_STATIC, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );

177

itemBoxSizer8->Add(

m_ColorText

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

179

itemBoxSizer8->Add(5, 5, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5);

181

wxStdDialogButtonSizer* itemStdDialogButtonSizer12 =

new

wxStdDialogButtonSizer;

183

itemBoxSizer8->Add(itemStdDialogButtonSizer12, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

184

wxButton* itemButton13 =

new

wxButton( itemDialog1, wxID_OK,

_

(

"&OK"

), wxDefaultPosition, wxDefaultSize, 0 );

185

itemStdDialogButtonSizer12->AddButton(itemButton13);

187

wxButton* itemButton14 =

new

wxButton( itemDialog1, wxID_CANCEL,

_

(

"&Cancel"

), wxDefaultPosition, wxDefaultSize, 0 );

188

itemStdDialogButtonSizer12->AddButton(itemButton14);

190

itemStdDialogButtonSizer12->Realize();

192

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

239  if

(it->m_Type == name) {

247 const static

wxChar*

kDisQuery

=

wxT

(

"Query : (data not available)"

);

251  const

vector<string>& s_sel,

252  const

vector<string>& q_sel,

253  bool

en_s,

bool

en_q)

279  if

(std::find(items.begin(), items.end(), name) != items.end()) {

280

list->Check((

int

)

i

,

true

);

290  for

(

int i

= 0;

i

<

n

;

i

++) {

293

s_items.push_back(s);

297

q_items.push_back(s);

306  if

(it->m_Type == name && it->m_HasColor) {

323  if

(it->m_Type == name) {

class CRgbaColor provides a simple abstraction for managing colors.

CRgbaColor GetGraphColor(const string &name)

void Init()

Initialises member variables.

wxBitmap GetBitmapResource(const wxString &name)

static bool ShowToolTips()

Should we show tooltips?

void x_SelectGraph(const string &name)

wxStaticText * m_ColorText

wxColourPickerCtrl * m_ColorBtn

wxIcon GetIconResource(const wxString &name)

wxCheckListBox * m_SubjectList

wxCheckListBox * m_QueryList

void GetSelected(vector< string > &s_items, vector< string > &q_items)

wxStaticText * m_QueryLabel

void x_FillList(wxCheckListBox *list, const vector< string > &items)

void OnQueryListSelected(wxCommandEvent &event)

void CreateControls()

Creates the controls and sizers.

~CwxHistogramDlg()

Destructor.

bool Create(wxWindow *parent, wxWindowID id=10000, const wxString &caption=_("Setup Dot Matrix Graphs"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)

Creation.

vector< CHitMatrixRenderer::SGraphDescr > m_GraphTypes

wxStaticText * m_SubjectLabel

void SetItems(const vector< CHitMatrixRenderer::SGraphDescr > &graphs, const vector< string > &s_sel, const vector< string > &q_sel, bool en_s, bool en_q)

void OnSubjectListSelected(wxCommandEvent &event)

CwxHistogramDlg()

Constructors.

void OnColourpickerctrl1ColourPickerChanged(wxColourPickerEvent &event)

#define ITERATE(Type, Var, Cont)

ITERATE macro to sequence through container elements.

#define NON_CONST_ITERATE(Type, Var, Cont)

Non constant version of ITERATE macro.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

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

static const wxChar * kDisQuery

static const wxChar * kDisSubject

CHitMatrixRenderer::SGraphDescr TGraphDescr

#define ID_COLOURPICKERCTRL1

wxColour ConvertColor(const CRgbaColor &color)

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