1#ifndef KCHART_DATA_EDITOR_H
2#define KCHART_DATA_EDITOR_H
8#include <kdialogbase.h>
10#include "kchart_part.h"
41class kchartDataSpinBox :
public TQSpinBox
46 kchartDataSpinBox(TQWidget *);
56 void interpretText(){;};
57 bool eventFilter( TQObject *obj, TQEvent *ev );
61 void valueChangedSpecial(
int);
75class kchartDataTable :
public TQTable
80 kchartDataTable(TQWidget *);
85 bool eventFilter( TQObject *obj, TQEvent *ev );
92class kchartDataEditor :
public KDialogBase
97 kchartDataEditor(TQWidget* parent = 0);
98 void setData(KChartParams *params, KDChartTableData *dat);
99 void getData(KChartParams *params, KDChartTableData *dat);
100 void setRowLabels(
const TQStringList &rowLabels);
101 void getRowLabels(TQStringList &rowLabels);
102 void setColLabels(
const TQStringList &colLabels);
103 void getColLabels(TQStringList &colLabels);
105 bool modified()
const {
return m_modified; }
123 void updateRowHeaders();
129 void updateColHeaders();
135 void applyClicked(kchartDataEditor *ed);
141 void removeCurrentRow();
143 void removeCurrentColumn();
149 void setRows(
int rows);
150 void setCols(
int cols);
153 void tableChanged(
int row,
int col);
156 void currentChanged(
int row,
int col);
160 kchartDataTable *m_table;
162 TQPushButton *m_insertRowButton;
163 TQPushButton *m_insertColButton;
164 TQPushButton *m_removeRowButton;
165 TQPushButton *m_removeColButton;
168 kchartDataSpinBox *m_rowsSB;
170 kchartDataSpinBox *m_colsSB;
171 TQCheckBox *m_firstRowAsLabel;
172 TQCheckBox *m_firstColAsLabel;
176 bool m_userWantsToShrink;