Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.76 KB | None | 0 0
  1. void showPluginList(const Engine& engine)
  2.     {
  3.         DialogWindow::LaunchOptions o;
  4.         o.dialogTitle = translate("Plugins");
  5.         o.dialogBackgroundColour = LookAndFeel::getDefaultLookAndFeel().findColour(ResizableWindow::backgroundColourId);
  6.         o.escapeKeyTriggersCloseButton = true;
  7.         o.useNativeTitleBar = true;
  8.         o.resizable = true;
  9.         o.useBottomRightCornerResizer = true;
  10.  
  11.         auto deadMansPedalFile = getAppProperties().getUserSettings()
  12.             ->getFile().getSiblingFile("RecentlyCrashedPluginsList");
  13.        
  14.         auto v = new PluginListComponent(engine.getPluginManager().pluginFormatManager,
  15.             engine.getPluginManager().knownPluginList,
  16.             deadMansPedalFile,
  17.             getAppProperties().getUserSettings(), true);
  18.         v->setSize(800, 600);
  19.         o.content.setOwned(v);
  20.         o.launchAsync();
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement