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

« back to all changes in this revision

Viewing changes to kchart/kdchart/kdchartserializer/examples/complexLayout/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älvdalens Datakonsult AB.  All rights reserved.
3
 
 **
4
 
 ** This file is part of the KD Chart library.
5
 
 **
6
 
 ** This file may be distributed and/or modified under the terms of the
7
 
 ** GNU General Public License version 2 as published by the Free Software
8
 
 ** Foundation and appearing in the file LICENSE.GPL included in the
9
 
 ** packaging of this file.
10
 
 **
11
 
 ** Licensees holding valid commercial KD Chart licenses may use this file in
12
 
 ** accordance with the KD Chart Commercial License Agreement provided with
13
 
 ** the Software.
14
 
 **
15
 
 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16
 
 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17
 
 **
18
 
 ** See http://www.kdab.net/kdchart for
19
 
 **   information about KDChart Commercial License Agreements.
20
 
 **
21
 
 ** Contact info@kdab.net if any conditions of this
22
 
 ** licensing are not clear to you.
23
 
 **
24
 
 **********************************************************************/
25
 
 
26
 
#ifndef MAINWINDOW_H
27
 
#define MAINWINDOW_H
28
 
 
29
 
#include "ui_mainwindow.h"
30
 
 
31
 
 
32
 
class QStandardItemModel;
33
 
 
34
 
namespace KDChart {
35
 
    class Chart;
36
 
    class LineDiagram;
37
 
}
38
 
 
39
 
 
40
 
class MainWindow : public QWidget, private Ui::MainWindow
41
 
{
42
 
    Q_OBJECT
43
 
 
44
 
public:
45
 
    MainWindow( QWidget* parent = 0 );
46
 
 
47
 
private slots:
48
 
 
49
 
    void initializeDataModels();
50
 
 
51
 
    void on_pushButtonSave_clicked();
52
 
    void saveAs();
53
 
    void on_pushButtonClear_clicked();
54
 
    void removeTheChart();
55
 
    void on_pushButtonLoad_clicked();
56
 
    void load();
57
 
 
58
 
private:
59
 
    QHBoxLayout* m_chartLayout;
60
 
 
61
 
    KDChart::Chart* m_chart;
62
 
 
63
 
    QStandardItemModel* m_model1;
64
 
    QStandardItemModel* m_model2;
65
 
};
66
 
 
67
 
 
68
 
#endif /* MAINWINDOW_H */
69