File indexing completed on 2025-10-19 03:37:32
0001 /* 0002 File : CantorWorksheetDock.h 0003 Project : LabPlot 0004 Description : widget for CantorWorksheet properties 0005 -------------------------------------------------------------------- 0006 SPDX-FileCopyrightText: 2015 Garvit Khatri <garvitdelhi@gmail.com> 0007 SPDX-FileCopyrightText: 2015-2022 Alexander Semke <alexander.semke@web.de> 0008 0009 SPDX-License-Identifier: GPL-2.0-or-later 0010 */ 0011 0012 #ifndef CANTORWORKSHEETDOCK_H 0013 #define CANTORWORKSHEETDOCK_H 0014 0015 #include "kdefrontend/dockwidgets/BaseDock.h" 0016 #include "ui_cantorworksheetdock.h" 0017 0018 class CantorWorksheet; 0019 0020 class CantorWorksheetDock : public BaseDock { 0021 Q_OBJECT 0022 0023 public: 0024 explicit CantorWorksheetDock(QWidget*); 0025 void setCantorWorksheets(QList<CantorWorksheet*>); 0026 0027 private: 0028 Ui::CantorWorksheetDock ui; 0029 QList<CantorWorksheet*> m_cantorworksheetlist; 0030 CantorWorksheet* m_worksheet{nullptr}; 0031 QList<int> index; 0032 0033 // in the old Cantor the help panel plugin is coming as second 0034 // in the new code we determine the position via the plugin name 0035 // TODO: improve this logic without hard-coding for a fixed index, 0036 // or remove the support for the old code in Cantor completely 0037 int m_helpPanelIndex{1}; 0038 0039 int m_documentationPanelIndex{0}; 0040 0041 private Q_SLOTS: 0042 // SLOTs for changes triggered in WorksheetDock 0043 //"General"-tab 0044 void evaluateWorksheet(); 0045 void restartBackend(); 0046 void visibilityRequested(); 0047 0048 Q_SIGNALS: 0049 void info(const QString&); 0050 }; 0051 0052 #endif // CANTORWORKSHEETDOCK_H