src/gui.cpp

changeset 411
fd90677cec8d
parent 410
a5aebcf4a1c8
child 412
064b0467c8de
--- a/src/gui.cpp	Thu Aug 01 02:49:42 2013 +0300
+++ b/src/gui.cpp	Thu Aug 01 03:26:47 2013 +0300
@@ -71,11 +71,15 @@
 // =============================================================================
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 // =============================================================================
-ForgeWindow::ForgeWindow() {
+ForgeWindow::ForgeWindow() :
+	m_renderer( new GLRenderer ),
+	ui( new Ui_LDForgeUI ),
+	m_primLoaderBar( new QProgressBar ),
+	m_primLoaderWidget( new QWidget ),
+	m_msglog( new MessageManager ),
+	m_quickColors( quickColorsFromConfig() )
+{
 	g_win = this;
-	m_renderer = new GLRenderer;
-	
-	ui = new Ui_LDForgeUI;
 	ui->setupUi (this);
 	
 	// Stuff the renderer into its frame
@@ -86,17 +90,13 @@
 	connect (ui->objectList, SIGNAL (itemDoubleClicked (QListWidgetItem*)), this, SLOT (slot_editObject (QListWidgetItem*)));
 	connect (ui->fileList, SIGNAL (currentItemChanged (QListWidgetItem*, QListWidgetItem*)), this, SLOT (changeCurrentFile()));
 	
-	// Init message log manager
-	m_msglog = new MessageManager;
+	// Init message log manager=
 	m_msglog->setRenderer (R());
-	m_renderer->setMessageLog (m_msglog);
-	m_quickColors = quickColorsFromConfig();
+	m_renderer->setMessageLog (m_msglog);=
 	slot_selectionChanged();
 	setStatusBar (new QStatusBar);
 	
 	// Init primitive loader task stuff
-	m_primLoaderBar = new QProgressBar;
-	m_primLoaderWidget = new QWidget;
 	QHBoxLayout* primLoaderLayout = new QHBoxLayout (m_primLoaderWidget);
 	primLoaderLayout->addWidget (new QLabel ("Loading primitives:"));
 	primLoaderLayout->addWidget (m_primLoaderBar);

mercurial