Allow version selection; make buttons the same size
This commit is contained in:
parent
80233aece9
commit
d3d74b36bd
|
@ -159,7 +159,7 @@ void DIALOG_ABOUT::createNotebooks()
|
|||
wxString version;
|
||||
buildVersionInfoData( version, true );
|
||||
|
||||
createNotebookHtmlPage( m_auiNotebook, _( "Version" ), m_picVersion, version );
|
||||
createNotebookHtmlPage( m_auiNotebook, _( "Version" ), m_picVersion, version, true );
|
||||
|
||||
createNotebookPage( m_auiNotebook, _( "Developers" ) , m_picDevelopers,
|
||||
m_info.GetDevelopers() );
|
||||
|
@ -396,7 +396,8 @@ void DIALOG_ABOUT::createNotebookPageByCategory(wxAuiNotebook* aParent, const wx
|
|||
|
||||
|
||||
void DIALOG_ABOUT::createNotebookHtmlPage( wxAuiNotebook* aParent, const wxString& aCaption,
|
||||
const wxBitmap& aIcon, const wxString& html )
|
||||
const wxBitmap& aIcon, const wxString& html,
|
||||
bool aSelection )
|
||||
{
|
||||
wxPanel* panel = new wxPanel( aParent, wxID_ANY, wxDefaultPosition, wxDefaultSize,
|
||||
wxTAB_TRAVERSAL );
|
||||
|
@ -417,9 +418,10 @@ void DIALOG_ABOUT::createNotebookHtmlPage( wxAuiNotebook* aParent, const wxStrin
|
|||
// end of HTML structure indicated by closing tags
|
||||
htmlPage.Append( wxT( "</body></html>" ) );
|
||||
|
||||
int flags = aSelection ? wxHW_SCROLLBAR_AUTO : ( wxHW_SCROLLBAR_AUTO | wxHW_NO_SELECTION );
|
||||
|
||||
// the HTML page is going to be created with previously created HTML content
|
||||
wxHtmlWindow* htmlWindow = new wxHtmlWindow( panel, wxID_ANY, wxDefaultPosition, wxDefaultSize,
|
||||
wxHW_SCROLLBAR_AUTO|wxHW_NO_SELECTION );
|
||||
auto htmlWindow = new wxHtmlWindow( panel, wxID_ANY, wxDefaultPosition, wxDefaultSize, flags );
|
||||
|
||||
// HTML font set to font properties as they are used for widgets to have an unique look
|
||||
// under different platforms with HTML
|
||||
|
|
|
@ -91,7 +91,8 @@ private:
|
|||
void createNotebookHtmlPage( wxAuiNotebook* aParent,
|
||||
const wxString& aCaption,
|
||||
const wxBitmap& aIcon,
|
||||
const wxString& aHtmlMessage );
|
||||
const wxString& aHtmlMessage,
|
||||
bool aSelection = false );
|
||||
|
||||
wxStaticText* wxStaticTextMail( wxScrolledWindow* aParent, const wxString& email );
|
||||
wxStaticBitmap* createStaticBitmap( wxScrolledWindow* aParent, wxBitmap* icon );
|
||||
|
|
|
@ -58,12 +58,12 @@ DIALOG_ABOUT_BASE::DIALOG_ABOUT_BASE( wxWindow* parent, wxWindowID id, const wxS
|
|||
m_btCopyVersionInfo = new wxButton( this, wxID_COPY, _("&Copy Version Info"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_btCopyVersionInfo->SetToolTip( _("Copy KiCad version info to the clipboard") );
|
||||
|
||||
bSizer5->Add( m_btCopyVersionInfo, 0, wxALL, 5 );
|
||||
bSizer5->Add( m_btCopyVersionInfo, 0, wxALL|wxEXPAND, 5 );
|
||||
|
||||
m_btReportBug = new wxButton( this, wxID_COPY, _("&Report Bug"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_btReportBug->SetToolTip( _("Report a problem with KiCad") );
|
||||
|
||||
bSizer5->Add( m_btReportBug, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 );
|
||||
bSizer5->Add( m_btReportBug, 0, wxALIGN_CENTER_HORIZONTAL|wxALL|wxEXPAND, 5 );
|
||||
|
||||
|
||||
bSizer5->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||
|
|
|
@ -411,7 +411,7 @@
|
|||
</object>
|
||||
<object class="sizeritem" expanded="0">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxALL</property>
|
||||
<property name="flag">wxALL|wxEXPAND</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxButton" expanded="0">
|
||||
<property name="BottomDockable">1</property>
|
||||
|
@ -484,7 +484,7 @@
|
|||
</object>
|
||||
<object class="sizeritem" expanded="0">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxALIGN_CENTER_HORIZONTAL|wxALL</property>
|
||||
<property name="flag">wxALIGN_CENTER_HORIZONTAL|wxALL|wxEXPAND</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxButton" expanded="0">
|
||||
<property name="BottomDockable">1</property>
|
||||
|
|
Loading…
Reference in New Issue