- fontRect.x = 10;
-#ifdef __X__
- fontRect.y = 125;
-#else
- fontRect.y = 115;
-#endif
- fontRect.width = 430;
- fontRect.height = 100;
-
- /*
- static char *families[] = { "Roman", "Decorative", "Modern", "Script", "Swiss" };
- static char *styles[] = { "Normal", "Italic", "Slant" };
- static char *weights[] = { "Normal", "Light", "Bold" };
- */
-
- wxString
- *families = new wxString[6],
- *styles = new wxString[3],
- *weights = new wxString[3];
- families[0] = _("Roman");
- families[1] = _("Decorative");
- families[2] = _("Modern");
- families[3] = _("Script");
- families[4] = _("Swiss" );
- families[5] = _("Teletype" );
- styles[0] = _("Normal");
- styles[1] = _("Italic");
- styles[2] = _("Slant");
- weights[0] = _("Normal");
- weights[1] = _("Light");
- weights[2] = _("Bold");
-
- int x=-1;
- int y=40;
- familyChoice = new wxChoice(this, wxID_FONT_FAMILY, wxPoint(10, 10), wxSize(120, -1), 5, families);
- styleChoice = new wxChoice(this, wxID_FONT_STYLE, wxPoint(170, 10), wxSize(120, -1), 3, styles);
- weightChoice = new wxChoice(this, wxID_FONT_WEIGHT, wxPoint(330, 10), wxSize(120, -1), 3, weights);
-
- colourChoice = new wxChoice(this, wxID_FONT_COLOUR, wxPoint(10, 40), wxSize(180, -1), NUM_COLS, wxColourDialogNames);
-#if 0 // def __WXMOTIF__ // TODO: This necessary now?
- // We want the pointSizeText to line up on the y axis with the colourChoice
- colourChoice->GetPosition(&fontRect.x, &y); //NL mod
- y+=3; //NL mod
-#endif
+ wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL);
+ this->SetSizer(itemBoxSizer2);
+ this->SetAutoLayout(true);
+
+ wxBoxSizer* itemBoxSizer3 = new wxBoxSizer(wxVERTICAL);
+ itemBoxSizer2->Add(itemBoxSizer3, 1, wxGROW|wxALL, 5);
+
+ wxFlexGridSizer* itemGridSizer4 = new wxFlexGridSizer(noRows, noCols, 0, 0);
+ itemBoxSizer3->Add(itemGridSizer4, 0, wxGROW, 5);
+
+ wxBoxSizer* itemBoxSizer5 = new wxBoxSizer(wxVERTICAL);
+ itemGridSizer4->Add(itemBoxSizer5, 0, wxALIGN_CENTER_HORIZONTAL|wxGROW, 5);
+ wxStaticText* itemStaticText6 = new wxStaticText( this, wxID_STATIC, _("&Font family:"), wxDefaultPosition, wxDefaultSize, 0 );
+ itemBoxSizer5->Add(itemStaticText6, 0, wxALIGN_LEFT|wxLEFT|wxRIGHT|wxTOP, 5);
+
+ wxChoice* itemChoice7 = new wxChoice( this, wxID_FONT_FAMILY, wxDefaultPosition, wxDefaultSize, 5, families, 0 );
+ itemChoice7->SetHelpText(_("The font family."));
+ if (ShowToolTips())
+ itemChoice7->SetToolTip(_("The font family."));
+ itemBoxSizer5->Add(itemChoice7, 0, wxALIGN_LEFT|wxALL, 5);
+
+ wxBoxSizer* itemBoxSizer8 = new wxBoxSizer(wxVERTICAL);
+ itemGridSizer4->Add(itemBoxSizer8, 0, wxALIGN_CENTER_HORIZONTAL|wxGROW, 5);
+ wxStaticText* itemStaticText9 = new wxStaticText( this, wxID_STATIC, _("&Style:"), wxDefaultPosition, wxDefaultSize, 0 );
+ itemBoxSizer8->Add(itemStaticText9, 0, wxALIGN_LEFT|wxLEFT|wxRIGHT|wxTOP, 5);
+
+ wxChoice* itemChoice10 = new wxChoice( this, wxID_FONT_STYLE, wxDefaultPosition, wxDefaultSize, 3, styles, 0 );
+ itemChoice10->SetHelpText(_("The font style."));
+ if (ShowToolTips())
+ itemChoice10->SetToolTip(_("The font style."));
+ itemBoxSizer8->Add(itemChoice10, 0, wxALIGN_LEFT|wxALL, 5);
+
+ wxBoxSizer* itemBoxSizer11 = new wxBoxSizer(wxVERTICAL);
+ itemGridSizer4->Add(itemBoxSizer11, 0, wxALIGN_CENTER_HORIZONTAL|wxGROW, 5);
+ wxStaticText* itemStaticText12 = new wxStaticText( this, wxID_STATIC, _("&Weight:"), wxDefaultPosition, wxDefaultSize, 0 );
+ itemBoxSizer11->Add(itemStaticText12, 0, wxALIGN_LEFT|wxLEFT|wxRIGHT|wxTOP, 5);
+
+ wxChoice* itemChoice13 = new wxChoice( this, wxID_FONT_WEIGHT, wxDefaultPosition, wxDefaultSize, 3, weights, 0 );
+ itemChoice13->SetHelpText(_("The font weight."));
+ if (ShowToolTips())
+ itemChoice13->SetToolTip(_("The font weight."));
+ itemBoxSizer11->Add(itemChoice13, 0, wxALIGN_LEFT|wxALL, 5);
+
+ wxBoxSizer* itemBoxSizer14 = new wxBoxSizer(wxVERTICAL);
+ itemGridSizer4->Add(itemBoxSizer14, 0, wxALIGN_CENTER_HORIZONTAL|wxGROW, 5);
+ if (m_fontData.GetEnableEffects())
+ {
+ wxStaticText* itemStaticText15 = new wxStaticText( this, wxID_STATIC, _("C&olour:"), wxDefaultPosition, wxDefaultSize, 0 );
+ itemBoxSizer14->Add(itemStaticText15, 0, wxALIGN_LEFT|wxLEFT|wxRIGHT|wxTOP, 5);
+
+ wxSize colourSize = wxDefaultSize;
+ if (is_pda)
+ colourSize.x = 100;
+
+ wxChoice* itemChoice16 = new wxChoice( this, wxID_FONT_COLOUR, wxDefaultPosition, colourSize, NUM_COLS, wxColourDialogNames, 0 );
+ itemChoice16->SetHelpText(_("The font colour."));
+ if (ShowToolTips())
+ itemChoice16->SetToolTip(_("The font colour."));
+ itemBoxSizer14->Add(itemChoice16, 0, wxALIGN_LEFT|wxALL, 5);
+ }