swift
Public Member Functions | Static Public Member Functions | List of all members
swift::gui::menus::CFontMenu Class Reference

Standard font (size, style) menus. Can be used as nested menu or via getActions added manually. More...

Inheritance diagram for swift::gui::menus::CFontMenu:
[legend]

Signals

void fontSizePlus ()
 Font size signals.
 
void fontSizeMinus ()
 Font size signals.
 

Public Member Functions

 CFontMenu (QWidget *widget, Qt::ShortcutContext shortcutContext=Qt::WidgetShortcut)
 Constructor.
 
virtual void customMenu (CMenuActions &menuActions)
 Display custom menu. More...
 
QList< QAction * > getActions () const
 Allow to use the actions directly.
 
QList< QShortcut * > getShortcuts () const
 The shortcus owned by QWidget.
 
- Public Member Functions inherited from swift::gui::menus::IMenuDelegate
void setNestedDelegate (IMenuDelegate *nestedDelegate)
 Set nested delegate.
 
IMenuDelegategetNestedDelegate () const
 Nested delegate.
 
virtual ~IMenuDelegate ()
 Destructor.
 
const QStringList & getLogCategories ()
 Log categories.
 

Static Public Member Functions

static const QStringList & getLogCategories ()
 Log.categories.
 

Additional Inherited Members

- Protected Member Functions inherited from swift::gui::menus::IMenuDelegate
 IMenuDelegate (QWidget *parent=nullptr)
 Constructor.
 
void nestedCustomMenu (CMenuActions &menuActions) const
 Delegate down one level.
 
bool previousMenuItemContains (const QString &str, const QMenu &menu, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
 Does the previous (menu) item contain string?
 
- Protected Attributes inherited from swift::gui::menus::IMenuDelegate
IMenuDelegatem_nestedDelegate = nullptr
 nested delegate if any
 

Detailed Description

Standard font (size, style) menus. Can be used as nested menu or via getActions added manually.

Definition at line 20 of file fontmenus.h.

Member Function Documentation

◆ customMenu()

void swift::gui::menus::CFontMenu::customMenu ( CMenuActions menuActions)
virtual

Display custom menu.

Implements swift::gui::menus::IMenuDelegate.

Definition at line 40 of file fontmenus.cpp.


The documentation for this class was generated from the following files: