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

« back to all changes in this revision

Viewing changes to kchart/kdchart/examples/Grids/PolarGrid/mainwindow.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-21 15:36:35 UTC
  • mfrom: (1.4.1 upstream) (60.2.11 maverick)
  • Revision ID: james.westby@ubuntu.com-20100921153635-6tejqkiro2u21ydi
Tags: 1:2.2.2-0ubuntu3
Add kubuntu_03_fix-crash-on-closing-sqlite-connection-2.2.2.diff and
kubuntu_04_support-large-memo-values-for-msaccess-2.2.2.diff as
recommended by upstream http://kexi-
project.org/wiki/wikiview/index.php@Kexi2.2_Patches.html#sqlite_stab
ility

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/****************************************************************************
2
 
 ** Copyright (C) 2006 Klar�vdalens Datakonsult AB.  All rights reserved.
3
 
 **
4
 
 ** This file is part of the KD Chart library.
5
 
 **
6
 
 ** This file may be used under the terms of the GNU General Public
7
 
 ** License versions 2.0 or 3.0 as published by the Free Software
8
 
 ** Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3
9
 
 ** included in the packaging of this file.  Alternatively you may (at
10
 
 ** your option) use any later version of the GNU General Public
11
 
 ** License if such license has been publicly approved by
12
 
 ** Klarälvdalens Datakonsult AB (or its successors, if any).
13
 
 ** 
14
 
 ** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
15
 
 ** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
16
 
 ** A PARTICULAR PURPOSE. Klarälvdalens Datakonsult AB reserves all rights
17
 
 ** not expressly granted herein.
18
 
 ** 
19
 
 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20
 
 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21
 
 **
22
 
 **********************************************************************/
23
 
 
24
 
#ifndef MAINWINDOW_H
25
 
#define MAINWINDOW_H
26
 
 
27
 
#include "ui_mainwindow.h"
28
 
#include <QStandardItemModel>
29
 
 
30
 
namespace KDChart {
31
 
    class Chart;
32
 
    class DatasetProxyModel;
33
 
    class PolarDiagram;
34
 
    class PolarCoordinatePlane;
35
 
}
36
 
 
37
 
class MainWindow : public QWidget, private Ui::MainWindow
38
 
{
39
 
    Q_OBJECT
40
 
 
41
 
public:
42
 
    MainWindow( QWidget* parent = 0 );
43
 
 
44
 
private slots:
45
 
    // start position of circular grid
46
 
    void on_startPositionSB_valueChanged( double pos );
47
 
    void on_startPositionSL_valueChanged( int pos );
48
 
 
49
 
    // show grid
50
 
    void on_circularGridCB_toggled( bool toggle );
51
 
    void on_sagittalGridCB_toggled( bool toggle );
52
 
 
53
 
    // show axes
54
 
    void on_circularAxisCB_toggled( bool toggle );
55
 
    void on_sagittalAxisCB_toggled( bool toggle );
56
 
 
57
 
private:
58
 
    void initKDChartClasses();
59
 
    void wireUpKDChartClasses();
60
 
    void setItemModelData();
61
 
 
62
 
    // For a change we do not use our special TableModel here,
63
 
    // but we just use the standard model that comes with Qt.
64
 
    QStandardItemModel m_model;
65
 
 
66
 
    KDChart::Chart* m_chart;
67
 
    KDChart::PolarDiagram* m_diagram;
68
 
    KDChart::PolarCoordinatePlane* m_polarPlane;
69
 
 
70
 
    int m_currentFactor;
71
 
    int m_currentDirection;
72
 
    int m_currentSlice;
73
 
};
74
 
 
75
 
 
76
 
#endif /* MAINWINDOW_H */