Permalink
Browse files

Move IExecuteAppCommand to separate include.

  • Loading branch information...
1 parent c940018 commit c59fb974464bf810024fab9afdfd5f42460d1df3 @adamv adamv committed May 3, 2009
Showing with 19 additions and 5 deletions.
  1. +14 −0 src/IExecuteAppCommand.h
  2. +4 −0 src/e.vcproj
  3. +1 −5 src/eApp.h
View
@@ -0,0 +1,14 @@
+#ifndef __IEXECUTEAPPCOMMAND_H__
+#define __IEXECUTEAPPCOMMAND_H__
+
+class wxString;
+
+class IExecuteAppCommand {
+public:
+ // Execute a command, ignoring any output.
+ virtual bool ExecuteCmd(const wxString& cmd) = 0;
+ // Execute a command, capturing the output as `result`.
+ virtual bool ExecuteCmd(const wxString& cmd, wxString& result) = 0;
+};
+
+#endif // __IEXECUTEAPPCOMMAND_H__
View
@@ -340,6 +340,10 @@
>
</File>
<File
+ RelativePath=".\IExecuteAppCommand.h"
+ >
+ </File>
+ <File
RelativePath=".\IFoldingEditor.h"
>
</File>
View
@@ -24,6 +24,7 @@
#include "eSettings.h"
#include "IGetSyntaxHandler.h"
#include "IAppPaths.h"
+#include "IExecuteAppCommand.h"
// pre-declearations
class TmSyntaxHandler;
@@ -32,11 +33,6 @@ class EditorFrame;
// Constants
#define ID_UPDATES_AVAILABLE 100
-class IExecuteAppCommand {
-public:
- virtual bool ExecuteCmd(const wxString& cmd) = 0;
- virtual bool ExecuteCmd(const wxString& cmd, wxString& result) = 0;
-};
class eApp : public wxApp,
public IGetSettings,

0 comments on commit c59fb97

Please sign in to comment.