- Timestamp:
- 11/13/08 13:20:56 (8 weeks ago)
- Location:
- mchelper/trunk
- Files:
-
- 4 modified
-
include/MainWindow.h (modified) (1 diff)
-
source/Inspector.cpp (modified) (1 diff)
-
source/MainWindow.cpp (modified) (1 diff)
-
source/OscXmlServer.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mchelper/trunk/include/MainWindow.h
r1000 r1001 104 104 void onOscTutorial(); 105 105 106 signals: 107 void boardInfoUpdate(Board* board); 108 106 109 #ifdef MCHELPER_TEST_SUITE 107 110 friend class TestXmlServer; 108 111 #endif 109 110 112 }; 111 113 -
mchelper/trunk/source/Inspector.cpp
r977 r1001 150 150 { 151 151 board->sendMessage( msgs ); 152 mainWindow->updateBoardInfo(board); 152 153 mainWindow->message(msgs, MsgType::Command, board->location()); 153 154 } -
mchelper/trunk/source/MainWindow.cpp
r1000 r1001 332 332 void MainWindow::updateBoardInfo(Board *board) 333 333 { 334 //oscXmlServer->sendBoardListUpdate(board);334 emit boardInfoUpdate(board); 335 335 inspector->setData(board); 336 336 } -
mchelper/trunk/source/OscXmlServer.cpp
r977 r1001 105 105 qRegisterMetaType<MsgType::Type>("MsgType::Type"); 106 106 connect(this, SIGNAL(msg(QString, MsgType::Type, QString)), mainWindow, SLOT(message(QString, MsgType::Type, QString))); 107 connect(mainWindow, SIGNAL(boardInfoUpdate(Board*)), this, SLOT(boardInfoUpdate(Board*))); 107 108 handler = new XmlHandler( mainWindow, this ); 108 109 xml.setContentHandler( handler ); … … 200 201 void OscXmlClient::boardInfoUpdate( Board* board ) 201 202 { 202 QDomDocument doc; 203 if(!board) 204 return; 205 QDomDocument doc; 203 206 QDomElement boardUpdate = doc.createElement( "BOARD_INFO" ); 204 207 doc.appendChild( boardUpdate );
