mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-13 17:53:11 +02:00
Expose our define for message dialog to the header for reuse
This commit is contained in:
parent
4e0c7cb778
commit
5c8a8b5272
@ -31,15 +31,6 @@
|
||||
#include <wx/msgdlg.h>
|
||||
#include <wx/choicdlg.h>
|
||||
#include <wx/crt.h>
|
||||
|
||||
#if defined( _WIN32 ) && wxCHECK_VERSION( 3, 3, 0 )
|
||||
#define KICAD_MESSAGE_DIALOG_BASE wxGenericMessageDialog
|
||||
#define KICAD_RICH_MESSAGE_DIALOG_BASE wxGenericRichMessageDialog
|
||||
#else
|
||||
#define KICAD_MESSAGE_DIALOG_BASE wxMessageDialog
|
||||
#define KICAD_RICH_MESSAGE_DIALOG_BASE wxRichMessageDialog
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Flag to enable confirmation dialog debugging output.
|
||||
*
|
||||
|
@ -35,13 +35,19 @@
|
||||
#include <kicommon.h>
|
||||
#include <wx/string.h>
|
||||
#include <wx/arrstr.h>
|
||||
//#include <wx/richmsgdlg.h>
|
||||
//#include <vector>
|
||||
//#include <functional>
|
||||
|
||||
class wxWindow;
|
||||
|
||||
|
||||
#if defined( _WIN32 ) && wxCHECK_VERSION( 3, 3, 0 )
|
||||
#define KICAD_MESSAGE_DIALOG_BASE wxGenericMessageDialog
|
||||
#define KICAD_RICH_MESSAGE_DIALOG_BASE wxGenericRichMessageDialog
|
||||
#else
|
||||
#define KICAD_MESSAGE_DIALOG_BASE wxMessageDialog
|
||||
#define KICAD_RICH_MESSAGE_DIALOG_BASE wxRichMessageDialog
|
||||
#endif
|
||||
|
||||
|
||||
/**
|
||||
* Display a dialog indicating the file is already open, with an option to reset the lock.
|
||||
* @return true if the lock was reset.
|
||||
|
Loading…
x
Reference in New Issue
Block a user