Debian Codegraph @

src/librssguard/gui/toolbars/basetoolbar.h

raw symbols SCIP
1 // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/gui/toolbars/basetoolbar.h`/
2
3 #ifndef TOOLBAR_H
4 #define TOOLBAR_Hcxx . . $ `src/librssguard/gui/toolbars/basetoolbar.h:4:9`!
5
6 #include <QMenu>
7 #include <QToolBar>
8 #include <QToolButton>
9 #include <QWidgetAction>
10
11 class BaseBarcxx . . $ BaseBar# {
12 public:
13 // Returns all actions which can be added to the toolbar.
14 virtual QListcxx . . $ QList#<QActioncxx . . $ QAction#*> availableActionscxx . . $ BaseBar#availableActions(6326ecb0baf05155).() const = 0;
15
16 // Returns all actions which are currently included
17 // in the toolbar.
18 virtual QListcxx . . $ QList#<QActioncxx . . $ QAction#*> activatedActionscxx . . $ BaseBar#activatedActions(6326ecb0baf05155).() const = 0;
19
20 // Sets new "actions" to the toolbar and perhaps saves the toolbar
21 // state into the settings.
22 virtual void saveAndSetActionscxx . . $ BaseBar#saveAndSetActions(4c9f0945b8b27034).(const QStringListcxx . . $ QStringList#& actions) = 0;
23
24 // Returns list of default actions.
25 virtual QStringListcxx . . $ QStringList# defaultActionscxx . . $ BaseBar#defaultActions(2b25566bdf736d18).() const = 0;
26
27 // Returns list of saved actions.
28 virtual QStringListcxx . . $ QStringList# savedActionscxx . . $ BaseBar#savedActions(2b25566bdf736d18).() const = 0;
29
30 // Loads the toolbar state from settings.
31 virtual void loadSavedActionscxx . . $ BaseBar#loadSavedActions(49f6e7a06ebc5aa8).();
32
33 // Returns list of actions which are created solely by this toolbar.
34 // NOTE: These actions are added to global list of actions which can be
35 // bound to keyboard shortcuts.
36 virtual QListcxx . . $ QList#<QActioncxx . . $ QAction#*> extraActionscxx . . $ BaseBar#extraActions(6326ecb0baf05155).() const;
37
38 // Converts action names to actions.
39 virtual QListcxx . . $ QList#<QActioncxx . . $ QAction#*> convertActionscxx . . $ BaseBar#convertActions(2823155382a095dd).(const QStringListcxx . . $ QStringList#& actions) = 0;
40
41 // Loads list of actions into the bar.
42 virtual void loadSpecificActionscxx . . $ BaseBar#loadSpecificActions(1c62d541ecdd9946).(const QListcxx . . $ QList#<QActioncxx . . $ QAction#*>& actions, bool initial_load = false) = 0;
43
44 protected:
45 QActioncxx . . $ QAction#* findMatchingActioncxx . . $ BaseBar#findMatchingAction(3f3eee881eed8b2b).(const QStringcxx . . $ QString#& action, const QListcxx . . $ QList#<QActioncxx . . $ QAction#*>& actions) const;
46 };
47
48 class BaseToolBarcxx . . $ BaseToolBar# : public QToolBarcxx . . $ QToolBar#, public BaseBarcxx . . $ BaseBar# {
49 Q_OBJECTcxx . . $ BaseToolBar#qt_create_metaobjectdata(a52531b27a9fa42b).
50
51 public:
52 enum class SearchFieldscxx . . $ BaseToolBar#SearchFields# {
53 SearchTitleOnlycxx . . $ BaseToolBar#SearchFields#SearchTitleOnly. = 1,
54 SearchAllcxx . . $ BaseToolBar#SearchFields#SearchAll. = 2
55 };
56
57 explicit BaseToolBarcxx . . $ BaseToolBar#BaseToolBar(90d5708627041e22).(const QStringcxx . . $ QString#& title, QWidgetcxx . . $ QWidget#* parent = nullptr);
58 virtual ~cxx . . $ BaseToolBar#`~BaseToolBar`(ced63f7c635d850d).BaseToolBarcxx . . $ BaseToolBar#();
59
60 protected:
61 void saveToolButtonSelectioncxx . . $ BaseToolBar#saveToolButtonSelection(7476e6c12bab527e).(const QStringcxx . . $ QString#& button_name,
62 const QStringcxx . . $ QString#& setting_name,
63 const QListcxx . . $ QList#<QActioncxx . . $ QAction#*>& actions) const;
64 void activateActioncxx . . $ BaseToolBar#activateAction(368f0de678a0b568).(const QStringcxx . . $ QString#& action_name, QWidgetActioncxx . . $ QWidgetAction#* widget_action);
65 void addActionToMenucxx . . $ BaseToolBar#addActionToMenu(8891f95823878729).(QMenucxx . . $ QMenu#* menu,
66 const QIconcxx . . $ QIcon#& icon,
67 const QStringcxx . . $ QString#& title,
68 const QStringcxx . . $ QString#& tooltip_suffix,
69 const QVariantcxx . . $ QVariant#& value,
70 const QStringcxx . . $ QString#& object_name);
71 void drawNumberOfCriteriascxx . . $ BaseToolBar#drawNumberOfCriterias(3e17fec436799122).(QToolButtoncxx . . $ QToolButton#* btn, int count);
72 };
73
74 #endif // TOOLBAR_H