| 1 | // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/gui/tabbar.h`/ |
| 2 | |
| 3 | #ifndef TABBAR_H |
| 4 | #define TABBAR_Hcxx . . $ `src/librssguard/gui/tabbar.h:4:9`! |
| 5 | |
| 6 | #include "miscellaneous/iconfactory.h"cxx . . $ `<file>/src/librssguard/miscellaneous/iconfactory.h`/ |
| 7 | |
| 8 | #include <QTabBar> |
| 9 | #include <QVariant> |
| 10 | |
| 11 | class TabBarcxx . . $ TabBar# : public QTabBarcxx . . $ QTabBar# { |
| 12 | Q_OBJECTcxx . . $ TabBar#qt_staticMetaObjectContent. |
| 13 | |
| 14 | public: |
| 15 | enum class TabTypecxx . . $ TabBar#TabType# { |
| 16 | FeedReadercxx . . $ TabBar#TabType#FeedReader. = 1, |
| 17 | DownloadManagercxx . . $ TabBar#TabType#DownloadManager. = 2, |
| 18 | NonClosablecxx . . $ TabBar#TabType#NonClosable. = 4, |
| 19 | Closablecxx . . $ TabBar#TabType#Closable. = 8 |
| 20 | }; |
| 21 | |
| 22 | // Constructors. |
| 23 | explicit TabBarcxx . . $ TabBar#TabBar(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget#* parent = nullptr); |
| 24 | virtual ~cxx . . $ TabBar#`~TabBar`(ced63f7c635d850d).TabBarcxx . . $ TabBar#(); |
| 25 | |
| 26 | // Getter/setter for tab type. |
| 27 | void setTabTypecxx . . $ TabBar#setTabType(ba48fa34e6ec9a2).(int index, TabTypecxx . . $ TabBar#TabType# type); |
| 28 | TabBarcxx . . $ TabBar#::TabTypecxx . . $ TabBar#TabType# tabTypecxx . . $ TabBar#tabType(b6eec15960406bc2).(int index) const; |
| 29 | |
| 30 | private slotscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:42:14`!: |
| 31 | |
| 32 | // Called when user selects to close tab via close button. |
| 33 | void closeTabViaButtoncxx . . $ TabBar#closeTabViaButton(49f6e7a06ebc5aa8).(); |
| 34 | |
| 35 | private: |
| 36 | // Reimplementations. |
| 37 | void mouseDoubleClickEventcxx . . $ TabBar#mouseDoubleClickEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent#* event); |
| 38 | void mousePressEventcxx . . $ TabBar#mousePressEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent#* event); |
| 39 | void wheelEventcxx . . $ TabBar#wheelEvent(92d40974398e4832).(QWheelEventcxx . . $ QWheelEvent#* event); |
| 40 | |
| 41 | signalscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:43:14`!: |
| 42 | |
| 43 | // Emmited if empty space on tab bar is double clicked. |
| 44 | void emptySpaceDoubleClickedcxx . . $ TabBar#emptySpaceDoubleClicked(49f6e7a06ebc5aa8).(); |
| 45 | }; |
| 46 | |
| 47 | inline TabBarcxx . . $ TabBar#::TabTypecxx . . $ TabBar#TabType# TabBarcxx . . $ TabBar#::tabTypecxx . . $ TabBar#tabType(b6eec15960406bc2).(int index) const { |
| 48 | return static_cast<TabBarcxx . . $ TabBar#::TabTypecxx . . $ TabBar#TabType#>(tabDatacxx . . $ QTabBar#tabData(fb36142a814bbf95).(index).toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).()); |
| 49 | } |
| 50 | |
| 51 | TabBarcxx . . $ TabBar#::TabTypecxx . . $ TabBar#TabType# operatorcxx . . $ `operator|`(b0f6f68325c241cc).|(TabBarcxx . . $ TabBar#::TabTypecxx . . $ TabBar#TabType# a, TabBarcxx . . $ TabBar#::TabTypecxx . . $ TabBar#TabType# b); |
| 52 | TabBarcxx . . $ TabBar#::TabTypecxx . . $ TabBar#TabType# operatorcxx . . $ `operator&`(b0f6f68325c241cc).&(TabBarcxx . . $ TabBar#::TabTypecxx . . $ TabBar#TabType# a, TabBarcxx . . $ TabBar#::TabTypecxx . . $ TabBar#TabType# b); |
| 53 | TabBarcxx . . $ TabBar#::TabTypecxx . . $ TabBar#TabType#& operatorcxx . . $ `operator|=`(9b21e1ab6104a6b2).|=(TabBarcxx . . $ TabBar#::TabTypecxx . . $ TabBar#TabType#& a, TabBarcxx . . $ TabBar#::TabTypecxx . . $ TabBar#TabType# b); |
| 54 | TabBarcxx . . $ TabBar#::TabTypecxx . . $ TabBar#TabType#& operatorcxx . . $ `operator&=`(9b21e1ab6104a6b2).&=(TabBarcxx . . $ TabBar#::TabTypecxx . . $ TabBar#TabType#& a, TabBarcxx . . $ TabBar#::TabTypecxx . . $ TabBar#TabType# b); |
| 55 | |
| 56 | #endif // TABBAR_H |