LibrePCB Developers Documentation
|
Helper to easily create a QMenu. More...
#include <menubuilder.h>
Public Types | |
enum class | Flag |
typedef QMenu *(* | MenuFactory) (QWidget *) |
Public Member Functions | |
MenuBuilder ()=delete | |
MenuBuilder (const MenuBuilder &other)=delete | |
MenuBuilder (QMenuBar *menuBar) noexcept | |
MenuBuilder (QMenu *menu) noexcept | |
~MenuBuilder () noexcept | |
QMenu * | newMenu (MenuFactory factory) noexcept |
QMenu * | addSubMenu (MenuFactory factory) noexcept |
QMenu * | addSubMenu (const QString &objectName, const QString &title, const QIcon &icon=QIcon()) noexcept |
void | addAction (QAction *action, Flags flags=Flags()) noexcept |
void | addAction (const QScopedPointer< QAction > &action, Flags flags=Flags()) noexcept |
void | addSection (const QString &text, const QIcon &icon=QIcon()) noexcept |
void | addSeparator () noexcept |
MenuBuilder & | operator= (const MenuBuilder &rhs)=delete |
Static Public Member Functions | |
static QMenu * | createFileMenu (QWidget *parent) noexcept |
static QMenu * | createEditMenu (QWidget *parent) noexcept |
static QMenu * | createViewMenu (QWidget *parent) noexcept |
static QMenu * | createSchematicMenu (QWidget *parent) noexcept |
static QMenu * | createBoardMenu (QWidget *parent) noexcept |
static QMenu * | createProjectMenu (QWidget *parent) noexcept |
static QMenu * | createToolsMenu (QWidget *parent) noexcept |
static QMenu * | createExtrasMenu (QWidget *parent) noexcept |
static QMenu * | createHelpMenu (QWidget *parent) noexcept |
static QMenu * | createGoToDockMenu (QWidget *parent) noexcept |
static QMenu * | createDocksVisibilityMenu (QWidget *parent) noexcept |
static QMenu * | createImportMenu (QWidget *parent) noexcept |
static QMenu * | createExportMenu (QWidget *parent) noexcept |
static QMenu * | createProductionDataMenu (QWidget *parent) noexcept |
static QMenu * | createLineWidthMenu (QWidget *parent) noexcept |
static QMenu * | createChangeDeviceMenu (QWidget *parent) noexcept |
static QMenu * | createChangeFootprintMenu (QWidget *parent) noexcept |
static QMenu * | createChangeModelMenu (QWidget *parent) noexcept |
static QMenu * | createMoveToOtherLibraryMenu (QWidget *parent) noexcept |
static QMenu * | createMoreResourcesMenu (QWidget *parent) noexcept |
Static Private Member Functions | |
static QMenu * | createMenu (const QString &objectName, const QString &text, const QIcon &icon, QWidget *parent) noexcept |
Private Attributes | |
QMenuBar * | mMenuBar |
QPointer< QMenu > | mMenu |
Helper to easily create a QMenu.
typedef QMenu *(* MenuFactory) (QWidget *) |
|
strong |
|
delete |
|
delete |
|
explicitnoexcept |
|
explicitnoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
delete |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticprivatenoexcept |
|
private |
|
private |