AvogadroApp
Classes | Functions
Avogadro Namespace Reference

Classes

class  AboutDialog
 
class  Application
 
class  BackgroundFileFormat
 
class  MainWindow
 
class  MenuBuilder
 
class  RpcListener
 
class  ViewFactory
 

Functions

template<class T , class M >
void setWidgetMolecule (T *glWidget, M *mol)
 
bool populatePluginModel (ScenePluginModel &model, bool editOnly=false)
 
template<class T >
bool populateTools (T *glWidget)
 
bool ToolSort (const ToolPlugin *a, const ToolPlugin *b)
 

Detailed Description

The MenuBuilder class helps to dynamically build up the application menus.

This class allows you to build up a list of menu entries, order them by priority/section and then add them to a QMenu once all elements have been added.

Separators are inserted as needed when priorities cross multiples of 100 (e.g. The ranges ..., (-100)-(-1), 0-99, 100-199, ... will be grouped together).