Changeset 575 for trunk/geant4/interfaces/basic
- Timestamp:
- Sep 17, 2007, 12:10:51 PM (17 years ago)
- Location:
- trunk/geant4/interfaces/basic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/interfaces/basic/include/G4UIQt.hh
r528 r575 132 132 void CommandEnteredCallback(); 133 133 void ButtonCallback(const QString&); 134 void HelpTreeCallback(); 134 void HelpTreeClicCallback(); 135 void HelpTreeDoubleClicCallback(); 135 136 void ShowHelpCallback(); 136 137 void CommandHistoryCallback(); -
trunk/geant4/interfaces/basic/src/G4UIQt.cc
r571 r575 296 296 if (!aString) return 0; 297 297 printf(" **************** G4 Cout : %s \n",(char*)aString.data()); 298 //fTextArea->append(QString((char*)aString.data()).trimmed());299 //fTextArea->verticalScrollBar()->setSliderPosition(fTextArea->verticalScrollBar()->maximum());298 fTextArea->append(QString((char*)aString.data()).trimmed()); 299 fTextArea->verticalScrollBar()->setSliderPosition(fTextArea->verticalScrollBar()->maximum()); 300 300 return 0; 301 301 } … … 422 422 fHelpTreeWidget->insertTopLevelItems(0, items); 423 423 424 connect(fHelpTreeWidget, SIGNAL(itemSelectionChanged ()),this, SLOT(HelpTreeCallback())); 424 connect(fHelpTreeWidget, SIGNAL(itemSelectionChanged ()),this, SLOT(HelpTreeClicCallback())); 425 connect(fHelpTreeWidget, SIGNAL(itemDoubleClicked ()),this, SLOT(HelpTreeDoubleClicCallback())); 425 426 426 427 // Set layouts … … 480 481 481 482 // Call the update of the right textArea 482 HelpTreeC allback();483 HelpTreeClicCallback(); 483 484 } 484 485 } … … 785 786 /** This callback is activated when user selected a item in the help tree 786 787 */ 787 void G4UIQt::HelpTreeC allback (788 void G4UIQt::HelpTreeClicCallback ( 788 789 ) 789 790 { … … 815 816 } 816 817 818 /** This callback is activated when user double clic on a item in the help tree 819 */ 820 void G4UIQt::HelpTreeDoubleClicCallback ( 821 ) 822 { 823 // update the helpArea 824 HelpTreeClicCallback(); 825 826 QTreeWidgetItem* item = NULL; 827 if (!fHelpTreeWidget) 828 return ; 829 830 if (!fHelpArea) 831 return; 832 833 QList<QTreeWidgetItem *> list =fHelpTreeWidget->selectedItems(); 834 if (list.isEmpty()) 835 return; 836 item = list.first(); 837 if (!item) 838 return; 839 840 fCommandArea->setText(item->text (1)); 841 } 842 817 843 818 844 /** Callback called when user select an old command in the command history<br>
Note: See TracChangeset
for help on using the changeset viewer.