src/mainwindow.h

changeset 1017
fc1c13db9618
parent 1014
f0a8ecb6a357
child 1018
49358df9495b
--- a/src/mainwindow.h	Sat Feb 13 04:14:43 2016 +0200
+++ b/src/mainwindow.h	Sun Feb 14 03:19:28 2016 +0200
@@ -37,6 +37,7 @@
 class QProgressBar;
 struct Primitive;
 class Toolset;
+class Configuration;
 
 class ColorToolbarItem
 {
@@ -70,7 +71,7 @@
 	Q_OBJECT
 
 public:
-	explicit MainWindow (QWidget* parent = nullptr, Qt::WindowFlags flags = 0);
+	explicit MainWindow(Configuration& config, QWidget* parent = nullptr, Qt::WindowFlags flags = 0);
 	~MainWindow();
 
 	void addMessage (QString msg);
@@ -78,6 +79,7 @@
 	void buildObjectList();
 	void changeDocument (LDDocument* f);
 	void closeInitialDocument();
+	Configuration* config();
 	void createBlankDocument();
 	LDDocument* currentDocument();
 	void currentDocumentClosed();
@@ -133,6 +135,7 @@
 private:
 	struct ToolInfo { QMetaMethod method; Toolset* object; };
 
+	Configuration& m_config;
 	class GuiUtilities* m_guiUtilities;
 	GLRenderer* m_renderer;
 	LDObjectList m_sel;
@@ -167,9 +170,6 @@
 // Get an icon by name from the resources directory.
 QPixmap GetIcon (QString iconName);
 
-// Returns a list of quick colors based on the configuration entry.
-QList<ColorToolbarItem> LoadQuickColorList();
-
 // Asks the user a yes/no question with the given message and the given window title.
 // Returns true if the user answered yes, false if no.
 bool Confirm (const QString& title, const QString& message); // Generic confirm prompt

mercurial