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

NCBI C++ ToolKit: src/gui/widgets/phylo_tree/wx_tree_label_edit.cpp Source File

45 #include <wx/msgdlg.h> 46 #include <wx/statbox.h> 47 #include <wx/stattext.h> 80  Create

(parent,

id

, caption, pos,

size

, style);

86 

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

87

wxDialog::Create( parent,

id

, caption, pos,

size

, style );

92

GetSizer()->SetSizeHints(

this

);

122

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

123

itemDialog1->SetSizer(itemBoxSizer2);

125

wxStaticBox* itemStaticBoxSizer3Static =

new

wxStaticBox(itemDialog1,

wxID_ANY

,

_

(

"Label Properties"

));

126

wxStaticBoxSizer* itemStaticBoxSizer3 =

new

wxStaticBoxSizer(itemStaticBoxSizer3Static, wxVERTICAL);

127

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

129

wxBoxSizer* itemBoxSizer4 =

new

wxBoxSizer(wxHORIZONTAL);

130

itemStaticBoxSizer3->Add(itemBoxSizer4, 0, wxALIGN_LEFT|wxALL, 5);

132

wxStaticText* itemStaticText5 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Tree Label:"

), wxDefaultPosition, wxDefaultSize, 0 );

133

itemBoxSizer4->Add(itemStaticText5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

136

itemBoxSizer4->Add(

m_TreeName

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

138

wxBoxSizer* itemBoxSizer7 =

new

wxBoxSizer(wxHORIZONTAL);

139

itemStaticBoxSizer3->Add(itemBoxSizer7, 0, wxALIGN_LEFT|wxALL, 5);

141

wxStaticText* itemStaticText8 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Position (%x, %y): ("

), wxDefaultPosition, wxDefaultSize, 0 );

142

itemBoxSizer7->Add(itemStaticText8, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxTOP|wxBOTTOM, 5);

145  m_LabelPosX

->SetHelpText(

_

(

"The X position, as a %(0..100) of screen width"

));

147  m_LabelPosX

->SetToolTip(

_

(

"The X position, as a %(0..100) of screen width"

));

148

itemBoxSizer7->Add(

m_LabelPosX

, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5);

150

wxStaticText* itemStaticText10 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

", "

), wxDefaultPosition, wxDefaultSize, 0 );

151

itemBoxSizer7->Add(itemStaticText10, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5);

154  m_LabelPosY

->SetHelpText(

_

(

"The Y position, as a %(0..100) of screen height"

));

156  m_LabelPosY

->SetToolTip(

_

(

"The Y position, as a %(0..100) of screen height"

));

157

itemBoxSizer7->Add(

m_LabelPosY

, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5);

159

wxStaticText* itemStaticText12 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

")"

), wxDefaultPosition, wxDefaultSize, 0 );

160

itemBoxSizer7->Add(itemStaticText12, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxTOP|wxBOTTOM, 5);

162

wxBoxSizer* itemBoxSizer13 =

new

wxBoxSizer(wxHORIZONTAL);

163

itemStaticBoxSizer3->Add(itemBoxSizer13, 0, wxALIGN_LEFT|wxALL, 5);

165

wxStaticBox* itemStaticBoxSizer14Static =

new

wxStaticBox(itemDialog1,

wxID_ANY

,

_

(

"Font"

));

166

wxStaticBoxSizer* itemStaticBoxSizer14 =

new

wxStaticBoxSizer(itemStaticBoxSizer14Static, wxHORIZONTAL);

167

itemStaticBoxSizer3->Add(itemStaticBoxSizer14, 0, wxALIGN_LEFT|wxALL, 5);

169

wxFlexGridSizer* itemFlexGridSizer15 =

new

wxFlexGridSizer(0, 2, 0, 0);

170

itemStaticBoxSizer14->Add(itemFlexGridSizer15, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

172

wxStaticText* itemStaticText16 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Font Face:"

), wxDefaultPosition, wxDefaultSize, 0 );

173

itemFlexGridSizer15->Add(itemStaticText16, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

175

wxArrayString m_FontNameStrings;

177

itemFlexGridSizer15->Add(

m_FontName

, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

179

wxStaticText* itemStaticText18 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Font Size:"

), wxDefaultPosition, wxDefaultSize, 0 );

180

