src/mainwindow.h

changeset 1339
1f342d5abc85
parent 1335
5530161fcd47
child 1353
48374309f3d1
equal deleted inserted replaced
1338:1152c9fefa3e 1339:1f342d5abc85
88 void openDocumentForEditing(LDDocument* document); 88 void openDocumentForEditing(LDDocument* document);
89 PrimitiveManager* primitives(); 89 PrimitiveManager* primitives();
90 Canvas* renderer(); 90 Canvas* renderer();
91 void refresh(); 91 void refresh();
92 void replaceSelection(const QItemSelection& selection); 92 void replaceSelection(const QItemSelection& selection);
93 bool ringToolHiRes() const; 93 int ringToolDivisions() const;
94 int ringToolSegments() const; 94 int ringToolSegments() const;
95 bool save (LDDocument* doc, bool saveAs); 95 bool save (LDDocument* doc, bool saveAs);
96 void saveShortcuts(); 96 void saveShortcuts();
97 void select(const QModelIndex& objectIndex); 97 void select(const QModelIndex& objectIndex);
98 QModelIndexList selectedIndexes() const; 98 QModelIndexList selectedIndexes() const;
123 public slots: 123 public slots:
124 void actionTriggered(); 124 void actionTriggered();
125 void circleToolSegmentsChanged(); 125 void circleToolSegmentsChanged();
126 void closeTab (int tabindex); 126 void closeTab (int tabindex);
127 void historyTraversed(); 127 void historyTraversed();
128 void ringToolHiResClicked (bool clicked); 128 void ringToolDivisionsChanged();
129 void tabSelected(); 129 void tabSelected();
130 void documentClosed(LDDocument* document); 130 void documentClosed(LDDocument* document);
131 void updateTitle(); 131 void updateTitle();
132 132
133 protected: 133 protected:
152 QMap<QAction*, ToolInfo> m_toolmap; 152 QMap<QAction*, ToolInfo> m_toolmap;
153 class ExtProgramToolset* m_externalPrograms; 153 class ExtProgramToolset* m_externalPrograms;
154 DocumentManager* m_documents; 154 DocumentManager* m_documents;
155 LDDocument* m_currentDocument; 155 LDDocument* m_currentDocument;
156 QMap<QAction*, QKeySequence> m_defaultShortcuts; 156 QMap<QAction*, QKeySequence> m_defaultShortcuts;
157 int previousDivisions = MediumResolution;
157 158
158 private slots: 159 private slots:
159 void finishInitialization(); 160 void finishInitialization();
160 void recentFileClicked(); 161 void recentFileClicked();
161 void quickColorClicked(); 162 void quickColorClicked();

mercurial