Permalink
Browse files

Moved IUpdatePanel to separate header, and make EditorCtrl import tha…

…t instead of EditorBundlePanel.h
  • Loading branch information...
1 parent d9c0d27 commit 85d524d918458d141b3de41c75f889d493aff183 @adamv adamv committed May 10, 2009
Showing with 17 additions and 8 deletions.
  1. +1 −7 src/EditorBundlePanel.h
  2. +1 −1 src/EditorCtrl.cpp
  3. +11 −0 src/IUpdatePanel.h
  4. +4 −0 src/e.vcproj
View
@@ -16,6 +16,7 @@
#include "BundleItemType.h"
#include "key_hook.h"
+#include "IUpdatePanel.h"
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
@@ -32,13 +33,6 @@ class CatalystWrapper;
class DocumentWrapper;
class ShortcutCtrl;
-// This simple interface allows an EditorCtrl to tell the
-// panel that it is embedded in to update.
-class IUpdatePanel {
-public:
- virtual void UpdatePanel() = 0;
-};
-
class EditorBundlePanel : public wxPanel, public IUpdatePanel {
public:
EditorBundlePanel() {}; // default const
View
@@ -30,7 +30,7 @@
#include "RedoDlg.h"
#include "CompletionPopup.h"
#include "MultilineDataObject.h"
-#include "EditorBundlePanel.h"
+#include "IUpdatePanel.h"
#include <wx/tokenzr.h>
#include "jsonreader.h"
#include "eDocumentPath.h"
View
@@ -0,0 +1,11 @@
+#ifndef __IUPDATEPANEL_H__
+#define __IUPDATEPANEL_H__
+
+// This simple interface allows an EditorCtrl to tell the
+// panel that it is embedded in to update.
+class IUpdatePanel {
+public:
+ virtual void UpdatePanel() = 0;
+};
+
+#endif // __IUPDATEPANEL_H__
View
@@ -367,6 +367,10 @@
RelativePath=".\IPrintableDocument.h"
>
</File>
+ <File
+ RelativePath=".\IUpdatePanel.h"
+ >
+ </File>
</Filter>
<Filter
Name="Controls"

0 comments on commit 85d524d

Please sign in to comment.