Changeset 527 for trunk/geant4/interfaces/basic
- Timestamp:
- Jun 25, 2007, 5:30:07 PM (17 years ago)
- Location:
- trunk/geant4/interfaces/basic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/interfaces/basic/include/G4UIQt.hh
r526 r527 102 102 void TerminalHelp(G4String); 103 103 void CreateChildTree(QTreeWidgetItem*,G4UIcommandTree*); 104 QTreeWidgetItem* FindTreeItem(QTreeWidgetItem *, QString);104 QTreeWidgetItem* FindTreeItem(QTreeWidgetItem *,const QString&); 105 105 106 QString GetCommandList( G4UIcommand*);106 QString GetCommandList(const G4UIcommand*); 107 107 108 108 G4bool GetHelpChoice(G4int&) ;// have to be implemeted because we heritate from G4VBasicShell -
trunk/geant4/interfaces/basic/src/G4UIQt.cc
r526 r527 85 85 */ 86 86 G4UIQt::G4UIQt ( 87 int argc,88 89 87 int argc 88 ,char** argv 89 ) 90 90 :fHelpDialog(NULL) 91 91 { … … 220 220 ) 221 221 { 222 if ( aPrompt == NULL) return;222 if (!aPrompt) return; 223 223 224 224 fCommandLabel->setText((char*)aPrompt.data()); … … 248 248 ) 249 249 { 250 if ( aState == NULL) return;250 if (!aState) return; 251 251 252 252 printf("G4UIQt::PauseSessionStart\n"); … … 271 271 ) 272 272 { 273 if ( aPrompt == NULL) return;273 if (!aPrompt) return; 274 274 275 275 printf("G4UIQt::SecondaryLoop\n"); … … 296 296 ) 297 297 { 298 if ( aString == NULL) return 0;298 if (!aString) return 0; 299 299 300 300 fTextArea->append(QString((char*)aString.data()).trimmed()); … … 313 313 ) 314 314 { 315 if ( aString == NULL) return 0;315 if (!aString) return 0; 316 316 317 317 QColor previousColor = fTextArea->textColor(); … … 546 546 QTreeWidgetItem* G4UIQt::FindTreeItem( 547 547 QTreeWidgetItem *aParent 548 , QStringaCommand548 ,const QString& aCommand 549 549 ) 550 550 { 551 551 if (aParent == NULL) return NULL; 552 if (aCommand == NULL) return NULL;553 552 554 553 if (aParent->text(0) == aCommand) … … 564 563 565 564 566 /** 567 Build the command list parameters in a QString<br> 565 /** Build the command list parameters in a QString<br> 568 566 Reimplement partialy the G4UIparameter.cc 569 567 @param aCommand : command to list parameters … … 573 571 */ 574 572 QString G4UIQt::GetCommandList ( 575 G4UIcommand *aCommand573 const G4UIcommand *aCommand 576 574 ) 577 575 { … … 638 636 639 637 640 /** 641 Implement G4VBasicShell vurtual function 638 /** Implement G4VBasicShell vurtual function 642 639 */ 643 640 G4bool G4UIQt::GetHelpChoice( … … 650 647 651 648 652 /** 653 Implement G4VBasicShell vurtual function 649 /** Implement G4VBasicShell vurtual function 654 650 */ 655 651 void G4UIQt::ExitHelp( … … 660 656 661 657 662 /** 663 Event filter method. Every event from QtApplication goes here.<br/> 658 /** Event filter method. Every event from QtApplication goes here.<br/> 664 659 We apply a filter only for the Up and Down Arrow press when the QLineEdit<br/> 665 660 is active. If this filter match, Up arrow we give the previous command<br/> … … 727 722 /***************************************************************************/ 728 723 729 /** 730 Called when user give "help" command. 724 /** Called when user give "help" command. 731 725 */ 732 726 void G4UIQt::ShowHelpCallback ( … … 737 731 738 732 739 /** 740 Called when user click on clear button. Clear the text Output area 733 /** Called when user click on clear button. Clear the text Output area 741 734 */ 742 735 void G4UIQt::ClearButtonCallback ( … … 747 740 748 741 749 /** 750 Callback call when "click on a menu entry.<br> 742 /** Callback call when "click on a menu entry.<br> 751 743 Send the associated command to geant4 752 744 */ … … 773 765 774 766 775 /** 776 Callback call when "enter" clicked on the command zone.<br> 767 /** Callback call when "enter" clicked on the command zone.<br> 777 768 Send the command to geant4 778 769 @param aCommand … … 782 773 ) 783 774 { 784 if (aCommand == NULL) return;785 786 775 G4String ss = G4String(aCommand.toStdString().c_str()); 787 printf ("debug : execute:\n-%s- %d %d \n",ss.data(),exitSession,exitPause);788 776 ApplyShellCommand(ss,exitSession,exitPause); 789 777 if(exitSession==true) … … 793 781 794 782 795 /** 796 This callback is activated when user selected a item in the help tree 783 /** This callback is activated when user selected a item in the help tree 797 784 */ 798 785 void G4UIQt::HelpTreeCallback ( … … 827 814 828 815 829 /** 830 Callback called when user select an old command in the command history<br> 816 /** Callback called when user select an old command in the command history<br> 831 817 Give it to the command area. 832 818 */
Note: See TracChangeset
for help on using the changeset viewer.