~ubuntu-branches/ubuntu/breezy/koffice/breezy

« back to all changes in this revision

Viewing changes to kspread/qtai_strip.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2004-05-09 11:33:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040509113300-vfrdadqsvjfuhn3b
Tags: 1:1.3.1-1
* New upstream bugfix release.
* Built against newer imagemagick (closes: #246623).
* Made koffice-libs/kformula recommend/depend on latex-xft-fonts, which
  provides mathematical fonts that the formula editor can use.  Also
  patched the kformula part to make these fonts the default.
* Changed kword menu hint from "WordProcessors" to "Word processors"
  (closes: #246209).
* Spellchecker configuration is now fixed (closes: #221256, #227568).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
        Written 1998-1999 by Uwe Langenkamp
3
 
 
4
 
        This software may be used and distributed according to the terms
5
 
        of the GNU Public License, incorporated herein by reference.
6
 
 
7
 
        The author may be reached as ul@it-guru.de
8
 
*/
9
 
 
10
 
#ifndef AIStrip_H
11
 
#define AIStrip_H
12
 
 
13
 
#include <qwidget.h>
14
 
#include <qcolor.h>
15
 
#include <qpopmenu.h>
16
 
#include <qlayout.h>
17
 
#include <qlabel.h>
18
 
#include <qpainter.h>
19
 
#include <qprinter.h>
20
 
#include <qpushbt.h>
21
 
#include <qradiobt.h>
22
 
#include <qbttngrp.h>
23
 
#include <qtooltip.h>
24
 
 
25
 
#include <stdio.h>
26
 
#include <stdlib.h>
27
 
 
28
 
#include "qtai_plot.h"
29
 
 
30
 
#define LEVEL 0
31
 
#define TACHO 1
32
 
 
33
 
/*******************************************************************/
34
 
/******* Begin Draw Window Definition  *****************************/
35
 
/*******************************************************************/
36
 
 
37
 
class AIStrip : public AIPlot
38
 
{
39
 
  Q_OBJECT
40
 
public:
41
 
  AIStrip(QWidget *parent,const char *name,int b=1,int t=1);
42
 
  void   addData(double xp,double *yp);
43
 
  void   setViewRange(double xr,double ymn,double ymx);
44
 
  void   setGridUnit(double wox); // Width between of X Axis Scales
45
 
  double xrange;
46
 
 
47
 
protected:
48
 
  void drawGrid( QPainter *p );
49
 
  void drawScale( QPainter *p,int direction,int w,int h);
50
 
  void drawLabel( QPainter *p,int direction,int w,int rw,int h,int rh);
51
 
 
52
 
private:
53
 
  double w_of_x;
54
 
};
55
 
 
56
 
/*******************************************************************/
57
 
/********* End Draw Window Definition  *****************************/
58
 
/*******************************************************************/
59
 
 
60
 
#endif // #ifdef AIStrip_H
61
 
 
62
 
 
63
 
 
64
 
 
65