File indexing completed on 2024-05-19 04:39:50
0001 /* 0002 SPDX-FileCopyrightText: 2007 Alexander Dymo <adymo@kdevelop.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KDEVPLATFORM_TEST_VIEWACTIVATION_H 0008 #define KDEVPLATFORM_TEST_VIEWACTIVATION_H 0009 0010 #include <QObject> 0011 0012 namespace Sublime { 0013 class View; 0014 class Controller; 0015 class Document; 0016 class Area; 0017 } 0018 0019 class TestViewActivation: public QObject { 0020 Q_OBJECT 0021 private Q_SLOTS: 0022 void initTestCase(); 0023 void init(); 0024 void cleanup(); 0025 0026 void viewActivation(); 0027 void activationInMultipleMainWindows(); 0028 void activationAfterViewRemoval(); 0029 void activationAfterRemovalSimplestCase(); 0030 void signalsOnViewCreationAndDeletion(); 0031 0032 private: 0033 Sublime::Controller *controller; 0034 0035 Sublime::Area *area; 0036 0037 Sublime::Document *doc1; 0038 Sublime::Document *doc2; 0039 Sublime::Document *doc3; 0040 Sublime::Document *doc4; 0041 Sublime::Document *tool1; 0042 Sublime::Document *tool2; 0043 Sublime::Document *tool3; 0044 0045 Sublime::View *view211; 0046 Sublime::View *view212; 0047 Sublime::View *view221; 0048 Sublime::View *view231; 0049 Sublime::View *view241; 0050 Sublime::View *viewT11; 0051 Sublime::View *viewT21; 0052 Sublime::View *viewT31; 0053 Sublime::View *viewT32; 0054 }; 0055 0056 #endif