itom
Loading...
Searching...
No Matches
extendedDataObjectTable.h
1/* ********************************************************************
2 itom software
3 URL: http://www.uni-stuttgart.de/ito
4 Copyright (C) 2020, Institut für Technische Optik (ITO),
5 Universität Stuttgart, Germany
6
7 This file is part of itom.
8
9 itom is free software; you can redistribute it and/or modify it
10 under the terms of the GNU Library General Public Licence as published by
11 the Free Software Foundation; either version 2 of the Licence, or (at
12 your option) any later version.
13
14 itom is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
17 General Public Licence for more details.
18
19 You should have received a copy of the GNU Library General Public License
20 along with itom. If not, see <http://www.gnu.org/licenses/>.
21
22*********************************************************************** */
23
24#pragma once
25
26#include <qwidget.h>
27#include <qaction.h>
28
29#include "itomWidgets/dataObjectTable.h"
30
31
32namespace ito {
33
34
36{
37 Q_OBJECT
38public:
39 ExtendedDataObjectTable(QWidget *parent = nullptr);
41
42 void setTableName(const QString &name);
43
44protected:
45 virtual void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
46 void showPlotGeneric(const QString &plotClass);
47 bool coverAllRangesTheSameRows(const QItemSelection &ranges, int &nrOfColumns) const;
48 bool coverAllRangesTheSameColumns(const QItemSelection &ranges, int &nrOfRows) const;
49
50 QAction *m_pActPlot2d;
51 QAction *m_pActPlot1d;
52 QString m_name;
53
54private slots:
55 void showPlot2d();
56 void showPlot1d();
57};
58
59
60
61} //end namespace ito
Definition dataObjectTable.h:47
Definition extendedDataObjectTable.h:36
Definition apiFunctionsGraph.cpp:40