| 1 | /* |
| 2 | * Copyright (C) 2016 Canonical, Ltd. |
| 3 | * |
| 4 | * This program is free software: you can redistribute it and/or modify it under |
| 5 | * the terms of the GNU Lesser General Public License version 3, as published by |
| 6 | * the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, but WITHOUT |
| 9 | * ANY WARRANTY; without even the implied warranties of MERCHANTABILITY, |
| 10 | * SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 | * Lesser General Public License for more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU Lesser General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ |
| 16 | |
| 17 | #ifndef EXPORTEDPLATFORMMENUBAR_H |
| 18 | #define EXPORTEDPLATFORMMENUBAR_Hcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.h:18:9`! |
| 19 | |
| 20 | #include <qpa/qplatformmenu.h> |
| 21 | |
| 22 | // Local |
| 23 | class LomiriGMenuModelExportercxx . . $ LomiriGMenuModelExporter#; |
| 24 | class LomiriMenuRegistrarcxx . . $ LomiriMenuRegistrar#; |
| 25 | class QWindowcxx . . $ QWindow#; |
| 26 | |
| 27 | class LomiriPlatformMenuBarcxx . . $ LomiriPlatformMenuBar# : public QPlatformMenuBarcxx . . $ QPlatformMenuBar# |
| 28 | { |
| 29 | Q_OBJECTcxx . . $ LomiriPlatformMenuBar#tr(75d9f1c324b4579d). |
| 30 | public: |
| 31 | LomiriPlatformMenuBarcxx . . $ LomiriPlatformMenuBar#LomiriPlatformMenuBar(49f6e7a06ebc5aa8).(); |
| 32 | ~cxx . . $ LomiriPlatformMenuBar#`~LomiriPlatformMenuBar`(49f6e7a06ebc5aa8).LomiriPlatformMenuBarcxx . . $ LomiriPlatformMenuBar#(); |
| 33 | |
| 34 | QStringcxx . . $ QString# exportedPathcxx . . $ LomiriPlatformMenuBar#exportedPath(6ef7b6c27b00b43d).() const; |
| 35 | |
| 36 | virtual void insertMenucxx . . $ LomiriPlatformMenuBar#insertMenu(db937bf30b36f256).(QPlatformMenucxx . . $ QPlatformMenu# *menu, QPlatformMenucxx . . $ QPlatformMenu#* before) override; |
| 37 | virtual void removeMenucxx . . $ LomiriPlatformMenuBar#removeMenu(fd7767a6ade6aeec).(QPlatformMenucxx . . $ QPlatformMenu# *menu) override; |
| 38 | virtual void syncMenucxx . . $ LomiriPlatformMenuBar#syncMenu(fd7767a6ade6aeec).(QPlatformMenucxx . . $ QPlatformMenu# *menu) override; |
| 39 | virtual void handleReparentcxx . . $ LomiriPlatformMenuBar#handleReparent(35681b993d9a3c79).(QWindowcxx . . $ QWindow# *newParentWindow) override; |
| 40 | virtual QPlatformMenucxx . . $ QPlatformMenu# *menuForTagcxx . . $ LomiriPlatformMenuBar#menuForTag(f74838af0ee81052).(quintptrcxx . . $ quintptr# tag) const override; |
| 41 | |
| 42 | const QListcxx . . $ QList#<QPlatformMenucxx . . $ QPlatformMenu#*> menuscxx . . $ LomiriPlatformMenuBar#menus(de77e9a93cef077e).() const; |
| 43 | |
| 44 | QDebugcxx . . $ QDebug# operatorcxx . . $ LomiriPlatformMenuBar#`operator<<`(42c6bbd08298b554).<<(QDebugcxx . . $ QDebug# stream); |
| 45 | |
| 46 | #if QT_VERSIONcxx . . $ `<external>/15045578679651060896/qglobal.h:57:9`! >= QT_VERSION_CHECKcxx . . $ `<external>/15045578679651060896/qglobal.h:61:9`!(5, 6, 0) |
| 47 | virtual QPlatformMenucxx . . $ QPlatformMenu# *createMenucxx . . $ LomiriPlatformMenuBar#createMenu(15223643a8dbaac4).() const override; |
| 48 | #endif |
| 49 | |
| 50 | Q_SIGNALScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:93:10`!: |
| 51 | void menuInsertedcxx . . $ LomiriPlatformMenuBar#menuInserted(fd7767a6ade6aeec).(QPlatformMenucxx . . $ QPlatformMenu# *menu); |
| 52 | void menuRemovedcxx . . $ LomiriPlatformMenuBar#menuRemoved(fd7767a6ade6aeec).(QPlatformMenucxx . . $ QPlatformMenu# *menu); |
| 53 | |
| 54 | void structureChangedcxx . . $ LomiriPlatformMenuBar#structureChanged(49f6e7a06ebc5aa8).(); |
| 55 | void readycxx . . $ LomiriPlatformMenuBar#ready(49f6e7a06ebc5aa8).(); |
| 56 | |
| 57 | private: |
| 58 | void setReadycxx . . $ LomiriPlatformMenuBar#setReady(b45ddcbc8423892c).(bool); |
| 59 | |
| 60 | QListcxx . . $ QList#<QPlatformMenucxx . . $ QPlatformMenu#*> m_menuscxx . . $ LomiriPlatformMenuBar#m_menus.; |
| 61 | QScopedPointercxx . . $ QScopedPointer#<LomiriGMenuModelExportercxx . . $ LomiriGMenuModelExporter#> m_exportercxx . . $ LomiriPlatformMenuBar#m_exporter.; |
| 62 | QScopedPointercxx . . $ QScopedPointer#<LomiriMenuRegistrarcxx . . $ LomiriMenuRegistrar#> m_registrarcxx . . $ LomiriPlatformMenuBar#m_registrar.; |
| 63 | bool m_readycxx . . $ LomiriPlatformMenuBar#m_ready.; |
| 64 | }; |
| 65 | |
| 66 | #define MENU_PROPERTYcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.h:66:9`!(class, name, type, defaultValue) \ |
| 67 | static type get_##name(const class *menuItem) { return menuItem->m_##name; } \ |
| 68 | type m_##name = defaultValue; |
| 69 | |
| 70 | class Q_DECL_EXPORTcxx . . $ `<external>/4507883856836070869/qcompilerdetection.h:235:13`! LomiriPlatformMenucxx . . $ LomiriPlatformMenu# : public QPlatformMenucxx . . $ QPlatformMenu# |
| 71 | { |
| 72 | Q_OBJECTcxx . . $ LomiriPlatformMenu#tr(75d9f1c324b4579d). |
| 73 | public: |
| 74 | LomiriPlatformMenucxx . . $ LomiriPlatformMenu#LomiriPlatformMenu(49f6e7a06ebc5aa8).(); |
| 75 | ~cxx . . $ LomiriPlatformMenu#`~LomiriPlatformMenu`(49f6e7a06ebc5aa8).LomiriPlatformMenucxx . . $ LomiriPlatformMenu#(); |
| 76 | |
| 77 | virtual void insertMenuItemcxx . . $ LomiriPlatformMenu#insertMenuItem(69003e7ffb7c392b).(QPlatformMenuItemcxx . . $ QPlatformMenuItem# *menuItem, QPlatformMenuItemcxx . . $ QPlatformMenuItem# *before) override; |
| 78 | virtual void removeMenuItemcxx . . $ LomiriPlatformMenu#removeMenuItem(8db14680049b6c4d).(QPlatformMenuItemcxx . . $ QPlatformMenuItem# *menuItem) override; |
| 79 | virtual void syncMenuItemcxx . . $ LomiriPlatformMenu#syncMenuItem(8db14680049b6c4d).(QPlatformMenuItemcxx . . $ QPlatformMenuItem# *menuItem) override; |
| 80 | virtual void syncSeparatorsCollapsiblecxx . . $ LomiriPlatformMenu#syncSeparatorsCollapsible(b45ddcbc8423892c).(bool enable) override; |
| 81 | |
| 82 | virtual void setTagcxx . . $ LomiriPlatformMenu#setTag(891dc3055356b409).(quintptrcxx . . $ quintptr# tag) override; |
| 83 | virtual quintptrcxx . . $ quintptr# tagcxx . . $ LomiriPlatformMenu#tag(1c5fc1fd41a99ae7).() const override; |
| 84 | |
| 85 | virtual void setTextcxx . . $ LomiriPlatformMenu#setText(3520e46b33348bf6).(const QStringcxx . . $ QString# &text) override; |
| 86 | virtual void setIconcxx . . $ LomiriPlatformMenu#setIcon(71dcdac178620ed6).(const QIconcxx . . $ QIcon# &icon) override; |
| 87 | virtual void setEnabledcxx . . $ LomiriPlatformMenu#setEnabled(b45ddcbc8423892c).(bool isEnabled) override; |
| 88 | virtual void setVisiblecxx . . $ LomiriPlatformMenu#setVisible(b45ddcbc8423892c).(bool isVisible) override; |
| 89 | virtual void setMinimumWidthcxx . . $ LomiriPlatformMenu#setMinimumWidth(d4f767463ce0a6b3).(int width) override; |
| 90 | virtual void setFontcxx . . $ LomiriPlatformMenu#setFont(d0a4bd0c8524b912).(const QFontcxx . . $ QFont# &font) override; |
| 91 | |
| 92 | virtual void showPopupcxx . . $ LomiriPlatformMenu#showPopup(bc88af55b1354d97).(const QWindowcxx . . $ QWindow# *parentWindow, const QRectcxx . . $ QRect# &targetRect, const QPlatformMenuItemcxx . . $ QPlatformMenuItem# *item) override; |
| 93 | |
| 94 | virtual void dismisscxx . . $ LomiriPlatformMenu#dismiss(49f6e7a06ebc5aa8).() override; // Closes this and all its related menu popups |
| 95 | |
| 96 | virtual QPlatformMenuItemcxx . . $ QPlatformMenuItem# *menuItemAtcxx . . $ LomiriPlatformMenu#menuItemAt(10800f69e57c2545).(int position) const override; |
| 97 | virtual QPlatformMenuItemcxx . . $ QPlatformMenuItem# *menuItemForTagcxx . . $ LomiriPlatformMenu#menuItemForTag(2c391c6929eb03bf).(quintptrcxx . . $ quintptr# tag) const override; |
| 98 | |
| 99 | virtual QPlatformMenuItemcxx . . $ QPlatformMenuItem# *createMenuItemcxx . . $ LomiriPlatformMenu#createMenuItem(23060c72e954fe3c).() const override; |
| 100 | #if QT_VERSIONcxx . . $ `<external>/15045578679651060896/qglobal.h:57:9`! >= QT_VERSION_CHECKcxx . . $ `<external>/15045578679651060896/qglobal.h:61:9`!(5, 6, 0) |
| 101 | virtual QPlatformMenucxx . . $ QPlatformMenu# *createSubMenucxx . . $ LomiriPlatformMenu#createSubMenu(15223643a8dbaac4).() const override; |
| 102 | #endif |
| 103 | |
| 104 | int idcxx . . $ LomiriPlatformMenu#id(455f465bc33b4cdf).() const; |
| 105 | |
| 106 | const QListcxx . . $ QList#<QPlatformMenuItemcxx . . $ QPlatformMenuItem#*> menuItemscxx . . $ LomiriPlatformMenu#menuItems(70857b704fa91c2a).() const; |
| 107 | |
| 108 | QDebugcxx . . $ QDebug# operatorcxx . . $ LomiriPlatformMenu#`operator<<`(42c6bbd08298b554).<<(QDebugcxx . . $ QDebug# stream); |
| 109 | |
| 110 | Q_SIGNALScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:93:10`!: |
| 111 | void menuItemInsertedcxx . . $ LomiriPlatformMenu#menuItemInserted(8db14680049b6c4d).(QPlatformMenuItemcxx . . $ QPlatformMenuItem# *menuItem); |
| 112 | void menuItemRemovedcxx . . $ LomiriPlatformMenu#menuItemRemoved(8db14680049b6c4d).(QPlatformMenuItemcxx . . $ QPlatformMenuItem# *menuItem); |
| 113 | void structureChangedcxx . . $ LomiriPlatformMenu#structureChanged(49f6e7a06ebc5aa8).(); |
| 114 | void enabledChangedcxx . . $ LomiriPlatformMenu#enabledChanged(b45ddcbc8423892c).(bool); |
| 115 | |
| 116 | private: |
| 117 | MENU_PROPERTYcxx . . $ LomiriPlatformMenu#m_visible.(LomiriPlatformMenu, visible, bool, true) |
| 118 | MENU_PROPERTYcxx . . $ LomiriPlatformMenu#get_text(ceb1df88f86d5a12).(LomiriPlatformMenu, text, QString, QString()) |
| 119 | MENU_PROPERTYcxx . . $ LomiriPlatformMenu#(LomiriPlatformMenu, enabled, bool, true) |
| 120 | MENU_PROPERTYcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.h:66:9`!(LomiriPlatformMenu, icon, QIcon, QIcon()) |
| 121 | |
| 122 | quintptrcxx . . $ quintptr# m_tagcxx . . $ LomiriPlatformMenu#m_tag.; |
| 123 | QListcxx . . $ QList#<QPlatformMenuItemcxx . . $ QPlatformMenuItem#*> m_menuItemscxx . . $ LomiriPlatformMenu#m_menuItems.; |
| 124 | const QWindowcxx . . $ QWindow#* m_parentWindowcxx . . $ LomiriPlatformMenu#m_parentWindow.; |
| 125 | QScopedPointercxx . . $ QScopedPointer#<LomiriGMenuModelExportercxx . . $ LomiriGMenuModelExporter#> m_exportercxx . . $ LomiriPlatformMenu#m_exporter.; |
| 126 | QScopedPointercxx . . $ QScopedPointer#<LomiriMenuRegistrarcxx . . $ LomiriMenuRegistrar#> m_registrarcxx . . $ LomiriPlatformMenu#m_registrar.; |
| 127 | |
| 128 | friend class LomiriGMenuModelExportercxx . . $ LomiriGMenuModelExporter#; |
| 129 | }; |
| 130 | |
| 131 | |
| 132 | class Q_DECL_EXPORTcxx . . $ `<external>/4507883856836070869/qcompilerdetection.h:235:13`! LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem# : public QPlatformMenuItemcxx . . $ QPlatformMenuItem# |
| 133 | { |
| 134 | Q_OBJECTcxx . . $ LomiriPlatformMenuItem#QPrivateSignal# |
| 135 | public: |
| 136 | LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#LomiriPlatformMenuItem(49f6e7a06ebc5aa8).(); |
| 137 | ~cxx . . $ LomiriPlatformMenuItem#`~LomiriPlatformMenuItem`(49f6e7a06ebc5aa8).LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#(); |
| 138 | |
| 139 | virtual void setTagcxx . . $ LomiriPlatformMenuItem#setTag(891dc3055356b409).(quintptrcxx . . $ quintptr# tag) override; |
| 140 | virtual quintptrcxx . . $ quintptr# tagcxx . . $ LomiriPlatformMenuItem#tag(1c5fc1fd41a99ae7).() const override; |
| 141 | |
| 142 | virtual void setTextcxx . . $ LomiriPlatformMenuItem#setText(3520e46b33348bf6).(const QStringcxx . . $ QString# &text) override; |
| 143 | virtual void setIconcxx . . $ LomiriPlatformMenuItem#setIcon(71dcdac178620ed6).(const QIconcxx . . $ QIcon# &icon) override; |
| 144 | virtual void setMenucxx . . $ LomiriPlatformMenuItem#setMenu(fd7767a6ade6aeec).(QPlatformMenucxx . . $ QPlatformMenu# *menu) override; |
| 145 | virtual void setVisiblecxx . . $ LomiriPlatformMenuItem#setVisible(b45ddcbc8423892c).(bool isVisible) override; |
| 146 | virtual void setIsSeparatorcxx . . $ LomiriPlatformMenuItem#setIsSeparator(b45ddcbc8423892c).(bool isSeparator) override; |
| 147 | virtual void setFontcxx . . $ LomiriPlatformMenuItem#setFont(d0a4bd0c8524b912).(const QFontcxx . . $ QFont# &font) override; |
| 148 | virtual void setRolecxx . . $ LomiriPlatformMenuItem#setRole(e8cdc8578b17c62c).(MenuRolecxx . . $ QPlatformMenuItem#MenuRole# role) override; |
| 149 | virtual void setCheckablecxx . . $ LomiriPlatformMenuItem#setCheckable(b45ddcbc8423892c).(bool checkable) override; |
| 150 | virtual void setCheckedcxx . . $ LomiriPlatformMenuItem#setChecked(b45ddcbc8423892c).(bool isChecked) override; |
| 151 | virtual void setShortcutcxx . . $ LomiriPlatformMenuItem#setShortcut(462600f892e8a1ee).(const QKeySequencecxx . . $ QKeySequence#& shortcut) override; |
| 152 | virtual void setEnabledcxx . . $ LomiriPlatformMenuItem#setEnabled(b45ddcbc8423892c).(bool enabled) override; |
| 153 | virtual void setIconSizecxx . . $ LomiriPlatformMenuItem#setIconSize(d4f767463ce0a6b3).(int size) override; |
| 154 | |
| 155 | QPlatformMenucxx . . $ QPlatformMenu#* menucxx . . $ LomiriPlatformMenuItem#menu(15223643a8dbaac4).() const; |
| 156 | |
| 157 | QDebugcxx . . $ QDebug# operatorcxx . . $ LomiriPlatformMenuItem#`operator<<`(42c6bbd08298b554).<<(QDebugcxx . . $ QDebug# stream); |
| 158 | |
| 159 | Q_SIGNALScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:93:10`!: |
| 160 | void checkedChangedcxx . . $ LomiriPlatformMenuItem#checkedChanged(b45ddcbc8423892c).(bool); |
| 161 | void enabledChangedcxx . . $ LomiriPlatformMenuItem#enabledChanged(b45ddcbc8423892c).(bool); |
| 162 | void visibleChangedcxx . . $ LomiriPlatformMenuItem#visibleChanged(b45ddcbc8423892c).(bool); |
| 163 | |
| 164 | private: |
| 165 | MENU_PROPERTYcxx . . $ LomiriPlatformMenuItem#m_separator.(LomiriPlatformMenuItem, separator, bool, false) |
| 166 | MENU_PROPERTYcxx . . $ LomiriPlatformMenuItem#(LomiriPlatformMenuItem, visible, bool, true) |
| 167 | MENU_PROPERTYcxx . . $ LomiriPlatformMenuItem#(LomiriPlatformMenuItem, text, QString, QString()) |
| 168 | MENU_PROPERTYcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.h:66:9`!(LomiriPlatformMenuItem, enabled, bool, true) |
| 169 | MENU_PROPERTYcxx . . $ LomiriPlatformMenuItem#get_checkable(6c3d7e91ff9788da).(LomiriPlatformMenuItem, checkable, bool, false) |
| 170 | MENU_PROPERTYcxx . . $ LomiriPlatformMenuItem#m_checked.(LomiriPlatformMenuItem, checked, bool, false) |
| 171 | MENU_PROPERTYcxx . . $ LomiriPlatformMenuItem#m_shortcut.(LomiriPlatformMenuItem, shortcut, QKeySequence, QKeySequence()) |
| 172 | MENU_PROPERTYcxx . . $ LomiriPlatformMenuItem#m_icon.(LomiriPlatformMenuItem, icon, QIcon, QIcon()) |
| 173 | MENU_PROPERTYcxx . . $ `src/lomiriappmenu/gmenumodelplatformmenu.h:66:9`!(LomiriPlatformMenuItem, iconSize, int, 16) |
| 174 | MENU_PROPERTYcxx . . $ LomiriPlatformMenuItem#get_menu(be7e57cee3fb6df5).(LomiriPlatformMenuItem, menu, QPlatformMenu*, nullptr) |
| 175 | |
| 176 | |
| 177 | quintptrcxx . . $ quintptr# m_tagcxx . . $ LomiriPlatformMenuItem#m_tag.; |
| 178 | friend class LomiriGMenuModelExportercxx . . $ LomiriGMenuModelExporter#; |
| 179 | }; |
| 180 | |
| 181 | #endif // EXPORTEDPLATFORMMENUBAR_H |