File indexing completed on 2024-05-19 04:39:50

0001 /*
0002     SPDX-FileCopyrightText: 2008 Andreas Pakulat <apaku@gmx.de>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef KDEVPLATFORM_TEST_TOOLVIEWTOOLBAR_H
0008 #define KDEVPLATFORM_TEST_TOOLVIEWTOOLBAR_H
0009 
0010 #include <QObject>
0011 
0012 namespace Sublime {
0013 class View;
0014 class Controller;
0015 class ToolDocument;
0016 class Area;
0017 }
0018 class QToolBar;
0019 
0020 class TestToolViewToolBar : public QObject
0021 {
0022     Q_OBJECT
0023 private Q_SLOTS:
0024     void initTestCase();
0025     void init();
0026     void cleanup();
0027 
0028     void horizontalTool();
0029     void verticalTool();
0030     void toolViewMove();
0031 
0032 private:
0033     QToolBar* fetchToolBarFor(Sublime::View*);
0034     void assertGoodBar(QToolBar*, const QString& actionText);
0035 
0036 private:
0037     Sublime::Controller *controller;
0038     Sublime::Area *area;
0039     Sublime::ToolDocument *tool1;
0040     Sublime::ToolDocument *tool2;
0041     Sublime::View *viewT11;
0042     Sublime::View *viewT21;
0043     QString actionTextT1;
0044     QString actionTextT2;
0045 };
0046 
0047 #endif