Ignore:
Timestamp:
Jun 25, 2007, 5:30:07 PM (17 years ago)
Author:
garnier
Message:

r656@mac-90108: laurentgarnier | 2007-06-22 16:22:34 +0200
corrections de mises en forme

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/interfaces/basic/src/G4UIQt.cc

    r526 r527  
    8585*/
    8686G4UIQt::G4UIQt (
    87                 int argc,
    88                 char** argv
    89                 )
     87 int argc
     88,char** argv
     89)
    9090  :fHelpDialog(NULL)
    9191{
     
    220220)
    221221{
    222   if (aPrompt == NULL) return;
     222  if (!aPrompt) return;
    223223
    224224  fCommandLabel->setText((char*)aPrompt.data());
     
    248248)
    249249{
    250   if (aState == NULL) return;
     250  if (!aState) return;
    251251
    252252  printf("G4UIQt::PauseSessionStart\n");
     
    271271)
    272272{
    273   if (aPrompt == NULL) return;
     273  if (!aPrompt) return;
    274274
    275275  printf("G4UIQt::SecondaryLoop\n");
     
    296296)
    297297{
    298   if (aString == NULL) return 0;
     298  if (!aString) return 0;
    299299
    300300  fTextArea->append(QString((char*)aString.data()).trimmed());
     
    313313)
    314314{
    315   if (aString == NULL) return 0;
     315  if (!aString) return 0;
    316316
    317317  QColor previousColor = fTextArea->textColor();
     
    546546QTreeWidgetItem* G4UIQt::FindTreeItem(
    547547 QTreeWidgetItem *aParent
    548 ,QString aCommand
     548,const QString& aCommand
    549549)
    550550{
    551551  if (aParent == NULL) return NULL;
    552   if (aCommand == NULL) return NULL;
    553552
    554553  if (aParent->text(0) == aCommand)
     
    564563
    565564
    566 /**
    567    Build the command list parameters in a QString<br>
     565/**   Build the command list parameters in a QString<br>
    568566   Reimplement partialy the G4UIparameter.cc
    569567   @param aCommand : command to list parameters
     
    573571*/
    574572QString G4UIQt::GetCommandList (
    575  G4UIcommand *aCommand
     573 const G4UIcommand *aCommand
    576574)
    577575{
     
    638636
    639637
    640 /**
    641   Implement G4VBasicShell vurtual function
     638/**  Implement G4VBasicShell vurtual function
    642639 */
    643640G4bool G4UIQt::GetHelpChoice(
     
    650647
    651648
    652 /**
    653    Implement G4VBasicShell vurtual function
     649/**   Implement G4VBasicShell vurtual function
    654650*/
    655651void G4UIQt::ExitHelp(
     
    660656
    661657
    662 /**
    663    Event filter method. Every event from QtApplication goes here.<br/>
     658/**   Event filter method. Every event from QtApplication goes here.<br/>
    664659   We apply a filter only for the Up and Down Arrow press when the QLineEdit<br/>
    665660   is active. If this filter match, Up arrow we give the previous command<br/>
     
    727722/***************************************************************************/
    728723
    729 /**
    730    Called when user give "help" command.
     724/**   Called when user give "help" command.
    731725*/
    732726void G4UIQt::ShowHelpCallback (
     
    737731
    738732
    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
    741734*/
    742735void G4UIQt::ClearButtonCallback (
     
    747740
    748741
    749 /**
    750    Callback call when "click on a menu entry.<br>
     742/**   Callback call when "click on a menu entry.<br>
    751743   Send the associated command to geant4
    752744*/
     
    773765
    774766
    775 /**
    776    Callback call when "enter" clicked on the command zone.<br>
     767/**   Callback call when "enter" clicked on the command zone.<br>
    777768   Send the command to geant4
    778769   @param aCommand
     
    782773)
    783774{
    784   if (aCommand == NULL) return;
    785 
    786775  G4String ss = G4String(aCommand.toStdString().c_str());
    787   printf ("debug : execute:\n-%s- %d %d \n",ss.data(),exitSession,exitPause);
    788776  ApplyShellCommand(ss,exitSession,exitPause);
    789777  if(exitSession==true)
     
    793781
    794782
    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
    797784*/
    798785void G4UIQt::HelpTreeCallback (
     
    827814
    828815
    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>
    831817   Give it to the command area.
    832818*/
Note: See TracChangeset for help on using the changeset viewer.