| #pragma once |
| |
| #ifndef XSHTOOLBAR_H |
| #define XSHTOOLBAR_H |
| |
| #include <memory> |
| |
| #include "toonz/txsheet.h" |
| #include "commandbar.h" |
| #include "toonzqt/keyframenavigator.h" |
| |
| #include <QToolBar> |
| |
| |
| |
| |
| class XsheetViewer; |
| class QAction; |
| |
| |
| |
| namespace XsheetGUI { |
| |
| |
| |
| |
| |
| class XSheetToolbar final : public CommandBar { |
| Q_OBJECT |
| |
| XsheetViewer *m_viewer; |
| |
| public: |
| XSheetToolbar(XsheetViewer *parent = 0, Qt::WindowFlags flags = 0, |
| bool isCollapsible = false); |
| static void toggleXSheetToolbar(); |
| void showToolbar(bool show); |
| |
| protected: |
| void showEvent(QShowEvent *e) override; |
| void contextMenuEvent(QContextMenuEvent *event) override; |
| |
| protected slots: |
| void doCustomizeCommandBar(); |
| }; |
| |
| } |
| |
| #endif |