wxArtProvider usage fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -89,7 +89,7 @@ wxGenericDirDialog::wxGenericDirDialog(wxWindow* parent, const wxString& title,
|
|||||||
#ifndef __DOS__
|
#ifndef __DOS__
|
||||||
wxBitmapButton* homeButton =
|
wxBitmapButton* homeButton =
|
||||||
new wxBitmapButton(this, ID_GO_HOME,
|
new wxBitmapButton(this, ID_GO_HOME,
|
||||||
wxArtProvider::GetBitmap(wxART_GO_HOME, wxART_CMN_DIALOG));
|
wxArtProvider::GetBitmap(wxART_GO_HOME, wxART_BUTTON));
|
||||||
buttonsizer->Add( homeButton, 0, wxLEFT|wxRIGHT, 10 );
|
buttonsizer->Add( homeButton, 0, wxLEFT|wxRIGHT, 10 );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@ wxGenericDirDialog::wxGenericDirDialog(wxWindow* parent, const wxString& title,
|
|||||||
{
|
{
|
||||||
wxBitmapButton* newButton =
|
wxBitmapButton* newButton =
|
||||||
new wxBitmapButton(this, ID_NEW,
|
new wxBitmapButton(this, ID_NEW,
|
||||||
wxArtProvider::GetBitmap(wxART_NEW_DIR, wxART_CMN_DIALOG));
|
wxArtProvider::GetBitmap(wxART_NEW_DIR, wxART_BUTTON));
|
||||||
buttonsizer->Add( newButton, 0, wxRIGHT, 10 );
|
buttonsizer->Add( newButton, 0, wxRIGHT, 10 );
|
||||||
#if wxUSE_TOOLTIPS
|
#if wxUSE_TOOLTIPS
|
||||||
newButton->SetToolTip(_("Create new directory"));
|
newButton->SetToolTip(_("Create new directory"));
|
||||||
|
@@ -917,14 +917,14 @@ wxGenericFileDialog::wxGenericFileDialog(wxWindow *parent,
|
|||||||
wxBitmapButton *but;
|
wxBitmapButton *but;
|
||||||
|
|
||||||
but = new wxBitmapButton(this, ID_LIST_MODE,
|
but = new wxBitmapButton(this, ID_LIST_MODE,
|
||||||
wxArtProvider::GetBitmap(wxART_LIST_VIEW, wxART_CMN_DIALOG));
|
wxArtProvider::GetBitmap(wxART_LIST_VIEW, wxART_BUTTON));
|
||||||
#if wxUSE_TOOLTIPS
|
#if wxUSE_TOOLTIPS
|
||||||
but->SetToolTip( _("View files as a list view") );
|
but->SetToolTip( _("View files as a list view") );
|
||||||
#endif
|
#endif
|
||||||
buttonsizer->Add( but, 0, wxALL, 5 );
|
buttonsizer->Add( but, 0, wxALL, 5 );
|
||||||
|
|
||||||
but = new wxBitmapButton(this, ID_REPORT_MODE,
|
but = new wxBitmapButton(this, ID_REPORT_MODE,
|
||||||
wxArtProvider::GetBitmap(wxART_REPORT_VIEW, wxART_CMN_DIALOG));
|
wxArtProvider::GetBitmap(wxART_REPORT_VIEW, wxART_BUTTON));
|
||||||
#if wxUSE_TOOLTIPS
|
#if wxUSE_TOOLTIPS
|
||||||
but->SetToolTip( _("View files as a detailed view") );
|
but->SetToolTip( _("View files as a detailed view") );
|
||||||
#endif
|
#endif
|
||||||
@@ -933,7 +933,7 @@ wxGenericFileDialog::wxGenericFileDialog(wxWindow *parent,
|
|||||||
buttonsizer->Add( 30, 5, 1 );
|
buttonsizer->Add( 30, 5, 1 );
|
||||||
|
|
||||||
m_upDirButton = new wxBitmapButton(this, ID_UP_DIR,
|
m_upDirButton = new wxBitmapButton(this, ID_UP_DIR,
|
||||||
wxArtProvider::GetBitmap(wxART_GO_DIR_UP, wxART_CMN_DIALOG));
|
wxArtProvider::GetBitmap(wxART_GO_DIR_UP, wxART_BUTTON));
|
||||||
#if wxUSE_TOOLTIPS
|
#if wxUSE_TOOLTIPS
|
||||||
m_upDirButton->SetToolTip( _("Go to parent directory") );
|
m_upDirButton->SetToolTip( _("Go to parent directory") );
|
||||||
#endif
|
#endif
|
||||||
@@ -941,7 +941,7 @@ wxGenericFileDialog::wxGenericFileDialog(wxWindow *parent,
|
|||||||
|
|
||||||
#ifndef __DOS__ // VS: Home directory is meaningless in MS-DOS...
|
#ifndef __DOS__ // VS: Home directory is meaningless in MS-DOS...
|
||||||
but = new wxBitmapButton(this, ID_PARENT_DIR,
|
but = new wxBitmapButton(this, ID_PARENT_DIR,
|
||||||
wxArtProvider::GetBitmap(wxART_GO_HOME, wxART_CMN_DIALOG));
|
wxArtProvider::GetBitmap(wxART_GO_HOME, wxART_BUTTON));
|
||||||
#if wxUSE_TOOLTIPS
|
#if wxUSE_TOOLTIPS
|
||||||
but->SetToolTip( _("Go to home directory") );
|
but->SetToolTip( _("Go to home directory") );
|
||||||
#endif
|
#endif
|
||||||
@@ -951,7 +951,7 @@ wxGenericFileDialog::wxGenericFileDialog(wxWindow *parent,
|
|||||||
#endif //!__DOS__
|
#endif //!__DOS__
|
||||||
|
|
||||||
m_newDirButton = new wxBitmapButton(this, ID_NEW_DIR,
|
m_newDirButton = new wxBitmapButton(this, ID_NEW_DIR,
|
||||||
wxArtProvider::GetBitmap(wxART_NEW_DIR, wxART_CMN_DIALOG));
|
wxArtProvider::GetBitmap(wxART_NEW_DIR, wxART_BUTTON));
|
||||||
#if wxUSE_TOOLTIPS
|
#if wxUSE_TOOLTIPS
|
||||||
m_newDirButton->SetToolTip( _("Create new directory") );
|
m_newDirButton->SetToolTip( _("Create new directory") );
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user