~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/src/yaxiswindow.cpp

  • 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: yaxiswindow.cpp 4016 2007-05-30 23:08:39Z byo $
 
8
// RCS-ID:      $Id: yaxiswindow.cpp 5961 2009-12-08 06:24:32Z mortenmacfly $
9
9
// Licence:     wxWindows licence
10
10
/////////////////////////////////////////////////////////////////////////////
11
11
 
14
14
//----------------------------------------------------------------------------
15
15
 
16
16
// wx
 
17
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 
18
#pragma implementation "yaxiswindow.h"
 
19
#endif
17
20
 
18
21
// For compilers that support precompilation, includes "wx.h".
19
22
#include <wx/wxprec.h>
27
30
#endif
28
31
 
29
32
#include "wx/yaxiswindow.h"
 
33
#include "wx/chartsizes.h"
30
34
 
31
35
IMPLEMENT_DYNAMIC_CLASS(wxYAxisWindow, wxWindow)
32
36
 
39
43
 
40
44
//+++-S-cf-------------------------------------------------------------------
41
45
//      NAME:           ctor
42
 
//      DESC:
 
46
//      DESC:           
43
47
//      PARAMETERS:     wxWindow* parent,
44
48
//                              ChartValue max,
45
49
//                              ChartValue min,
49
53
         wxScrolledWindow *parent,
50
54
         ChartValue max,
51
55
         ChartValue min
52
 
):  wxWindow(parent, -1, wxDefaultPosition,
 
56
):  wxWindow(parent, -1, wxDefaultPosition, 
53
57
                         wxSize(YAXIS_WIDTH, YAXIS_HEIGHT)/*, wxSIMPLE_BORDER*/),
54
58
        m_WinParent(parent),
55
59
        m_YAxis(max, min)
59
63
 
60
64
//+++-S-cf-------------------------------------------------------------------
61
65
//      NAME:           SetVirtualMax
62
 
//      DESC:
 
66
//      DESC:           
63
67
//      PARAMETERS:     ChartValue v
64
68
//      RETURN:         None
65
69
//----------------------------------------------------------------------E-+++
72
76
 
73
77
//+++-S-cf-------------------------------------------------------------------
74
78
//      NAME:           SetVirtualMin
75
 
//      DESC:
 
79
//      DESC:           
76
80
//      PARAMETERS:     ChartValue v
77
81
//      RETURN:         None
78
82
//----------------------------------------------------------------------E-+++
85
89
 
86
90
//+++-S-cf-------------------------------------------------------------------
87
91
//      NAME:           GetVirtualMax
88
 
//      DESC:
 
92
//      DESC:           
89
93
//      PARAMETERS:     None
90
94
//      RETURN:         ChartValue
91
95
//----------------------------------------------------------------------E-+++
92
 
ChartValue wxYAxisWindow::GetVirtualMax() const
 
96
ChartValue wxYAxisWindow::GetVirtualMax() const 
93
97
{
94
98
        return ( m_YAxis.GetVirtualMax() );
95
99
}
96
100
 
97
101
//+++-S-cf-------------------------------------------------------------------
98
102
//      NAME:           GetVirtualMin
99
 
//      DESC:
 
103
//      DESC:           
100
104
//      PARAMETERS:     None
101
105
//      RETURN:         ChartValue
102
106
//----------------------------------------------------------------------E-+++
136
140
//      RETURN:         None
137
141
//----------------------------------------------------------------------E-+++
138
142
void wxYAxisWindow::SetSizes(
139
 
        ChartSizes sizes
 
143
        wxChartSizes *sizes
140
144
)
141
145
{
142
146
        m_YAxis.SetSizes( sizes );
148
152
//      PARAMETERS:     ChartSizes sizes
149
153
//      RETURN:         None
150
154
//----------------------------------------------------------------------E-+++
151
 
const ChartSizes& wxYAxisWindow::GetSizes() const
 
155
const wxChartSizes* wxYAxisWindow::GetSizes() const
152
156
{
153
157
        return ( m_YAxis.GetSizes() );
154
158
}
183
187
 
184
188
//+++-S-cf-------------------------------------------------------------------
185
189
//      NAME:           OnPaint()
186
 
//      DESC:
 
190
//      DESC:           
187
191
//      PARAMETERS:     wxPaintEvent &event
188
192
//      RETURN:         None
189
193
//----------------------------------------------------------------------E-+++
192
196
)
193
197
{
194
198
    wxPaintDC dc( this );
195
 
 
 
199
   
196
200
        //-----------------------------------------------------------------------
197
201
        // Draw y-axis window
198
202
        //-----------------------------------------------------------------------
201
205
 
202
206
//+++-S-cf-------------------------------------------------------------------
203
207
//      NAME:           OnMouse()
204
 
//      DESC:
 
208
//      DESC:           
205
209
//      PARAMETERS:     wxMouseEvent &event
206
210
//      RETURN:         None
207
211
//----------------------------------------------------------------------E-+++