Removed the message log. I'll find a better way to convey messages at some point..

Tue, 07 May 2013 23:37:46 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Tue, 07 May 2013 23:37:46 +0300
changeset 176
84132e178d46
parent 175
b094d5e9d6e0
child 177
4cdd408f2863

Removed the message log. I'll find a better way to convey messages at some point..

gui.cpp file | annotate | diff | comparison | revisions
gui.h file | annotate | diff | comparison | revisions
--- a/gui.cpp	Tue May 07 19:48:51 2013 +0300
+++ b/gui.cpp	Tue May 07 23:37:46 2013 +0300
@@ -71,19 +71,10 @@
 	m_objList->setAlternatingRowColors (true);
 	connect (m_objList, SIGNAL (itemSelectionChanged ()), this, SLOT (slot_selectionChanged ()));
 	
-	m_msglog = new QTextEdit;
-	m_msglog->setReadOnly (true);
-	m_msglog->setMaximumHeight (96);
-	
-	m_hsplit = new QSplitter;
-	m_hsplit->addWidget (m_renderer);
-	m_hsplit->addWidget (m_objList);
-	
-	m_vsplit = new QSplitter (Qt::Vertical);
-	m_vsplit->addWidget (m_hsplit);
-	m_vsplit->addWidget (m_msglog);
-	
-	setCentralWidget (m_vsplit);
+	m_splitter = new QSplitter;
+	m_splitter->addWidget (m_renderer);
+	m_splitter->addWidget (m_objList);
+	setCentralWidget (m_splitter);
 	
 	m_colorMeta = parseQuickColorMeta ();
 	
@@ -1016,7 +1007,7 @@
 
 // =============================================================================
 void critical (str msg) {
-	QMessageBox::critical (g_win, "Critical Error", msg,
+	QMessageBox::critical (g_win, "Error", msg,
 		(QMessageBox::Close), QMessageBox::Close);
 }
 
--- a/gui.h	Tue May 07 19:48:51 2013 +0300
+++ b/gui.h	Tue May 07 23:37:46 2013 +0300
@@ -162,9 +162,8 @@
 private:
 	GLRenderer* m_renderer;
 	ObjectList* m_objList;
-	QTextEdit* m_msglog;
 	QMenu* m_recentFilesMenu;
-	QSplitter* m_hsplit, *m_vsplit;
+	QSplitter* m_splitter;
 	str m_msglogHTML;
 	QToolBar* m_colorToolBar;
 	std::vector<QToolBar*> m_toolBars;

mercurial