Krita Source Code Documentation
Loading...
Searching...
No Matches
ktoolbarhandler_p.h
Go to the documentation of this file.
1/* This file is part of the KDE libraries
2 SPDX-FileCopyrightText: 2002 Simon Hausmann <hausmann@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-only
5*/
6
7#ifndef KTOOLBARHANDLER_H
8#define KTOOLBARHANDLER_H
9
10#include <QLinkedList>
11#include <QObject>
12
13#include <kxmlguiclient.h>
14
15class KXmlGuiWindow;
16
17namespace KDEPrivate
18{
19
20class ToolBarHandler : public QObject, public KisKXMLGUIClient
21{
22 Q_OBJECT
23
24public:
29 explicit ToolBarHandler(KXmlGuiWindow *mainWindow);
30
35 ToolBarHandler(KXmlGuiWindow *mainWindow, QObject *parent);
36
40 ~ToolBarHandler() override;
41
45 QAction *toolBarMenuAction();
46
47public Q_SLOTS:
48 void setupActions();
49
50private:
51 class Private;
52 Private *const d;
53
54 Q_PRIVATE_SLOT(d, void clientAdded(KisKXMLGUIClient *))
55};
56
57} // namespace KDEPrivate
58
59#endif // KTOOLBARHANDLER_H
ToolBarHandler(KXmlGuiWindow *mainWindow)
KDE top level main window with predefined action layout