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

« back to all changes in this revision

Viewing changes to src/ipe/appui.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2009-12-11 21:22:35 UTC
  • mfrom: (4.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20091211212235-5iio4nzpra64snab
Tags: 7.0.10-1
* New upstream.  Closes: #551192.
  - New build-depends: libcairo2-dev, liblua5.1-0-dev, gsfonts
  - patches/config.diff: Remove.  Upstream build system replaced.
  - Runtime lib package changed to libipe7.0.10 from libipe1c2a
  - Devel package renamed to libipe-dev (from libipe1-dev)
  - Package ipe depends on lua5.1 due to ipe-update-master.

* rules: Re-write to use dh.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// -*- C++ -*-
2
2
// --------------------------------------------------------------------
3
 
// AppUi
 
3
// Appui
4
4
// --------------------------------------------------------------------
5
5
/*
6
6
 
7
7
    This file is part of the extensible drawing editor Ipe.
8
 
    Copyright (C) 1993-2007  Otfried Cheong
 
8
    Copyright (C) 1993-2009  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
12
 
    the Free Software Foundation; either version 2 of the License, or
 
12
    the Free Software Foundation; either version 3 of the License, or
13
13
    (at your option) any later version.
14
14
 
15
15
    As a special exception, you have permission to link Ipe with the
32
32
#ifndef APPUI_H
33
33
#define APPUI_H
34
34
 
35
 
#include "ipebase.h"
36
 
#include "ipecolor.h"
37
 
#include "ipestyle.h"
38
 
#include "ipesnap.h"
39
 
#include "ipelet.h"
40
 
#include "ipeundo.h"
41
 
 
42
 
#include "ipemodel.h"
43
 
#include "ipeprefs.h"
44
 
 
45
 
#include "ipecanvas.h"
46
 
#include "ipeoverlay.h"
47
 
 
48
 
#include "master.h"
49
 
 
50
 
#include <QtGui>
51
 
 
52
 
#ifdef MessageBox
53
 
#undef MessageBox
54
 
#endif
55
 
 
56
 
class IpePage;
57
 
class IpeStyleSheet;
58
 
class ZoomSpinBox;
59
 
class IpeSpinBox;
60
 
class ArrowButton;
61
 
class DecimalSpinBox;
62
 
class LayerBox;
63
 
 
64
 
// --------------------------------------------------------------------
65
 
 
66
 
class AppUi : public QMainWindow, public IpeCanvasServices,
67
 
              public IpeOverlayServices, public IpeletHelper {
68
 
  Q_OBJECT
69
 
 
70
 
public:
71
 
  enum TCommands { ECmdGroup, ECmdUngroup, ECmdDuplicate, ECmdFront, ECmdBack,
72
 
                   ECmdForward, ECmdBackward, ECmdBehind, ECmdBefore,
73
 
                   ECmdCut, ECmdCopy, ECmdPaste, ECmdDelete, ECmdSelectAll,
74
 
                   ECmdNewLayer, ECmdLineWidth, ECmdDashStyle,
75
 
                   ECmdTextSize, ECmdMarkShape, ECmdMarkSize,
76
 
                   ECmdTextStyle, ECmdVerticalAlign, ECmdHorizontalAlign,
77
 
                   ECmdTransformableText, ECmdPinned,
78
 
                   ECmdLineJoin, ECmdLineCap, ECmdWindRule,
79
 
                   ECmdUndo, ECmdRedo, ECmdEdit,
80
 
                   ECmdSetArrows, ECmdArrowSize, ECmdStroke, ECmdFill,
81
 
                   ECmdComposePaths, ECmdJoinPaths, ECmdDecomposePath,
82
 
                   ECmdHere, ECmdSetOrigin, ECmdResetOrigin,
83
 
                   ECmdSetOriginSnap, ECmdSetDirection, ECmdSetDirectionSnap,
84
 
                   ECmdResetDirection,
85
 
                   ECmdSetLine, ECmdSetLineSnap,
86
 
                   ECmdNewLayerNewView, ECmdNewView, ECmdDeleteView,
87
 
                   ECmdFirstView, ECmdLastView,
88
 
  };
89
 
 
90
 
public:
91
 
  AppUi(QWidget* parent=0, Qt::WFlags f=0);
 
35
#include "ipeqtcanvas.h"
 
36
 
 
37
#include <QMainWindow>
 
38
#include <QAction>
 
39
#include <QToolBar>
 
40
#include <QDockWidget>
 
41
#include <QActionGroup>
 
42
#include <QListWidget>
 
43
#include <QLabel>
 
44
#include <QComboBox>
 
45
#include <QToolButton>
 
46
 
 
47
using namespace ipe;
 
48
using namespace ipeqt;
 
49
 
 
50
// avoid including Lua headers here
 
51
typedef struct lua_State lua_State;
 
52
 
 
53
// --------------------------------------------------------------------
 
54
 
 
55
class Prefs {
 
56
public:
 
57
  static Prefs *get();
 
58
  QIcon icon(String name);
 
59
  static QIcon colorIcon(Color color);
 
60
  QPixmap pixmap(String name);
 
61
  String iconDir() const { return iIconDir; }
 
62
 
 
63
private:
 
64
  Prefs();
 
65
 
 
66
private:
 
67
  static Prefs *singleton;
 
68
  String iIconDir;
 
69
};
 
70
 
 
71
// --------------------------------------------------------------------
 
72
 
 
73
class LayerBox : public QListWidget {
 
74
  Q_OBJECT
 
75
public:
 
76
  LayerBox(QWidget *parent = 0);
 
77
 
 
78
  void set(const Page *page, int view);
 
79
 
 
80
signals:
 
81
  void activated(String name, String layer);
 
82
  void showLayerBoxPopup(Vector v, String layer);
 
83
 
 
84
public slots:
 
85
  void layerChanged(QListWidgetItem *item);
 
86
 
 
87
protected:
 
88
  virtual void mouseReleaseEvent(QMouseEvent *e);
 
89
  virtual void mousePressEvent(QMouseEvent *e);
 
90
 
 
91
  void addAction(QMenu *m, QListWidgetItem *item, String name,
 
92
                 const QString &text);
 
93
 
 
94
private:
 
95
  bool iInSet;
 
96
};
 
97
 
 
98
// --------------------------------------------------------------------
 
99
 
 
100
class PathView : public QWidget {
 
101
  Q_OBJECT
 
102
 
 
103
public:
 
104
  PathView(QWidget* parent = 0, Qt::WFlags f = 0);
 
105
 
 
106
  void set(const AllAttributes &all, Cascade *sheet);
 
107
 
 
108
  virtual QSize sizeHint() const;
 
109
 
 
110
signals:
 
111
  void activated(String name);
 
112
  void showPathStylePopup(Vector v);
 
113
 
 
114
protected:
 
115
  virtual void paintEvent(QPaintEvent *ev);
 
116
  virtual void mouseReleaseEvent(QMouseEvent *e);
 
117
  virtual void mousePressEvent(QMouseEvent *e);
 
118
  virtual bool event(QEvent *ev);
 
119
 
 
120
private:
 
121
  Cascade *iCascade;
 
122
  AllAttributes iAll;
 
123
};
 
124
 
 
125
// --------------------------------------------------------------------
 
126
 
 
127
class QSignalMapper;
 
128
 
 
129
class AppUi : public QMainWindow {
 
130
  Q_OBJECT
 
131
 
 
132
public:
 
133
  enum { EFileMenu, EEditMenu, EPropertiesMenu, ESnapMenu,
 
134
         EModeMenu, EZoomMenu, ELayerMenu, EViewMenu,
 
135
         EPageMenu, EIpeletMenu, EHelpMenu, ENumMenu };
 
136
 
 
137
  // change list in front of AppUi::selector if enum changes
 
138
  enum { EUiStroke, EUiFill, EUiPen, EUiTextSize, EUiMarkShape,
 
139
         EUiSymbolSize, EUiGridSize, EUiAngleSize, EUiNum,
 
140
         EUiView = EUiNum, EUiPage };
 
141
 
 
142
public:
 
143
  AppUi(lua_State *L0, int model, Qt::WFlags f=0);
92
144
  ~AppUi();
93
145
 
94
 
  bool Load(QString fileName);
95
 
  bool Save(QString fname, bool warnOverwrite);
 
146
  Canvas *canvas() { return iCanvas; }
 
147
  void setupSymbolicNames(const Cascade *sheet);
 
148
  void setAttributes(const AllAttributes &all, Cascade *sheet);
 
149
  void setGridAngleSize(Attribute abs_grid, Attribute abs_angle);
 
150
  void setLayers(const Page *page, int view);
 
151
  void setZoom(double zoom);
 
152
  void setActionsEnabled(bool mode);
 
153
  QAction *findAction(const char *name) const;
 
154
  void setNumbers(String vno, String pno);
96
155
 
97
 
  static void ReadKeyAssignment();
 
156
  // direct Lua methods
 
157
  int setBookmarks(lua_State *L);
98
158
 
99
159
public slots:
100
 
  void Cmd(int cmd);
101
 
  void UndoCmd(int cmd);
102
 
  void SnapCmd(int cmd);
103
 
 
104
 
  void InsertTextBox();
105
 
 
106
 
  void NewWindow();
107
 
 
108
 
  void About();
109
 
  void AboutIpelets();
110
 
 
111
 
  void NewDoc();
112
 
  bool Save();
113
 
  bool SaveAs();
114
 
  void SaveAsBitmap();
115
 
  void Load();
116
 
 
117
 
  void EditObject();
118
 
  void changeTextWidth();
119
 
  void EditDocProps();
120
 
  void EditPrefs();
121
 
  void Manual();
122
 
  bool RunLatex(bool force = true);
123
 
 
124
 
  void NextView();
125
 
  void PreviousView();
126
 
  void EditBookmarks();
127
 
  void EditEffects();
128
 
 
129
 
  void CreatePage();
130
 
  void DeletePage();
131
 
  void CopyPage(bool cut = false);
132
 
  void CutPage();
133
 
  void PastePage();
134
 
 
135
 
  void NormalSize();
136
 
  void DefaultZoom();
137
 
  void FitPage();
138
 
  void FitObjects();
139
 
  void FitSelection();
140
 
 
141
 
  void StyleSheets();
142
 
  void UpdateStyleSheets();
143
 
 
144
 
  void FirstPage();
145
 
  void LastPage();
146
 
 
147
 
  void SetCreator(QAction *action);
148
 
  void SetMouseDisplayIn(int);
149
 
 
150
 
  void RunIpelet(int);
 
160
  void action(String name);
 
161
  void qAction(const QString &name);
 
162
  void selectLayerAction(QAction *a);
 
163
  void moveToLayerAction(QAction *a);
 
164
  void textStyleAction(QAction *a);
 
165
 
 
166
  void layerAction(String name, String layer);
 
167
  void mouseAction(int button);
 
168
  void positionChanged();
 
169
  void toolChanged(bool hasTool);
 
170
  void aboutIpe();
 
171
 
 
172
  void wheelZoom(int degrees);
 
173
  void absoluteButton(int id);
 
174
  void selector(int id, String value);
 
175
  void comboSelector(int id);
 
176
 
 
177
  void bookmarkSelected(QListWidgetItem *item);
 
178
 
 
179
  void aboutToShowSelectLayerMenu();
 
180
  void aboutToShowMoveToLayerMenu();
 
181
  void aboutToShowTextStyleMenu();
 
182
  void showPathStylePopup(Vector v);
 
183
  void showLayerBoxPopup(Vector v, String layer);
 
184
 
 
185
private:
 
186
  void addItem(QMenu *m, const QString &title, const char *name);
 
187
  void addItem(int m, const QString &title, const char *name);
 
188
  void addSnap(const char *name);
 
189
  void buildMenus();
 
190
  void callSelector(String name, String value);
 
191
  void callSelector(const char *name, Color color);
 
192
  void callSelector(const char *name, double scalar);
 
193
  void setCheckMark(String name, Attribute a);
151
194
 
152
195
protected:
153
196
  void closeEvent(QCloseEvent *ev);
154
197
 
155
 
private slots:
156
 
  void aboutToShowEditMenu();
157
 
  void aboutToShowPropertiesMenu();
158
 
  void aboutToShowMouseUnitsMenu();
159
 
 
160
 
  void PageChanged(int);
161
 
  void PageChanged();
162
 
  void ViewChanged(int);
163
 
  void ViewChanged();
164
 
  void ResolutionChanged(int);
165
 
  void AbsoluteAttributes(bool);
166
 
  void AbsoluteSnapping(bool);
167
 
  void ToggleAbsoluteAttributes();
168
 
 
169
 
  void SetStrokeColor();
170
 
  void SetFillColor();
171
 
  void SetStrokeColorName(int item);
172
 
  void SetFillColorName(int item);
173
 
 
174
 
  void setMarkShape(int id);
175
 
  void setTransformable(int id);
176
 
  void setHorizontalAlignment(int id);
177
 
  void setVerticalAlignment(int id);
178
 
  void setTextStyle(int id);
179
 
  void setPinned(int id);
180
 
  void setLineJoin(int id);
181
 
  void setLineCap(int id);
182
 
  void setWindRule(int id);
183
 
 
184
 
  void moveToLayer(int id);
185
 
  void selectInLayer(int id);
186
 
 
187
 
  void LineWidthChanged(int id);
188
 
  void AbsLineWidthChanged(int val);
189
 
  void DashStyleChanged(int id);
190
 
  void TextSizeChanged(int id);
191
 
  void AbsTextSizeChanged(int val);
192
 
  void MarkSizeChanged(int id);
193
 
  void AbsMarkSizeChanged(int val);
194
 
  void ArrowSizeChanged(int id);
195
 
  void AbsArrowSizeChanged(int val);
196
 
  void ArrowChanged(bool on);
197
 
  void GridSizeChanged(int id);
198
 
  void AbsGridSizeChanged(int val);
199
 
  void AngleSizeChanged(int id);
200
 
  void AbsAngleSizeChanged(int val);
201
 
 
202
 
  void SnapChanged(bool);
203
 
  void GridVisible(bool);
204
 
  void CoordinatesVisible(bool);
205
 
  void LayerRightPress(QListWidgetItem *item, const QPoint &pos);
206
 
  void LayerChanged(QListWidgetItem *item);
207
 
  void BookmarkSelected(QListWidgetItem *item);
208
 
 
209
 
  void PreferencesChanged();
210
 
 
211
 
private: // from IpeCanvasServices
212
 
  virtual IpeBuffer StandardFont(IpeString fontName);
213
 
  virtual void CvSvcRequestOverlay(QMouseEvent *ev);
214
 
  virtual void CvSvcSetDrawingMode(bool mode);
215
 
  virtual void CvSvcWheelZoom(int delta);
216
 
  virtual void CvSvcMousePosition(const IpeVector &pos);
217
 
  virtual void CvSvcClearMessage();
218
 
 
219
 
private: // from IpeOverlayServices
220
 
  virtual void OvSvcAddObject(IpeObject *obj);
221
 
  virtual const IpeAllAttributes &OvSvcAttributes();
222
 
  virtual const IpeStyleSheet *OvSvcStyleSheet();
223
 
  virtual void OvSvcAddUndoItem(IpePage *page, QString s);
224
 
  virtual void OvSvcAddUndoItem(IpePage::iterator it, IpePage *page,
225
 
                                const IpePgObject &original, QString s);
226
 
  virtual void OvSvcMessage(QString s);
227
 
 
228
 
private: // from IpeletHelper
229
 
  virtual void Message(const char *msg);
230
 
  virtual int MessageBox(const char *text, const char *button1,
231
 
                         const char *button2, const char *button3);
232
 
  virtual bool GetString(const char *prompt, IpeString &str);
233
 
  virtual const IpeStyleSheet *StyleSheet();
234
 
  virtual const IpeDocument *Document();
235
 
  virtual IpeDocument *EditDocument();
236
 
  virtual int CurrentPage() const;
237
 
  virtual int CurrentView() const;
238
 
  virtual int CurrentLayer() const;
239
 
  virtual const IpeSnapData &SnapData() const;
240
 
  virtual const IpeAllAttributes &Attributes() const;
241
 
 
242
 
private:
243
 
  QKeySequence Key(IpeString function) const;
244
 
  inline IpePage *Page() { return iDoc->page(iPno); }
245
 
  void FitBox(const IpeRect &box);
246
 
  void UpdateLayers();
247
 
  void SetGridSizeFromPage();
248
 
  void SwitchAttributeUi();
249
 
  void SwitchSnapUi();
250
 
  void SetCaption();
251
 
  void ShowStyleInUi();
252
 
  void AddUndo(IpeUndoItem *item);
253
 
  void UpdateUndo();
254
 
  IpeAttribute PageColor();
255
 
 
256
 
  void AutoExport(IpeDocument::TFormat fm, const QString &fn,
257
 
                  bool onlyIfExists);
258
 
 
259
 
  void ErrMsg(QString str);
260
 
 
261
 
  IpeFixed AbsValue(IpeAttribute attr);
262
 
  void ConvertAbsolute(DecimalSpinBox *spin, IpeAttribute &attr);
263
 
 
264
 
  void ResetCombo(IpeKind kind, QComboBox *combo,
265
 
                  IpeAttribute &attr, QPixmap *pixmap = 0);
266
 
  void InsertColor(QComboBox *combo, IpeAttribute sym);
267
 
  void SetColorFromQColor(IpeAttribute &colorToSet, QColor &qColor,
268
 
                          QPushButton *button);
269
 
 
270
 
  virtual bool eventFilter(QObject *obj, QEvent *ev);
271
 
  void addActions(QMenu *menu, const char *text[], int num, const char *slot);
272
 
 
273
 
private:
274
 
  // UI components
275
 
  IpeCanvas *iCanvas;
276
 
 
277
 
  QMenu *iFileMenu;
278
 
  QMenu *iEditMenu;
279
 
  QMenu *iPropertiesMenu;
280
 
  QMenu *iSnapMenu;
281
 
  QMenu *iModeMenu;
282
 
  QMenu *iZoomMenu;
283
 
  QMenu *iLayerMenu;
284
 
  QMenu *iViewMenu;
285
 
  QMenu *iPageMenu;
286
 
  QMenu *iIpeletMenu;
287
 
  QMenu *iHelpMenu;
288
 
 
289
 
  QMenu *iTransformableMenu;
 
198
private:
 
199
  lua_State *L;
 
200
  int iModel;  // reference to Lua model
 
201
 
 
202
  Cascade *iCascade;
 
203
  AllAttributes iAll;  // current settings in UI
 
204
 
 
205
  Canvas *iCanvas;
 
206
  PathView *iPathView;
 
207
 
 
208
  QMenu *iMenu[ENumMenu];
 
209
  QMenu *iSelectLayerMenu;
 
210
  QMenu *iMoveToLayerMenu;
290
211
  QMenu *iTextStyleMenu;
291
 
  QMenu *iMarkShapeMenu;
292
 
  QMenu *iLabelVerticalAlignmentMenu;
293
 
  QMenu *iLabelHorizontalAlignmentMenu;
294
 
  QMenu *iPinnedMenu;
295
 
  QMenu *iLineJoinMenu;
296
 
  QMenu *iLineCapMenu;
297
 
  QMenu *iWindRuleMenu;
298
 
 
299
 
  QMenu *iMouseUnitsMenu;
300
 
 
301
 
  QMenu *iSelectInLayerMenu;
302
 
  QMenu *iMoveToLayerMenu;
303
 
 
304
 
  QToolBar *iFileTools;
305
 
  QToolBar *iResolutionTools;
306
 
  QToolBar *iPageTools;
 
212
 
 
213
  QToolButton *iButton[EUiGridSize];
 
214
  QComboBox *iSelector[EUiNum];
 
215
 
 
216
  QToolButton *iViewNumber;
 
217
  QToolButton *iPageNumber;
 
218
 
307
219
  QToolBar *iSnapTools;
308
220
  QToolBar *iObjectTools;
309
221
 
311
223
  QDockWidget *iLayerTools;
312
224
  QDockWidget *iBookmarkTools;
313
225
 
314
 
  QStackedWidget *iStrokeColorStack;
315
 
  QStackedWidget *iFillColorStack;
316
 
  QStackedWidget *iLineWidthStack;
317
 
  QStackedWidget *iArrowSizeStack;
318
 
  QStackedWidget *iTextSizeStack;
319
 
  QStackedWidget *iMarkSizeStack;
320
 
  QStackedWidget *iGridSizeStack;
321
 
  QStackedWidget *iAngleSizeStack;
322
 
 
323
 
  QAction *iCutAction;
324
 
  QAction *iCopyAction;
325
 
  QAction *iDeleteAction;
326
 
  QAction *iGroupAction;
327
 
  QAction *iFrontAction;
328
 
  QAction *iBackAction;
329
 
  QAction *iDuplicateAction;
330
 
 
331
 
  QAction *iUngroupAction;
332
 
  QAction *iComposeAction;
333
 
  QAction *iJoinAction;
334
 
 
335
 
  QAction *iAbsoluteAttributesAction;
336
 
  QAction *iUndoAction;
337
 
  QAction *iRedoAction;
338
 
  QAction *iGridVisibleAction;
339
 
  QAction *iCoordinatesVisibleAction;
340
 
  QAction *iAbsoluteSnapAction;
341
 
 
342
 
  QSpinBox *iResolution;
343
 
 
344
 
  IpeSpinBox *iPageNumber;
345
 
  IpeSpinBox *iViewNumber;
346
 
 
347
 
  QComboBox *iStrokeColor;
348
 
  QPushButton *iAbsStrokeColor;
349
 
  QComboBox *iFillColor;
350
 
  QPushButton *iAbsFillColor;
351
 
 
352
 
  QComboBox *iLineWidth;
353
 
  DecimalSpinBox *iAbsLineWidth;
354
 
  QComboBox *iDashStyle;
355
 
  ArrowButton *iBackwardArrow;
356
 
  ArrowButton *iForwardArrow;
357
 
  QComboBox *iArrowSize;
358
 
  DecimalSpinBox *iAbsArrowSize;
359
 
 
360
226
  QActionGroup *iModeActionGroup;
361
 
  QAction *iModeAction[IpeOverlayFactory::Num];
362
 
  QComboBox *iMarkSize;
363
 
  DecimalSpinBox *iAbsMarkSize;
364
 
  QComboBox *iTextSize;
365
 
  DecimalSpinBox *iAbsTextSize;
366
 
 
367
 
  QActionGroup *iSnapActionGroup;
368
 
  QAction *iSnapAction[6];
369
 
  QComboBox *iGridSize;
370
 
  IpeSpinBox *iAbsGridSize;
371
 
  QComboBox *iAngleSize;
372
 
  DecimalSpinBox *iAbsAngleSize;
373
 
 
 
227
 
 
228
  QListWidget *iBookmarks;
374
229
  LayerBox *iLayerList;
375
 
  QListWidget *iBookmarks;
376
 
  bool iBookmarksShown;
377
230
 
 
231
  int iMouseIn;
378
232
  QLabel *iMouse;
379
 
  IpeVector iMouseBase;
380
 
  int iMouseIn;
381
 
 
382
 
  QAction *iPasteBitmapAction;
383
 
 
384
 
  //! The most recently used file format on saving
385
 
  QString iSaveFilter;
386
 
 
387
 
  // Information about the document
388
 
 
389
 
  //! The document's filename (null if not yet saved).
390
 
  QString iFileName;
391
 
  //! The document.
392
 
  IpeDocument *iDoc;
393
 
  //! The currently displayed page no.
394
 
  int iPno;
395
 
  //! The current view.
396
 
  int iVno;
397
 
  //! The current layer.
398
 
  int iLayer;
399
 
  //! Whether latex needs to be run.
400
 
  bool iNeedLatex;
401
 
  //! Displaying attributes absolute (or symbolic)
402
 
  bool iAbsoluteAttributes;
403
 
  //! Displaying absolute snap sizes.
404
 
  bool iAbsoluteSnapping;
405
 
  //! The attributes set in the UI.
406
 
  IpeAllAttributes iAttributes;
407
 
  //! Snapping state
408
 
  IpeSnapData iSnapData;
409
 
  IpeFixed iSnapAngle;
410
 
  //! Current Ipe mode.
411
 
  int iMode;
412
 
  //! All symbolic attributes in style sheet
413
 
  IpeAttributeSeq iSyms[IpeAttribute::ETemplate + 1];
414
 
 
415
 
  //! Undo stack
416
 
  IpeUndoStack iUndo;
417
 
  // Ipelets
418
 
  //! Ipelet repository
419
 
  IpeletMaster iIpeletMaster;
420
 
  bool iIpeletNoUndo;
421
 
 
422
 
  // Key assignment
423
 
  static std::map<IpeString, IpeString> keyAssignment;
 
233
  QLabel *iResolution;
 
234
 
 
235
  QSignalMapper *iActionMap;
 
236
  std::map<String, QAction *> iActions;
424
237
};
425
238
 
426
239
// --------------------------------------------------------------------