1
/* This file is part of the KDE project
3
Copyright 2009 Johannes Simon <johannes.simon@gmail.com>
4
Copyright 2009 Inge Wallin <inge@lysator.liu.se>
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Library General Public
8
License as published by the Free Software Foundation; either
9
version 2 of the License, or (at your option) any later version.
11
This library is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
Library General Public License for more details.
16
You should have received a copy of the GNU Library General Public License
17
along with this library; see the file COPYING.LIB. If not, write to
18
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19
Boston, MA 02110-1301, USA.
22
#ifndef KCHART_TABLE_EDITOR_DIALOG_H
23
#define KCHART_TABLE_EDITOR_DIALOG_H
27
#include "ui_ChartTableEditor.h"
36
class ChartProxyModel;
38
class TableEditorDialog : public QDialog, public Ui::ChartTableEditor
47
void setProxyModel( ChartProxyModel *proxyModel );
51
void slotInsertRowPressed();
52
void slotDeleteRowPressed();
53
void slotInsertColumnPressed();
54
void slotDeleteColumnPressed();
56
void deleteSelectedRowsOrColumns( Qt::Orientation orientation );
57
void slotCurrentIndexChanged( const QModelIndex &index );
58
void slotDataSetsInRowsToggled( bool enabled );
61
ChartProxyModel *m_proxyModel;
62
ChartTableView *const m_tableView;
64
QAction *m_deleteRowsAction;
65
QAction *m_deleteColumnsAction;
66
QAction *m_insertRowsAction;
67
QAction *m_insertColumnsAction;
72
#endif // KCHART_AXIS_SCALING_DIALOG_H