CFx SDK Documentation  2020SP3
FxVSTA.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2020 by Graebert GmbH.
3 //
4 // Permission to use, copy, modify, and distribute this software in
5 // object code form for any purpose and without fee is hereby granted,
6 // provided that the above copyright notice appears in all copies and
7 // that both that copyright notice and the limited warranty and
8 // restricted rights notice below appear in all supporting
9 // documentation.
10 //
11 // GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12 // GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13 // MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14 // DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15 // UNINTERRUPTED OR ERROR FREE.
16 
17 #pragma once
18 
19 #if defined( _MSC_VER )
20 
21  #include "FxPlatformSettings.h"
22 
23  #include <ObjBase.h>
24  #include <vector>
25 
26  #include "FxPragmaPush.h"
27 
28 
33  struct VSTA_CONTEXT
34  {
35  LPTSTR desktop;
36  LPTSTR userFolder;
37  LPTSTR manufacturer;
38  LPTSTR hostID;
39 
40  LPTSTR appName;
41  LPTSTR templates;
42  };
43 
49  class CFxVSTA
50  {
51  public:
52  virtual ~CFxVSTA() {};
53 
59  virtual bool IsVSTAStarted() = 0;
60 
68  virtual void SetContext( std::string hostId, std::string applicationPath, std::string templateFile, int iLang ) = 0;
69 
75  virtual bool Load() = 0;
76 
83  virtual std::vector<std::string> GetMacros() = 0;
84 
90  virtual std::string GenerateNewMacroName() = 0;
91 
99  virtual void ExecuteMacro( const std::string pName, IDispatch* pDispatch ) = 0;
100 
107  virtual void EditMacro( const std::string pName ) = 0;
108 
115  virtual void DeleteMacro( const std::string pName ) = 0;
116 
123  virtual void StartMacroRecording( const std::string pName ) = 0;
124 
130  virtual void StopMacroRecording() = 0;
131 
138  virtual void EmitCommands( std::vector<std::string> commandList ) = 0;
139 
145  virtual int GetCurrentMacro() = 0;
146 
153  virtual void SetCurrentMacro( int macroIndex ) = 0;
154 
160  virtual int GetLanguage() = 0;
161  };
162 
163  #include "FxPragmaPop.h"
164 
165 #endif //defined( _MSC_VER )
FxPragmaPop.h
FxPlatformSettings.h
string
GLsizei const GLchar *const * string
Definition: gles2_ext.h:292
FxPragmaPush.h