src/gui.h

changeset 522
afa691788bdb
parent 504
6a1fa662bfc1
child 534
3ed2ebcbc84f
equal deleted inserted replaced
521:b85554206155 522:afa691788bdb
103 void updateSelection(); 103 void updateSelection();
104 void updateGridToolBar(); 104 void updateGridToolBar();
105 void updateEditModeActions(); 105 void updateEditModeActions();
106 void updateFileList(); 106 void updateFileList();
107 void updateFileListItem (LDFile* f); 107 void updateFileListItem (LDFile* f);
108 bool isSelected (LDObject* obj);
109 short getSelectedColor(); 108 short getSelectedColor();
110 LDObject::Type uniformSelectedType(); 109 LDObject::Type uniformSelectedType();
111 void scrollToSelection(); 110 void scrollToSelection();
112 void spawnContextMenu (const QPoint pos); 111 void spawnContextMenu (const QPoint pos);
113 void deleteObjVector (QList< LDObject* > objs); 112 void deleteObjVector (QList< LDObject* > objs);
117 116
118 inline GLRenderer* R() 117 inline GLRenderer* R()
119 { return m_renderer; 118 { return m_renderer;
120 } 119 }
121 120
122 inline QList<LDObject*>& sel()
123 { return m_sel;
124 }
125
126 inline void setQuickColors (QList<LDQuickColor>& colors) 121 inline void setQuickColors (QList<LDQuickColor>& colors)
127 { m_quickColors = colors; 122 { m_quickColors = colors;
128 } 123 }
129 124
130 void setStatusBarText (str text); 125 void setStatusBarText (str text);
139 134
140 public slots: 135 public slots:
141 void primitiveLoaderStart (int max); 136 void primitiveLoaderStart (int max);
142 void primitiveLoaderUpdate (int prog); 137 void primitiveLoaderUpdate (int prog);
143 void primitiveLoaderEnd(); 138 void primitiveLoaderEnd();
144 void clearSelection();
145 void slot_action(); 139 void slot_action();
146 void changeCurrentFile(); 140 void changeCurrentFile();
147 141
148 protected: 142 protected:
149 void closeEvent (QCloseEvent* ev); 143 void closeEvent (QCloseEvent* ev);

mercurial