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

« back to all changes in this revision

Viewing changes to kontour/PolygonPreview.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
 
/* -*- C++ -*-
2
 
 
3
 
  $Id: PolygonPreview.h,v 1.2 2000/07/27 12:32:28 wtrobin Exp $
4
 
 
5
 
  This file is part of KIllustrator.
6
 
  Copyright (C) 1998 Kai-Uwe Sattler (kus@iti.cs.uni-magdeburg.de)
7
 
 
8
 
  This program is free software; you can redistribute it and/or modify
9
 
  it under the terms of the GNU Library General Public License as
10
 
  published by
11
 
  the Free Software Foundation; either version 2 of the License, or
12
 
  (at your option) any later version.
13
 
 
14
 
  This program is distributed in the hope that it will be useful,
15
 
  but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 
  GNU General Public License for more details.
18
 
 
19
 
  You should have received a copy of the GNU Library General Public License
20
 
  along with this program; if not, write to the Free Software
21
 
  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
 
 
23
 
*/
24
 
 
25
 
#ifndef PolygonPreview_h_
26
 
#define PolygonPreview_h_
27
 
 
28
 
#include <qframe.h>
29
 
 
30
 
class PolygonPreview : public QFrame {
31
 
 
32
 
    Q_OBJECT
33
 
 
34
 
public:
35
 
    PolygonPreview(QWidget* parent = 0L, const char* name = 0L);
36
 
 
37
 
    virtual QSize sizeHint() const { return QSize(150, 150); }
38
 
    virtual QSize minimumSizeHint() const { return QSize(70, 70); }
39
 
    virtual QSizePolicy sizePolicy() const { return QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); }
40
 
 
41
 
public slots:
42
 
    void slotSharpness (int value);
43
 
    void slotConcavePolygon ();
44
 
    void slotConvexPolygon ();
45
 
    void increaseNumOfCorners ();
46
 
    void decreaseNumOfCorners ();
47
 
    void setNumOfCorners (int value);
48
 
 
49
 
protected:
50
 
    virtual void paintEvent(QPaintEvent *e);
51
 
 
52
 
private:
53
 
    int nCorners;
54
 
    int sharpness;
55
 
    bool isConcave;
56
 
};
57
 
 
58
 
#endif