~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to kchart/shape/dialogs/TableEditorDialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-27 17:52:57 UTC
  • mfrom: (0.12.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101027175257-s04zqqk5bs8ckm9o
Tags: 1:2.2.83-0ubuntu1
* Merge with Debian git remaining changes:
 - Add build-deps on librcps-dev, opengtl-dev, libqtgtl-dev, freetds-dev,
   create-resources, libspnav-dev
 - Remove needless build-dep on libwv2-dev
 - koffice-libs recommends create-resources
 - krita recommends pstoedit
 - Keep our patches
* New upstream release 2.3 beta 3
  - Remove debian/patches fixed by upstream
  - Update install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* This file is part of the KDE project
2
 
 
3
 
   Copyright 2009 Johannes Simon <johannes.simon@gmail.com>
4
 
   Copyright 2009 Inge Wallin    <inge@lysator.liu.se>
5
 
 
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.
10
 
 
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.
15
 
 
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.
20
 
*/
21
 
 
22
 
#ifndef KCHART_TABLE_EDITOR_DIALOG_H
23
 
#define KCHART_TABLE_EDITOR_DIALOG_H
24
 
 
25
 
#include <QDialog>
26
 
 
27
 
#include "ui_ChartTableEditor.h"
28
 
 
29
 
class QModelIndex;
30
 
class QAction;
31
 
 
32
 
 
33
 
namespace KChart {
34
 
 
35
 
class ChartTableView;
36
 
class ChartProxyModel;
37
 
 
38
 
class TableEditorDialog : public QDialog, public Ui::ChartTableEditor
39
 
{
40
 
    Q_OBJECT
41
 
 
42
 
public:
43
 
    TableEditorDialog();
44
 
    ~TableEditorDialog();
45
 
 
46
 
    void init();
47
 
    void setProxyModel( ChartProxyModel *proxyModel );
48
 
    void updateDialog();
49
 
 
50
 
protected slots:
51
 
    void slotInsertRowPressed();
52
 
    void slotDeleteRowPressed();
53
 
    void slotInsertColumnPressed();
54
 
    void slotDeleteColumnPressed();
55
 
 
56
 
    void deleteSelectedRowsOrColumns( Qt::Orientation orientation );
57
 
    void slotCurrentIndexChanged( const QModelIndex &index );
58
 
    void slotDataSetsInRowsToggled( bool enabled );
59
 
 
60
 
private:
61
 
    ChartProxyModel *m_proxyModel;
62
 
    ChartTableView  *const m_tableView;
63
 
 
64
 
    QAction         *m_deleteRowsAction;
65
 
    QAction         *m_deleteColumnsAction;
66
 
    QAction         *m_insertRowsAction;
67
 
    QAction         *m_insertColumnsAction;
68
 
};
69
 
 
70
 
} // Namespace KChart
71
 
 
72
 
#endif // KCHART_AXIS_SCALING_DIALOG_H
73