~ubuntu-branches/ubuntu/raring/codeblocks/raring-proposed

« back to all changes in this revision

Viewing changes to src/plugins/contrib/wxSmithContribItems/wxchart/wxchart-1.0/include/wx/bar3dchartpoints.h

  • Committer: Bazaar Package Importer
  • Author(s): Cosme Domínguez Díaz
  • Date: 2010-08-09 04:38:38 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100809043838-a59ygguym4eg0jgw
Tags: 10.05-0ubuntu1
* New upstream release. Closes (LP: #322350)
 - Switch to dpkg-source 3.0 (quilt) format
 - Remove unneeded README.source
 - Add debian/get-source-orig script that removes all
   Windows prebuilt binaries
* Bump Standards-Version to 3.9.1
 - Stop shipping *.la files
* debian/control
 - Add cdbs package as Build-Depend
 - Add libbz2-dev and zlib1g-dev packages as
   Build-Depends (needed by libhelp_plugin.so)
 - Remove dpatch package of Build-Depends
 - Add codeblocks-contrib-debug package
 - Split architecture-independent files of codeblocks
   package in codeblocks-common package
* debian/rules
 - Switch to CDBS rules system
 - Add parallel build support
 - Add a call to debian/get-source-orig script
 - Use lzma compression (saves 23,5 MB of free space)
* debian/patches
 - Refresh 01_codeblocks_plugin_path
 - Add 02_no_Makefiles_in_debian_dir to remove any link
   in codeblocks build system to deleted Makefiles of debian directory
 - Drop 02_ftbfs_gcc44 and 03_ftbfs_glib221 (merged in upstream)
* debian/watch
 - Update to use the new host (berlios.de)

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
// Modified by:
6
6
// Created:
7
7
// Copyright:   (C) 2006, Paolo Gava
8
 
// RCS-ID:      $Id: bar3dchartpoints.h 4669 2007-11-24 14:54:50Z killerbot $
 
8
// RCS-ID:      $Id: bar3dchartpoints.h 5987 2009-12-29 08:24:01Z killerbot $
9
9
// Licence:     wxWindows licence
10
10
/////////////////////////////////////////////////////////////////////////////
11
11
 
15
15
//----------------------------------------------------------------------------
16
16
// Headers
17
17
//----------------------------------------------------------------------------
 
18
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 
19
#pragma interface "bar3dchartpoints.h"
 
20
#endif
18
21
 
19
22
#include "wx/points.h"
20
23
#include "wx/chartcolors.h"
21
24
#include "wx/chartpoints.h"
22
25
 
 
26
// External Classes
 
27
//-----------------
 
28
class wxChartSizes;
 
29
 
23
30
//+++-S-cd-------------------------------------------------------------------
24
31
//  NAME:       wxBarChartPoints
25
32
//  DESC:       Definition of XY for a bar chart
41
48
    // If this is allow after the bcp is out of scope the list has
42
49
    // a pointer which has been deallocated!
43
50
    //------------------------------------------------------------
44
 
    static wxBar3DChartPoints* CreateWxBar3DChartPoints(wxString name,
45
 
        ChartColor c = wxCHART_NOCOLOR, bool showlabel = false);
 
51
    static wxBar3DChartPoints* CreateWxBar3DChartPoints(wxString name, 
 
52
        ChartColor c = wxCHART_NOCOLOR, bool showlabel = false); 
46
53
 
47
54
    virtual ~wxBar3DChartPoints() {};
48
55
 
49
56
    // Draw the series of points
50
57
    //--------------------------
51
 
    virtual void Draw(CHART_HPAINT hp, CHART_HRECT hr);
52
 
 
 
58
    void Draw(CHART_HPAINT hp, CHART_HRECT hr);
 
59
    
53
60
    // Get n-th point information
54
61
    //---------------------------
55
 
    virtual ChartValue GetXVal(int n) const;
56
 
    virtual ChartValue GetYVal(int n) const;
57
 
    virtual wxString GetName(int n) const;
58
 
    virtual ChartColor GetColor(int n) const;
 
62
    ChartValue GetXVal(int n) const;
 
63
    ChartValue GetYVal(int n) const;
 
64
    wxString GetName(int n) const;
 
65
    ChartColor GetColor(int n) const;
59
66
 
60
67
    // Get stat values
61
68
    //----------------
62
 
    virtual int GetCount() const;
63
 
    virtual ChartValue GetMaxX() const;
64
 
    virtual ChartValue GetMaxY() const;
65
 
    virtual ChartValue GetMinX() const;
66
 
    virtual ChartValue GetMinY() const;
 
69
    int GetCount() const;
 
70
    ChartValue GetMaxX() const;
 
71
    ChartValue GetMaxY() const;
 
72
    ChartValue GetMinX() const;
 
73
    ChartValue GetMinY() const;
67
74
 
68
75
    // Get/Set zoom
69
76
    //-------------
70
 
    virtual void SetZoom(double z);
71
 
    virtual double GetZoom();
 
77
    void SetZoom(double z);
 
78
    double GetZoom();
72
79
 
73
80
    // Set sizes for drawing
74
81
    //----------------------
75
 
    virtual void SetSizes(ChartSizes sizes);
76
 
    virtual const ChartSizes& GetSizes() const;
 
82
    void SetSizes(wxChartSizes *sizes);
 
83
    wxChartSizes* GetSizes() const;
77
84
 
78
85
    // Get/Set Color
79
86
    //--------------
80
 
    virtual ChartColor GetColor() const;
81
 
    virtual void SetColor(ChartColor c);
 
87
    ChartColor GetColor() const;
 
88
    void SetColor(ChartColor c);
82
89
 
83
90
    // Get/Set Name
84
91
    //--------------
85
 
    virtual wxString GetName() const;
86
 
    virtual void SetName(wxString name);
 
92
    wxString GetName() const;
 
93
    void SetName(wxString name);
87
94
 
88
95
    // Add point
89
96
    //----------
90
 
    virtual void Add(wxString name, ChartValue x, ChartValue y);
91
 
    virtual void Add(wxString name, ChartValue x, ChartValue y,
 
97
    void Add(wxString name, ChartValue x, ChartValue y);
 
98
    void Add(wxString name, ChartValue x, ChartValue y,
92
99
             ChartColor c);
93
100
 
94
101
    // Set/Get Display option
95
102
    //-----------------------
96
 
    virtual void SetDisplayTag(wxDISPLAY_LABEL d);
97
 
    virtual wxDISPLAY_LABEL GetDisplayTag() const;
 
103
    void SetDisplayTag(wxDISPLAY_LABEL d);
 
104
    wxDISPLAY_LABEL GetDisplayTag() const;
98
105
 
99
106
private:
100
107
    wxPoints m_Points;
102
109
    ChartColor m_Color;
103
110
    double m_Zoom;
104
111
    wxDISPLAY_LABEL m_BarTag;
105
 
    bool m_ShowLabel;
106
 
    ChartSizes m_Sizes;
 
112
    bool m_ShowLabel;   
 
113
    wxChartSizes *m_Sizes;
107
114
 
108
115
    // ctor
109
116
    // has to be created on the heap!
110
117
    //-------------------------------
111
118
    wxBar3DChartPoints(wxString name, ChartColor c, bool showlabel);
112
 
 
 
119
    
113
120
    // copy ctor & op= NOT allow
114
121
    //--------------------------
115
122
    wxBar3DChartPoints(const wxBar3DChartPoints&);