ASPiK SDK
menubuilder.h
1 // This file is part of VSTGUI. It is subject to the license terms
2 // in the LICENSE file found in the top-level directory of this
3 // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
4 
5 #pragma once
6 
7 #include "../imenubuilder.h"
8 
9 //------------------------------------------------------------------------
10 namespace VSTGUI {
11 namespace Standalone {
12 
13 //------------------------------------------------------------------------
19 {
20 public:
21  bool showCommandGroupInMenu (const Interface& context, const UTF8String& group) const override
22  {
23  return true;
24  }
25 
26  bool showCommandInMenu (const Interface& context, const Command& cmd) const override
27  {
28  return true;
29  }
30 
31  SortFunction getCommandGroupSortFunction (const Interface& context,
32  const UTF8String& group) const override
33  {
34  return {};
35  }
36 
37  bool prependMenuSeparator (const Interface& context, const Command& cmd) const override
38  {
39  return false;
40  }
41 };
42 
43 //------------------------------------------------------------------------
51 {
52 public:
53  bool showCommandGroupInMenu (const Interface& context, const UTF8String& group) const override
54  {
55  return false;
56  }
57 
58  bool showCommandInMenu (const Interface& context, const Command& cmd) const override
59  {
60  return false;
61  }
62 };
63 
64 //------------------------------------------------------------------------
65 } // Standalone
66 } // VSTGUI
SortFunction getCommandGroupSortFunction(const Interface &context, const UTF8String &group) const override
Definition: menubuilder.h:31
Definition: menubuilder.h:50
bool showCommandGroupInMenu(const Interface &context, const UTF8String &group) const override
Definition: menubuilder.h:53
Definition: interface.h:13
bool showCommandInMenu(const Interface &context, const Command &cmd) const override
Definition: menubuilder.h:26
Definition: imenubuilder.h:24
bool prependMenuSeparator(const Interface &context, const Command &cmd) const override
Definition: menubuilder.h:37
Definition: customcontrols.cpp:8
bool showCommandGroupInMenu(const Interface &context, const UTF8String &group) const override
Definition: menubuilder.h:21
Definition: icommand.h:24
holds an UTF8 encoded string and a platform representation of it
Definition: cstring.h:56
Definition: menubuilder.h:18
bool showCommandInMenu(const Interface &context, const Command &cmd) const override
Definition: menubuilder.h:58