27 #ifndef PLOTMSITERATETAB_QO_H_
28 #define PLOTMSITERATETAB_QO_H_
30 #include <plotms/GuiTabs/PlotMSIterateTab.ui.h>
36 #include <QAbstractTableModel>
60 QString
tabName()
const {
return "Page"; }
73 bool setGridSize(
unsigned int nRows,
unsigned int nCols);
130 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
131 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
132 QVariant
data(
const QModelIndex &index,
int role)
const;
136 bool insertRows(
int row,
int count,
const QModelIndex & parent = QModelIndex());
137 bool removeRows(
int row,
int count,
const QModelIndex & parent = QModelIndex());
158 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
159 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
160 QVariant
data(
const QModelIndex &index,
int role)
const;
bool isPlottable() const
Returns true if a reasonable row and column location has been set (nonzero); false otherwise...
bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
void setHeaderItems(const PMS_PP_PageHeader *pageHeaderParamsGroup)
std::vector< Item > newItem_
~PlotMSIterateTab()
Destructor.
void update(const PlotMSPlot &plot)
Implements PlotMSPlotSubtab::update().
int columnCount(const QModelIndex &parent=QModelIndex()) const
void setValue(const PlotMSPlotParameters ¶ms)
Implements PlotMSPlotSubtab::setValue().
void setArrowDownNormal()
void setArrowDownActive()
std::array< Item, Items::n_items > ItemsArray
void headerItemsChanged()
bool insertRows(int row, int count, const QModelIndex &parent=QModelIndex())
void globalChanged()
Whether to use a single global axis has changed.
Parameters for a PlotMSPlot.
void hideGridLocation(bool hide)
SelectedItemsDataModel(PageHeaderItems &items, QObject *parent=0)
void clearSelectedItems()
Clear user-selected header items.
bool setGridSize(unsigned int nRows, unsigned int nCols)
Uses the index chooser at the top, with the given number of rows and columns, to manage multi-plot di...
void setGridIndices(int rowIndex, int colIndex)
PageHeaderItems & items_
Edit interface bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRol...
int rowCount(const QModelIndex &parent=QModelIndex()) const
Read-Only interface.
QString tabName() const
Implements PlotMSTab::tabName().
PageHeaderItems headerItems
Page header items.
PlotMSIterateTab(PlotMSPlotTab *plotTab, PlotMSPlotter *parent)
Constructor which takes the parent tab and plotter.
void setButtonIcon(QPushButton *button, Bool isActive)
Subclass of PlotMSTab for tabs that are meant to be used as subtabs in a PlotMSPlotTab.
Class for a single "plot" concept.
void setAvailable(PageHeaderItemsDef::Item item, bool isAvailable)
QVariant data(const QModelIndex &index, int role) const
Subclass of PlotMSPlotSubtab to manage plot display parameters.
bool Bool
Define the standard types used by Casacore.
void setArrowUpNormal()
Icons animation.
int rowCount(const QModelIndex &parent=QModelIndex()) const
Read-Only interface.
QIcon arrowUpIcon
Animated buttons.
int columnCount(const QModelIndex &parent=QModelIndex()) const
int gridRow
Location of the plot.
const ItemsArray & items_
void addItems()
Header items edition -— Add items selected in availableItemsTableView.
High(ish)-level plotter class that manages the GUI (semi-) transparently to the rest of PlotMS...
QVariant data(const QModelIndex &index, int role) const
AvailableItemsDataModel(const ItemsArray &items, QObject *parent=0)
void removeItems()
-— Remove items selected in selectedItemsTableView
Subclass of PlotMSTab that manages PlotMSPlots in the GUI.
void getValue(PlotMSPlotParameters ¶ms) const
Implements PlotMSPlotSubtab::getValue().
void prepareToAppend(Item item)
Resize interface.
std::vector< Item > & itemsToRemove()
std::vector< Item > itemsToRemove_