gui.cpp

changeset 97
52bcca21579e
parent 96
2f175b3d8211
child 98
5dcc551f260a
--- a/gui.cpp	Wed Apr 10 19:26:14 2013 +0300
+++ b/gui.cpp	Thu Apr 11 01:35:30 2013 +0300
@@ -60,6 +60,10 @@
 EXTERN_ACTION (redo)
 EXTERN_ACTION (showHistory)
 
+#ifndef RELEASE
+EXTERN_ACTION (addTestQuad)
+#endif // RELEASE
+
 vector<actionmeta> g_ActionMeta;
 
 cfg (bool, lv_colorize, true);
@@ -74,7 +78,8 @@
 	qObjList = new QTreeWidget;
 	qObjList->setHeaderHidden (true);
 	qObjList->setMaximumWidth (256);
-	qObjList->setSelectionMode (QTreeWidget::MultiSelection);
+	qObjList->setSelectionMode (QTreeWidget::ExtendedSelection);
+	qObjList->setAlternatingRowColors (true);
 	connect (qObjList, SIGNAL (itemSelectionChanged ()), this, SLOT (slot_selectionChanged ()));
 	
 	qMessageLog = new QTextEdit;
@@ -178,10 +183,16 @@
 	ADD_MENU_ITEM (Edit, setContents)		// Set Contents
 	ADD_MENU_ITEM (Edit, makeBorders)		// Make Borders
 	
-	// Control menuBar
+	// Control menu
 	qControlMenu = menuBar ()->addMenu (tr ("&Control"));
 	ADD_MENU_ITEM (Control, showHistory)	// Show History
 	
+#ifndef RELEASE
+	// Debug menu
+	qDebugMenu = menuBar ()->addMenu (tr ("&Debug"));
+	ADD_MENU_ITEM (Debug, addTestQuad)		// Add Test Quad
+#endif // RELEASE
+	
 	// Help menu
 	qHelpMenu = menuBar ()->addMenu (tr ("&Help"));
 	ADD_MENU_ITEM (Help, help)				// Help

mercurial