~ubuntu-branches/ubuntu/precise/ipe/precise

« back to all changes in this revision

Viewing changes to src/ipeqtcanvas/ipeqtcanvas.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2011-02-15 23:06:48 UTC
  • mfrom: (4.1.8 sid)
  • Revision ID: james.westby@ubuntu.com-20110215230648-ddivgj61o8k7et79
Tags: 7.0.14-1
* New upstream.  Update control, rules.

* libipe7.0.13.install:
* ipe.links: Remove.  Replace with explicit calls in rules using
  $(IPEVERS).  Fixes lua link.  Closes: #611560.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
/*
6
6
 
7
7
    This file is part of the extensible drawing editor Ipe.
8
 
    Copyright (C) 1993-2009  Otfried Cheong
 
8
    Copyright (C) 1993-2010  Otfried Cheong
9
9
 
10
10
    Ipe is free software; you can redistribute it and/or modify it
11
11
    under the terms of the GNU General Public License as published by
88
88
    Q_OBJECT
89
89
 
90
90
  public:
 
91
    /*! In pretty display, no dashed lines are drawn around text
 
92
      objects, and if Latex font data is not available, no text is
 
93
      drawn at all. */
91
94
    struct Style {
92
95
      Color paperColor;
93
96
      bool pretty;
94
97
      bool classicGrid;
95
98
      double thinLine;
96
99
      double thickLine;
 
100
      int thinStep;
 
101
      int thickStep;
 
102
      bool paperClip;
 
103
      bool numberPages;
97
104
    };
98
105
 
99
106
    Canvas(QWidget* parent, Qt::WFlags f=0);
100
107
    ~Canvas();
101
108
 
102
 
    void setPage(const Page *page, int view, const Cascade *sheet);
 
109
    void setPage(const Page *page, int pno, int view, const Cascade *sheet);
103
110
    void setFontPool(const FontPool *fontPool);
104
111
 
105
112
    //! Return current pan.
120
127
    //! Return current snapping information.
121
128
    inline const Snap &snap() const { return iSnap; }
122
129
 
 
130
    //! Return current additional modifiers.
 
131
    inline int additionalModifiers() const { return iAdditionalModifiers; }
 
132
    void setAdditionalModifiers(int mod);
 
133
 
123
134
    Vector devToUser(const Vector &arg) const;
124
135
    Vector userToDev(const Vector &arg) const;
125
136
 
126
137
    void setCanvasStyle(const Style &style);
127
 
    void setPretty(bool pretty);
 
138
    //! Return canvas style
 
139
    Style canvasStyle() const { return iStyle; }
128
140
    void setPan(const Vector &v);
129
141
    void setZoom(double zoom);
130
142
    void setSnap(const Snap &s);
169
181
  protected:
170
182
    Tool *iTool;
171
183
    const Page *iPage;
 
184
    int iPageNumber;
172
185
    int iView;
173
186
    const Cascade *iCascade;
174
187
 
180
193
    bool iDimmed;
181
194
    bool iAutoSnap;
182
195
    Vector iAutoOrigin;
 
196
    int iAdditionalModifiers;
183
197
 
184
198
    bool iRepaintObjects;
185
199
    int iWidth, iHeight;