itemFlexGridSizer15->Add(itemStaticText18, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

182

wxArrayString m_FontSizeStrings;

183

m_FontSizeStrings.Add(

_

(

"10"

));

186

itemFlexGridSizer15->Add(

m_FontSize

, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

188

wxStaticText* itemStaticText20 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Font Color:"

), wxDefaultPosition, wxDefaultSize, 0 );

189

itemFlexGridSizer15->Add(itemStaticText20, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

192

itemFlexGridSizer15->Add(

m_FontColorPicker

, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

194

wxStdDialogButtonSizer* itemStdDialogButtonSizer22 =

new

wxStdDialogButtonSizer;

196

itemBoxSizer2->Add(itemStdDialogButtonSizer22, 0, wxALIGN_RIGHT|wxALL, 5);

197

wxButton* itemButton23 =

new

wxButton( itemDialog1, wxID_OK,

_

(

"&OK"

), wxDefaultPosition, wxDefaultSize, 0 );

198

itemStdDialogButtonSizer22->AddButton(itemButton23);

200

wxButton* itemButton24 =

new

wxButton( itemDialog1, wxID_CANCEL,

_

(

"&Cancel"

), wxDefaultPosition, wxDefaultSize, 0 );

201

itemStdDialogButtonSizer22->AddButton(itemButton24);

203

itemStdDialogButtonSizer22->Realize();

215 

wxArrayString font_faces;

216

wxArrayString font_sizes;

218

std::vector<string> faces;

219

std::vector<string> sizes;

225  for

(idx = 0; idx<faces.size(); ++idx)

227  for

(idx = 0; idx<sizes.size(); ++idx)

299  if

(!TransferDataFromWindow())

314

wxMessageBox(

"The X and Y values must be integers between 0 and 100"

,

"Input Error"

);

318  if

(posx < 0 || posx > 100 || posy < 0 || posy > 100) {

319

wxMessageBox(

"The X and Y values must be numbers between 0 and 100"

,

"Input Error"

);

333  _TRACE

(

"Unexpected error converting font size "

+ sfont_size +

" to integer"

);

339  CRgbaColor

c(wc.Red(), wc.Green(), wc.Blue(), wc.Alpha());

CTreeLabel GetTreeLabel() const

void SetTreeLabel(const CTreeLabel &l)

Label for tree (optional element of biotreecontainer)

const CGlTextureFont & GetFont(void) const

class CRgbaColor provides a simple abstraction for managing colors.

string GetFontName() const

CRgbaColor GetColor() const

void OnLabelPosYTextUpdated(wxCommandEvent &event)

wxBitmap GetBitmapResource(const wxString &name)

void OnOkClick(wxCommandEvent &event)

wxIcon GetIconResource(const wxString &name)

bool Create(wxWindow *parent, wxWindowID id=10046, const wxString &caption=_("Tree Label Edit"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxDEFAULT_DIALOG_STYLE|wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)

wxColourPickerCtrl * m_FontColorPicker

void SetParams(CPhyloTreeDataSource *ds, CPhyloTreeScheme *sl)

static bool ShowToolTips()

CPhyloTreeDataSource * m_DS

void OnLabelFontChoiceSelected(wxCommandEvent &event)

void OnLabelPosXTextUpdated(wxCommandEvent &event)

The NCBI C++ standard methods for dealing with std::string.

static void GetAllFaces(vector< string > &faces)

GetAllFaces() and GetAllSizes() fills containers with strings repesenting all available enumerated (p...

static string FaceToString(EFontFace face)

funtions below provide conversion of font parameters to strings and back.

EFontFace GetFontFace() const

static void GetAllSizes(vector< string > &sizes)

unsigned int GetFontSize() const

unsigned char GetRedUC(void) const

Get specific channels in unsigned char values.

unsigned char GetGreenUC(void) const

unsigned char GetAlphaUC(void) const

unsigned char GetBlueUC(void) const

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static int StringToInt(const CTempString str, TStringToNumFlags flags=0, int base=10)

Convert string to int.

static string IntToString(int value, TNumToStringFlags flags=0, int base=10)

Convert int to string.

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.

static const char label[]

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

#define ID_TREE_FONT_COLOR

#define m_LABEL_FONT_SIZE_CHOICE

#define ID_LABEL_FONT_CHOICE

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