mirror of
https://github.com/alexkay/spek.git
synced 2025-06-09 03:42:32 +03:00
Show the About button in the toolbar
This commit is contained in:
parent
08e3d81f0b
commit
73d77e5e92
@ -77,9 +77,9 @@ SpekWindow::SpekWindow(const wxString& path) :
|
|||||||
SetTitle(this->description);
|
SetTitle(this->description);
|
||||||
|
|
||||||
#if ART_HAS_ICON_BUNDLES
|
#if ART_HAS_ICON_BUNDLES
|
||||||
SetIcons(wxArtProvider::GetIconBundle(ART_SPEK));
|
SetIcons(wxArtProvider::GetIconBundle(ART_SPEK, wxART_FRAME_ICON));
|
||||||
#else
|
#else
|
||||||
SetIcon(wxArtProvider::GetIcon(ART_SPEK, wxART_OTHER, wxSize(48, 48)));
|
SetIcon(wxArtProvider::GetIcon(ART_SPEK, wxART_FRAME_ICON, wxSize(48, 48)));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
wxMenuBar *menu = new wxMenuBar();
|
wxMenuBar *menu = new wxMenuBar();
|
||||||
@ -111,15 +111,24 @@ SpekWindow::SpekWindow(const wxString& path) :
|
|||||||
toolbar->AddTool(
|
toolbar->AddTool(
|
||||||
wxID_OPEN,
|
wxID_OPEN,
|
||||||
wxEmptyString,
|
wxEmptyString,
|
||||||
wxArtProvider::GetBitmap(wxART_FILE_OPEN),
|
wxArtProvider::GetBitmap(wxART_FILE_OPEN, wxART_TOOLBAR),
|
||||||
menu_file_open->GetItemLabelText()
|
menu_file_open->GetItemLabelText()
|
||||||
);
|
);
|
||||||
toolbar->AddTool(
|
toolbar->AddTool(
|
||||||
wxID_SAVE,
|
wxID_SAVE,
|
||||||
wxEmptyString,
|
wxEmptyString,
|
||||||
wxArtProvider::GetBitmap(wxART_FILE_SAVE),
|
wxArtProvider::GetBitmap(wxART_FILE_SAVE, wxART_TOOLBAR),
|
||||||
menu_file_save->GetItemLabelText()
|
menu_file_save->GetItemLabelText()
|
||||||
);
|
);
|
||||||
|
#if wxCHECK_VERSION(2, 9, 1)
|
||||||
|
toolbar->AddStretchableSpace();
|
||||||
|
toolbar->AddTool(
|
||||||
|
wxID_ABOUT,
|
||||||
|
wxEmptyString,
|
||||||
|
wxArtProvider::GetBitmap(wxART_HELP, wxART_TOOLBAR),
|
||||||
|
menu_help_about->GetItemLabelText()
|
||||||
|
);
|
||||||
|
#endif
|
||||||
toolbar->Realize();
|
toolbar->Realize();
|
||||||
|
|
||||||
wxSizer *sizer = new wxBoxSizer(wxVERTICAL);
|
wxSizer *sizer = new wxBoxSizer(wxVERTICAL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user