mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-01 16:19:43 +02:00
ProgressDialog does not depend on ErrorDialog
This commit is contained in:
parent
6c9246d090
commit
908228b431
@ -85,22 +85,4 @@ private:
|
|||||||
bool mSetInsertionPointEnd{};
|
bool mSetInsertionPointEnd{};
|
||||||
};
|
};
|
||||||
|
|
||||||
/**************************************************************************//**
|
|
||||||
|
|
||||||
\brief Wrap wxMessageDialog so that caption IS translatable.
|
|
||||||
********************************************************************************/
|
|
||||||
class AudacityMessageDialog : public wxTabTraversalWrapper< wxMessageDialog >
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
AudacityMessageDialog(
|
|
||||||
wxWindow *parent,
|
|
||||||
const wxString& message,
|
|
||||||
const wxString& caption, // don't use = wxMessageBoxCaptionStr,
|
|
||||||
long style = wxOK|wxCENTRE,
|
|
||||||
const wxPoint& pos = wxDefaultPosition)
|
|
||||||
: wxTabTraversalWrapper< wxMessageDialog>
|
|
||||||
( parent, message, caption, style, pos )
|
|
||||||
{}
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // __AUDACITY_ERRORDIALOG__
|
#endif // __AUDACITY_ERRORDIALOG__
|
||||||
|
@ -50,7 +50,6 @@
|
|||||||
#include <wx/window.h>
|
#include <wx/window.h>
|
||||||
#include <wx/stattext.h>
|
#include <wx/stattext.h>
|
||||||
|
|
||||||
#include "ErrorDialog.h"
|
|
||||||
#include "../Prefs.h"
|
#include "../Prefs.h"
|
||||||
|
|
||||||
// This really should be a Preferences setting
|
// This really should be a Preferences setting
|
||||||
|
@ -183,4 +183,24 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#include <wx/msgdlg.h>
|
||||||
|
|
||||||
|
/**************************************************************************//**
|
||||||
|
|
||||||
|
\brief Wrap wxMessageDialog so that caption IS translatable.
|
||||||
|
********************************************************************************/
|
||||||
|
class AudacityMessageDialog : public wxTabTraversalWrapper< wxMessageDialog >
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
AudacityMessageDialog(
|
||||||
|
wxWindow *parent,
|
||||||
|
const wxString& message,
|
||||||
|
const wxString& caption, // don't use = wxMessageBoxCaptionStr,
|
||||||
|
long style = wxOK|wxCENTRE,
|
||||||
|
const wxPoint& pos = wxDefaultPosition)
|
||||||
|
: wxTabTraversalWrapper< wxMessageDialog>
|
||||||
|
( parent, message, caption, style, pos )
|
||||||
|
{}
|
||||||
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user