95 ForgeWindow(); |
95 ForgeWindow(); |
96 void buildObjList(); |
96 void buildObjList(); |
97 void updateTitle(); |
97 void updateTitle(); |
98 void fullRefresh(); |
98 void fullRefresh(); |
99 void refresh(); |
99 void refresh(); |
100 ulong getInsertionPoint(); |
100 int getInsertionPoint(); |
101 void updateToolBars(); |
101 void updateToolBars(); |
102 void updateRecentFilesMenu(); |
102 void updateRecentFilesMenu(); |
103 void updateSelection(); |
103 void updateSelection(); |
104 void updateGridToolBar(); |
104 void updateGridToolBar(); |
105 void updateEditModeActions(); |
105 void updateEditModeActions(); |
136 |
136 |
137 #define act(N) QAction* action##N(); |
137 #define act(N) QAction* action##N(); |
138 #include "actions.h" |
138 #include "actions.h" |
139 |
139 |
140 public slots: |
140 public slots: |
141 void primitiveLoaderStart (ulong max); |
141 void primitiveLoaderStart (int max); |
142 void primitiveLoaderUpdate (ulong prog); |
142 void primitiveLoaderUpdate (int prog); |
143 void primitiveLoaderEnd(); |
143 void primitiveLoaderEnd(); |
144 void clearSelection(); |
144 void clearSelection(); |
145 void slot_action(); |
145 void slot_action(); |
146 void changeCurrentFile(); |
146 void changeCurrentFile(); |
147 |
147 |
183 QPixmap getIcon (str iconName); // Get an icon from the resource dir |
183 QPixmap getIcon (str iconName); // Get an icon from the resource dir |
184 List<LDQuickColor> quickColorsFromConfig(); // Make a list of quick colors based on config |
184 List<LDQuickColor> quickColorsFromConfig(); // Make a list of quick colors based on config |
185 bool confirm (str title, str msg); // Generic confirm prompt |
185 bool confirm (str title, str msg); // Generic confirm prompt |
186 bool confirm (str msg); // Generic confirm prompt |
186 bool confirm (str msg); // Generic confirm prompt |
187 void critical (str msg); // Generic error prompt |
187 void critical (str msg); // Generic error prompt |
188 QIcon makeColorIcon (LDColor* colinfo, const ushort size); // Makes an icon for the given color |
188 QIcon makeColorIcon (LDColor* colinfo, const int size); // Makes an icon for the given color |
189 void makeColorSelector (QComboBox* box); // Fills the given combo-box with color information |
189 void makeColorSelector (QComboBox* box); // Fills the given combo-box with color information |
190 QImage imageFromScreencap (uchar* data, ushort w, ushort h); |
190 QImage imageFromScreencap (uchar* data, int w, int h); |
191 |
191 |
192 // ============================================================================= |
192 // ============================================================================= |
193 // ----------------------------------------------------------------------------- |
193 // ----------------------------------------------------------------------------- |
194 // Takes in pairs of radio buttons and respective values and returns the value of |
194 // Takes in pairs of radio buttons and respective values and returns the value of |
195 // the first found radio button that was checked. |
195 // the first found radio button that was checked. |