##// END OF EJS Templates
Creates a interface that defines a variable container...
Creates a interface that defines a variable container - A variable container is an entity that can eventually accomodate a variable (for example, from a menu or d'n'd) - The interfaces declares canDrop() method, that will be used to create a menu for a variable containing only the containers available for it, or to enable/disable d'n'd of this variable on a container - Each visualization widget is a variable container, so it implements canDrop() method

File last commit:

r142:11579fae1cc2
r209:7ef1d04a5917
Show More
DataSourceTreeWidgetItem.h
35 lines | 1.1 KiB | text/x-c | CLexer
/ gui / include / DataSource / DataSourceTreeWidgetItem.h
#ifndef SCIQLOP_DATASOURCETREEWIDGETITEM_H
#define SCIQLOP_DATASOURCETREEWIDGETITEM_H
#include <Common/spimpl.h>
#include <QLoggingCategory>
#include <QTreeWidgetItem>
Q_DECLARE_LOGGING_CATEGORY(LOG_DataSourceTreeWidgetItem)
class DataSourceItem;
/**
* @brief The DataSourceTreeWidgetItem is the graphical representation of a data source item. It is
* intended to be displayed in a QTreeWidget.
* @sa DataSourceItem
*/
class DataSourceTreeWidgetItem : public QTreeWidgetItem {
public:
explicit DataSourceTreeWidgetItem(const DataSourceItem *data, int type = Type);
explicit DataSourceTreeWidgetItem(QTreeWidget *parent, const DataSourceItem *data,
int type = Type);
virtual QVariant data(int column, int role) const override;
virtual void setData(int column, int role, const QVariant &value) override;
/// @return the actions associated to the item
QList<QAction *> actions() const noexcept;
private:
class DataSourceTreeWidgetItemPrivate;
spimpl::unique_impl_ptr<DataSourceTreeWidgetItemPrivate> impl;
};
#endif // SCIQLOP_DATASOURCETREEWIDGETITEM_H