projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
derive wxBitmapButton from wxBitmapButtonBase
[wxWidgets.git]
/
include
/
wx
/
resource.h
diff --git
a/include/wx/resource.h
b/include/wx/resource.h
index bbd5aa1f75274059264eab8805d85c79cfb39c03..8eec715169cd0f9c15f64ebe18fbf665c3012474 100644
(file)
--- a/
include/wx/resource.h
+++ b/
include/wx/resource.h
@@
-19,6
+19,8
@@
#include "wx/setup.h"
#if wxUSE_WX_RESOURCES
#include "wx/setup.h"
#if wxUSE_WX_RESOURCES
+
+#include "wx/bitmap.h"
#include <stdio.h>
// A few further types not in wx_types.h
#include <stdio.h>
// A few further types not in wx_types.h
@@
-34,9
+36,13
@@
// Extended styles: for resource usage only
// Use dialog units instead of pixels
// Extended styles: for resource usage only
// Use dialog units instead of pixels
-#define wxRESOURCE_DIALOG_UNITS 1
+#define wxRESOURCE_DIALOG_UNITS
0x000
1
// Use default system colour and font
// Use default system colour and font
-#define wxRESOURCE_USE_DEFAULTS 2
+#define wxRESOURCE_USE_DEFAULTS 0x0002
+// Old-style vertical label
+#define wxRESOURCE_VERTICAL_LABEL 0x0004
+// Old-style horizontal label
+#define wxRESOURCE_HORIZONTAL_LABEL 0x0008
// Macros to help use dialog units
#define wxDLG_POINT(x, y, parent, useDlgUnits) (useDlgUnits ? parent->ConvertDialogToPixel(wxPoint(x, y)) : wxPoint(x, y))
// Macros to help use dialog units
#define wxDLG_POINT(x, y, parent, useDlgUnits) (useDlgUnits ? parent->ConvertDialogToPixel(wxPoint(x, y)) : wxPoint(x, y))
@@
-46,6
+52,8
@@
#undef FindResource
#endif
#undef FindResource
#endif
+class WXDLLEXPORT wxInputStream;
+
/*
* Internal format for control/panel item
*/
/*
* Internal format for control/panel item
*/
@@
-147,6
+155,7
@@
class WXDLLEXPORT wxResourceTable: public wxHashTable
virtual bool DeleteResource(const wxString& name);
virtual bool ParseResourceFile(const wxString& filename);
virtual bool DeleteResource(const wxString& name);
virtual bool ParseResourceFile(const wxString& filename);
+ virtual bool ParseResourceFile(wxInputStream *is);
virtual bool ParseResourceData(const wxString& data);
virtual bool SaveResource(const wxString& filename);
virtual bool ParseResourceData(const wxString& data);
virtual bool SaveResource(const wxString& filename);