1 /** 2 * UGENE - Integrated Bioinformatics Tools. 3 * Copyright (C) 2008-2021 UniPro <ugene@unipro.ru> 4 * http://ugene.net 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version 2 9 * of the License, or (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 19 * MA 02110-1301, USA. 20 */ 21 22 #ifndef _U2_MSAEDITOR_MULTI_TREE_VIEWER_H_ 23 #define _U2_MSAEDITOR_MULTI_TREE_VIEWER_H_ 24 25 #include <QStringList> 26 #include <QToolBar> 27 #include <QWidget> 28 29 #include <U2Core/global.h> 30 31 namespace U2 { 32 33 class MSAEditor; 34 class MsaEditorTreeTabArea; 35 class GObjectViewWindow; 36 class MsaEditorTreeTab; 37 38 class U2VIEW_EXPORT MSAEditorMultiTreeViewer : public QWidget { 39 Q_OBJECT 40 public: 41 MSAEditorMultiTreeViewer(const QString &title, MSAEditor *msaEditor); 42 43 void addTreeView(GObjectViewWindow *treeView); 44 45 QWidget *getCurrentWidget() const; 46 47 MsaEditorTreeTab *getCurrentTabWidget() const; 48 49 const QStringList &getTreeNames() const; 50 51 signals: 52 void si_tabsCountChanged(int tabsCount); 53 54 public slots: 55 void sl_onTabCloseRequested(QWidget *); 56 57 private: 58 MsaEditorTreeTabArea *treeTabArea; 59 QWidget *titleWidget; 60 MSAEditor *editor; 61 QList<QWidget *> treeViewList; 62 QStringList tabsNameList; 63 }; 64 65 } // namespace U2 66 #endif 67