Expose our define for message dialog to the header for reuse

This commit is contained in:
Mark Roszko 2025-06-24 21:45:26 -04:00
parent 4e0c7cb778
commit 5c8a8b5272
2 changed files with 9 additions and 12 deletions

View File

@ -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.
*

View File

@ -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.