File indexing completed on 2024-05-19 12:22:36
0001 /* 0002 SPDX-FileCopyrightText: 2006-2007 Alexander Dymo <adymo@kdevelop.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KDEVPLATFORM_SUBLIMEMAINWINDOWOPERATOR_H 0008 #define KDEVPLATFORM_SUBLIMEMAINWINDOWOPERATOR_H 0009 0010 //krazy:excludeall=dpointer 0011 0012 #include "sublimeexport.h" 0013 0014 namespace Sublime { 0015 0016 class Area; 0017 class View; 0018 class MainWindow; 0019 0020 /**Proxy class to give descendants access to MainWindow::setArea 0021 and MainWindow::hideArea methods. Just inherit it and use the methods.*/ 0022 class KDEVPLATFORMSUBLIME_EXPORT MainWindowOperator { 0023 protected: 0024 /**Sets the area of main window and fills it with views.*/ 0025 void setArea(MainWindow *w, Area *area); 0026 /**Unsets the area clearing main window.*/ 0027 void clearArea(MainWindow *w); 0028 0029 /**Sets the active view for the mainwindow and focuses it.*/ 0030 void setActiveView(MainWindow *w, View *view); 0031 /**Sets the active tool view for the mainwindow and focuses it.*/ 0032 void setActiveToolView(MainWindow *w, View *view); 0033 }; 0034 0035 } 0036 0037 #endif 0038