#include <windows.h>
#endif
-#ifndef __WXGTK__
+#ifdef __WXMSW__
#include "wx/help.h"
#endif
m_propertyWindowSize.width = 300;
m_propertyWindowSize.height = 300;
-#ifndef __WXGTK__
+#ifdef __WXMSW__
m_helpController = NULL;
#endif
sm_currentResourceManager = NULL;
SaveOptions();
-#ifndef __WXGTK__
+#ifdef __WXMSW__
if (m_helpController)
{
m_helpController->Quit();
LoadOptions();
-#ifndef __WXGTK__
+#ifdef __WXMSW__
m_helpController = new wxHelpController;
m_helpController->Initialize("dialoged");
#endif
void wxResourceEditorFrame::OnContents(wxCommandEvent& WXUNUSED(event))
{
-#ifndef __WXGTK__
+#ifdef __WXMSW__
wxBeginBusyCursor();
manager->GetHelpController()->LoadFile();
manager->GetHelpController()->DisplayContents();
}
case TOOLBAR_HELP:
{
-#ifndef __WXGTK__
+#ifdef __WXMSW__
wxBeginBusyCursor();
manager->GetHelpController()->LoadFile();
manager->GetHelpController()->DisplayContents();
else frame->SetStatusText("");
}
-void EditorToolBar::OnPaint(wxPaintEvent& event)
-{
-#ifndef __WXGTK__
- wxToolBar::OnPaint(event);
-
- wxPaintDC dc(this);
- int w, h;
- GetSize(&w, &h);
- dc.SetPen(wxBLACK_PEN);
- dc.SetBrush(wxTRANSPARENT_BRUSH);
- dc.DrawLine(0, h-1, w, h-1);
-#endif
-}
-
-
inline wxResourceEditorControlList *GetEditorControlList() const { return m_editorControlList; }
inline wxList& GetSelections() { return m_selections; }
inline wxMenu *GetPopupMenu() const { return m_popupMenu; }
-// inline wxHelpController *GetHelpController() const { return m_helpController; }
+#ifdef __WXMSW__
+ inline wxHelpController *GetHelpController() const { return m_helpController; }
+#endif
inline void Modify(bool mod = TRUE) { m_modified = mod; }
inline bool Modified() const { return m_modified; }
// Member variables
protected:
-// wxHelpController* m_helpController;
+#ifdef __WXMSW__
+ wxHelpController* m_helpController;
+#endif
wxResourceTableWithSaving m_resourceTable;
wxFrame* m_editorFrame;
wxResourceEditorScrolledWindow* m_editorPanel;
long style = wxTB_HORIZONTAL);
bool OnLeftClick(int toolIndex, bool toggled);
void OnMouseEnter(int toolIndex);
- void OnPaint(wxPaintEvent& event);
DECLARE_EVENT_TABLE()
};