CFx SDK Documentation  2023 SP0
FxVSTA.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2022 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  #include <string>
26 
27  #include "FxPragmaPush.h"
28 
29 
34  struct VSTA_CONTEXT
35  {
36  LPTSTR desktop;
37  LPTSTR userFolder;
38  LPTSTR manufacturer;
39  LPTSTR hostID;
40 
41  LPTSTR appName;
42  LPTSTR templates;
43  };
44 
50  class CFxVSTA
51  {
52  public:
53  virtual ~CFxVSTA() {};
54 
60  virtual bool IsVSTAStarted() = 0;
61 
69  virtual void SetContext( std::string hostId, std::string applicationPath, std::string templateFile, int iLang ) = 0;
70 
76  virtual bool Load() = 0;
77 
84  virtual std::vector<std::string> GetMacros() = 0;
85 
91  virtual std::string GenerateNewMacroName() = 0;
92 
100  virtual void ExecuteMacro( const std::string pName, IDispatch* pDispatch ) = 0;
101 
108  virtual void EditMacro( const std::string pName ) = 0;
109 
116  virtual void DeleteMacro( const std::string pName ) = 0;
117 
124  virtual void StartMacroRecording( const std::string pName ) = 0;
125 
131  virtual void StopMacroRecording() = 0;
132 
139  virtual void EmitCommands( std::vector<std::string> commandList ) = 0;
140 
146  virtual int GetCurrentMacro() = 0;
147 
154  virtual void SetCurrentMacro( int macroIndex ) = 0;
155 
161  virtual int GetLanguage() = 0;
162  };
163 
164  #include "FxPragmaPop.h"
165 
166 #endif //defined( _MSC_VER )
GLsizei const GLchar *const * string
Definition: gles2_ext.h:292