comparison gui/src/WorkspaceView.cpp @ 14599:97cb9286919c gui

Cleaned up code. * .hgsub: Removed IRC Widget. * gui.pro: Removed dependency on IRC Widget and removed files. * class FileEditorMdiSubWindow: Renamed to FileEditor. File editor windows are now independent windows, thus removed the extra close button. * MainWindow: Removed MDI Area and replaced it with the terminal instead. * BrowserWidget: Removed browser widget. * SettingsDialog: Rearranged settings for the editor, removed tab for shortcuts. * OctaveCallbackThread: Raised update intervals from 0,5s to 1s. * OctaveLink: Replaced signals names for triggering updates on the symbol table. * WorkspaceView: Adjusted connect statements to fit the new signal names.
author Jacob Dawid <jacob.dawid@googlemail.com>
date Mon, 07 May 2012 00:53:54 +0200
parents faece6b2ab90
children 664f54233c98
comparison
equal deleted inserted replaced
14588:fa52c6e84ae0 14599:97cb9286919c
57 57
58 m_variablesTreeWidget->expandAll (); 58 m_variablesTreeWidget->expandAll ();
59 m_variablesTreeWidget->setAlternatingRowColors (true); 59 m_variablesTreeWidget->setAlternatingRowColors (true);
60 m_variablesTreeWidget->setAnimated (true); 60 m_variablesTreeWidget->setAnimated (true);
61 61
62 connect (this, SIGNAL (visibilityChanged(bool)), this, SLOT(handleVisibilityChanged(bool))); 62 connect (this, SIGNAL (visibilityChanged (bool)),
63 connect (OctaveLink::instance(), SIGNAL (symbolTableChanged()), this, SLOT (fetchSymbolTable())); 63 this, SLOT(handleVisibilityChanged (bool)));
64 connect (OctaveLink::instance(), SIGNAL (updateSymbolTable ()),
65 this, SLOT (fetchSymbolTable ()));
64 } 66 }
65 67
66 void 68 void
67 WorkspaceView::updateTreeEntry (QTreeWidgetItem * treeItem, SymbolRecord symbolRecord) 69 WorkspaceView::updateTreeEntry (QTreeWidgetItem * treeItem, SymbolRecord symbolRecord)
68 { 70 {
69 treeItem->setData (0, 0, QString (symbolRecord.name ().c_str ())); 71 treeItem->setData (0, 0, QString (symbolRecord.name ().c_str ()));
70 treeItem->setData (1, 0, 72 treeItem->setData (1, 0,
71 QString (symbolRecord.varval ().type_name ().c_str ())); 73 QString (symbolRecord.varval ().type_name ().c_str ()));
72 treeItem->setData (2, 0, 74 treeItem->setData (2, 0,
73 OctaveLink::octaveValueAsQString (symbolRecord. 75 OctaveLink::octaveValueAsQString (symbolRecord.
74 varval ())); 76 varval ()));
75 } 77 }
76 78