[Igarden-commit] Garden/source/PlanTool LayerSelectForm.cpp, 1.9.2.5, 1.9.2.6 MaterialInfoPanel.cpp
Status: Beta
Brought to you by:
jlbedell
|
From: Jeffrey B. <jlb...@us...> - 2008-05-17 20:47:19
|
Update of /cvsroot/igarden/Garden/source/PlanTool In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv22138/source/PlanTool Modified Files: Tag: Release_branch_v1 LayerSelectForm.cpp MaterialInfoPanel.cpp MaterialInfoForm.cpp Log Message: Improve some comments Index: MaterialInfoForm.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/PlanTool/MaterialInfoForm.cpp,v retrieving revision 1.17.2.5 retrieving revision 1.17.2.6 diff -C2 -d -r1.17.2.5 -r1.17.2.6 *** MaterialInfoForm.cpp 19 Mar 2008 01:38:45 -0000 1.17.2.5 --- MaterialInfoForm.cpp 17 May 2008 20:47:15 -0000 1.17.2.6 *************** *** 325,343 **** } // --------------------------------------------------------------------------- ! // long MaterialInfoForm::DoTableChanged( long arg, void* parg ) ! // --------------------------------------------------------------------------- // ! long ! MaterialInfoForm::DoTableChanged( long arg, void* parg ) { PRECONDITION(_panels[_currentPanel] != NULL); return (_panels[_currentPanel])->DoTableChanged(arg, parg); } // --------------------------------------------------------------------------- ! // long MaterialInfoForm::DoKeyEvent( long arg, void* parg ) ! // --------------------------------------------------------------------------- // ! long ! MaterialInfoForm::DoKeyEvent( long arg, void* parg ) { long result; --- 325,350 ---- } // --------------------------------------------------------------------------- ! /// DoTableChanged // ! /// Handle the KTableChange message from RGTableView, indicating that the table data ! /// was changed. This is the primary way of handling user input from a table ! /// in an application-specific manner. ! // ! /// Return 0 if the data was handled, -1 otherwise. ! // ! long MaterialInfoForm::DoTableChanged( long arg, void* parg ) { PRECONDITION(_panels[_currentPanel] != NULL); return (_panels[_currentPanel])->DoTableChanged(arg, parg); } + + // --------------------------------------------------------------------------- ! /// DoKeyEvent // ! /// Handle the KXGKeyEvent event from YAAF, indicating that a key has been pressed. ! /// Return 0 if the event was handled, -1 otherwise. ! // ! long MaterialInfoForm::DoKeyEvent( long arg, void* parg ) { long result; Index: MaterialInfoPanel.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/PlanTool/MaterialInfoPanel.cpp,v retrieving revision 1.17.2.5 retrieving revision 1.17.2.6 diff -C2 -d -r1.17.2.5 -r1.17.2.6 *** MaterialInfoPanel.cpp 19 Mar 2008 01:38:45 -0000 1.17.2.5 --- MaterialInfoPanel.cpp 17 May 2008 20:47:15 -0000 1.17.2.6 *************** *** 88,91 **** --- 88,100 ---- } + // --------------------------------------------------------------------------- + /// DoTableChanged (default method, should be overridden) + // + /// Handle the KTableChange message from RGTableView, indicating that the table data + /// was changed. This is the primary way of handling user input from a table + /// in an application-specific manner. + // + /// Return 0 if the data was handled, -1 otherwise. + // long ElementInfoPanel::DoTableChanged(long /*arg*/, void* /*parg*/) { *************** *** 93,96 **** --- 102,111 ---- } + // --------------------------------------------------------------------------- + /// DoKeyEvent (default method, may be overridden) + // + /// Handle the KXGKeyEvent event from YAAF, indicating that a key has been pressed. + /// Return 0 if the event was handled, -1 otherwise. + // long ElementInfoPanel::DoKeyEvent(long /*arg*/, void* /*parg*/) { Index: LayerSelectForm.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/PlanTool/LayerSelectForm.cpp,v retrieving revision 1.9.2.5 retrieving revision 1.9.2.6 diff -C2 -d -r1.9.2.5 -r1.9.2.6 *** LayerSelectForm.cpp 8 Mar 2008 04:19:07 -0000 1.9.2.5 --- LayerSelectForm.cpp 17 May 2008 20:47:14 -0000 1.9.2.6 *************** *** 212,215 **** --- 212,218 ---- /// DoKeyEvent // + /// Handle the KXGKeyEvent event from YAAF, indicating that a key has been pressed. + /// Return 0 if the event was handled, -1 otherwise. + // long LayerSelectForm::DoKeyEvent( long arg, void* /*parg*/ ) { *************** *** 242,249 **** - // --------------------------------------------------------------------------- /// DoTableChanged // long LayerSelectForm::DoTableChanged( long /*arg*/, void* /*parg*/ ) { --- 245,257 ---- // --------------------------------------------------------------------------- /// DoTableChanged // + /// Handle the KTableChange message from RGTableView, indicating that the table data + /// was changed. This is the primary way of handling user input from a table + /// in an application-specific manner. + // + /// Return 0 if the data was handled, -1 otherwise. + // long LayerSelectForm::DoTableChanged( long /*arg*/, void* /*parg*/ ) { |