35
35
class ScriptingSheetsListView : public QWidget
40
* Enumeration of selection types.
42
Q_ENUMS(SelectionType)
45
* Enumeration of editor types.
53
* \param module The \a ScriptingModule instance that should be used
54
* as datasource for what should be displayed within the listview.
55
* \param parent The parent QWidget this widget should be displayed in.
57
ScriptingSheetsListView(ScriptingModule* module, QWidget* parent);
62
virtual ~ScriptingSheetsListView();
64
enum SelectionType { SingleSelect, MultiSelect };
65
enum EditorType { Disabled, Cell, Range };
70
* Set the selection type to \p selectiontype. This could be either
71
* "SingleSelect" or "MultiSelect".
73
void setSelectionType(const QString& selectiontype);
76
* Set the editor type to \p editortype. This could be either
77
* "Disabled", "Cell" or "Range".
79
void setEditorType(const QString& editortype);
82
* Return the name of the sheet. This makes only sense of
83
* "SingleSelect" was defined as selection type else, if
84
* "MultiSelect" was defined, use the sheets() function.
89
* Return the content of the editor. This makes only sense of
90
* "SingleSelect" was defined as selection type else, if
91
* "MultiSelect" was defined, use the sheets() function.
96
* Return the list of all selected sheets. Selected are those sheets the
97
* user enabled the checkbutton for and the resulting list contains for
98
* each such sheetitem a list of the name and the range rectangle.
100
* For example in python following structure got returned if there
101
* exist 3 sheets where Sheet1 and Sheet2 got selected. Sheet1 also does
102
* define the range A1:B2.
103
* [['Sheet1', 1, [1, 1, 2, 2]], ['Sheet2', 1], ['Sheet3', 0]]
105
* Each sheet contains a tuple of
107
* \li 1=enabled or 0=disabled
108
* \li optional range tuple [from column, from row, to column, to row]
110
QVariantList sheets();
113
ScriptingModule* m_module;
116
QVariantList m_prevlist;
118
SelectionType m_selectiontype;
119
EditorType m_editortype;
124
virtual void showEvent(QShowEvent* event);
40
* Enumeration of selection types.
42
Q_ENUMS(SelectionType)
45
* Enumeration of editor types.
53
* \param module The \a ScriptingModule instance that should be used
54
* as datasource for what should be displayed within the listview.
55
* \param parent The parent QWidget this widget should be displayed in.
57
ScriptingSheetsListView(ScriptingModule* module, QWidget* parent);
62
virtual ~ScriptingSheetsListView();
64
enum SelectionType { SingleSelect, MultiSelect };
65
enum EditorType { Disabled, Cell, Range };
70
* Set the selection type to \p selectiontype. This could be either
71
* "SingleSelect" or "MultiSelect".
73
void setSelectionType(const QString& selectiontype);
76
* Set the editor type to \p editortype. This could be either
77
* "Disabled", "Cell" or "Range".
79
void setEditorType(const QString& editortype);
82
* Return the name of the sheet. This makes only sense of
83
* "SingleSelect" was defined as selection type else, if
84
* "MultiSelect" was defined, use the sheets() function.
89
* Return the content of the editor. This makes only sense of
90
* "SingleSelect" was defined as selection type else, if
91
* "MultiSelect" was defined, use the sheets() function.
96
* Return the list of all selected sheets. Selected are those sheets the
97
* user enabled the checkbutton for and the resulting list contains for
98
* each such sheetitem a list of the name and the range rectangle.
100
* For example in python following structure got returned if there
101
* exist 3 sheets where Sheet1 and Sheet2 got selected. Sheet1 also does
102
* define the range A1:B2.
103
* [['Sheet1', 1, [1, 1, 2, 2]], ['Sheet2', 1], ['Sheet3', 0]]
105
* Each sheet contains a tuple of
107
* \li 1=enabled or 0=disabled
108
* \li optional range tuple [from column, from row, to column, to row]
110
QVariantList sheets();
113
ScriptingModule* m_module;
116
QVariantList m_prevlist;
118
SelectionType m_selectiontype;
119
EditorType m_editortype;
124
virtual void showEvent(QShowEvent* event);