Changeset 602


Ignore:
Timestamp:
Nov 15, 2007, 11:55:45 AM (17 years ago)
Author:
garnier
Message:

r643@mac-90108: laurentgarnier | 2007-11-12 19:00:52 +0100
modif pour qt3

Location:
trunk/geant4
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/interfaces/basic/include/G4UIQt.hh

    r595 r602  
    2525//
    2626//
    27 // $Id: G4UIQt.hh,v 1.2 2007/11/08 17:00:09 lgarnier Exp $
     27// $Id: G4UIQt.hh,v 1.3 2007/11/09 15:03:21 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
  • trunk/geant4/interfaces/basic/src/G4UIQt.cc

    r595 r602  
    2525//
    2626//
    27 // $Id: G4UIQt.cc,v 1.3 2007/11/08 17:00:09 lgarnier Exp $
     27// $Id: G4UIQt.cc,v 1.4 2007/11/09 15:03:21 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    5050#include <qlineedit.h>
    5151#include <qwidget.h>
     52#if QT_VERSION >= 0x040000
    5253#include <qmenu.h>
     54#else
     55#include <qpopupmenu.h>
     56#endif
    5357#include <qmenubar.h>
    54 #include <qboxlayout.h>
     58#include <qlayout.h>
    5559#include <qpushbutton.h>
    5660#include <qlabel.h>
     
    717721        }
    718722      } else if (e->key() == (Qt::Key_Tab)) {
     723#if QT_VERSION < 0x040000
     724        G4String ss = Complete(fCommandArea->text().ascii());
     725#else
    719726        G4String ss = Complete(fCommandArea->text().toStdString().c_str());
     727#endif
    720728        fCommandArea->setText((char*)(ss.data()));
    721729
     
    762770)
    763771{
     772#if QT_VERSION < 0x040000
     773  G4String command (fCommandArea->text().ascii());
     774#else
    764775  G4String command (fCommandArea->text().toStdString().c_str());
     776#endif
    765777  if (fCommandArea->text().trimmed() != "") {
    766778    fCommandHistoryArea->addItem(fCommandArea->text());
     
    793805)
    794806{
     807#if QT_VERSION < 0x040000
     808  G4String ss = G4String(aCommand.ascii());
     809#else
    795810  G4String ss = G4String(aCommand.toStdString().c_str());
     811#endif
    796812  ApplyShellCommand(ss,exitSession,exitPause);
    797813  if(exitSession==true)
     
    824840  if(UI==NULL) return;
    825841  G4UIcommandTree * treeTop = UI->GetTree();
     842#if QT_VERSION < 0x040000
     843  G4UIcommand* command = treeTop->FindPath(item->text (1).ascii());
     844#else
    826845  G4UIcommand* command = treeTop->FindPath(item->text (1).toStdString().c_str());
     846#endif
    827847  if (command) {
    828848    fHelpArea->setText(GetCommandList(command));
     
    830850    // this is not a command, this is a sub directory
    831851    // We display the Title
     852#if QT_VERSION < 0x040000
     853    fHelpArea->setText(item->text (1).ascii());
     854#else
    832855    fHelpArea->setText(item->text (1).toStdString().c_str());
     856#endif
    833857  }
    834858}
  • trunk/geant4/interfaces/common/src/G4Qt.cc

    r595 r602  
    2525//
    2626//
    27 // $Id: G4Qt.cc,v 1.3 2007/11/08 17:00:09 lgarnier Exp $
     27// $Id: G4Qt.cc,v 1.4 2007/11/09 15:03:21 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
  • trunk/geant4/specific-geant4-dev.sh

    r600 r602  
    2727  export G4RADIOACTIVEDATA=$G4DATA/RadiativeDecay
    2828  export G4LEDATA=$G4DATA/G4EMLOW3.0
    29 #  export QTHOME=/usr/local/Qt/4.3.0
     29  export QTHOME=/usr/local/Qt/4.3.0
    3030  #//////////////////////////////////////////////////////////
    3131  # GUI, Visualization :
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLQtExportDialog_moc_030305.cc

    r598 r602  
    1 #if QT_VERSION < 0x040202
    2 
    31/****************************************************************************
    42** G4OpenGLQtExportDialog meta object code from reading C++ file 'G4OpenGLQtExportDialog.hh'
     
    1412#include <qmetaobject.h>
    1513#include <qapplication.h>
     14
     15#if QT_VERSION < 0x040202
    1616
    1717#include <private/qucomextra_p.h>
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc

    r601 r602  
    6060#include <qaction.h>
    6161#include <qwidgetlist.h>
    62 #include <qmenudata.h>
    6362#include <qpopupmenu.h>
    6463#include <qimage.h>
     
    954953#else
    955954  nomFich += "."+selectedFilter->toLower();
    956   printf("G4OpenGLQtViewer::name %s\n",nomFich.toAscii());
     955  printf("G4OpenGLQtViewer::name %s\n",nomFich.toStdString().c_str());
    957956#endif
    958957  G4OpenGLQtExportDialog* exportDialog= new G4OpenGLQtExportDialog(GLWindow,nomFich,fWindow->height(),fWindow->width());
     
    11711170  fp = fopen (aFilename.ascii(), "w");
    11721171#else
    1173   fp = fopen (aFilename.toAscii(), "w");
     1172  fp = fopen (aFilename.toStdString().c_str(), "w");
    11741173#endif
    11751174  if (fp == NULL) {
     
    11811180  fprintf (fp, "%%%%Title: %s\n", aFilename.ascii());
    11821181#else
    1183   fprintf (fp, "%%%%Title: %s\n", aFilename.toAscii());
     1182  fprintf (fp, "%%%%Title: %s\n", aFilename.toStdString().c_str());
    11841183#endif
    11851184  fprintf (fp, "%%%%Creator: OpenGL pixmap render output\n");
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer_moc_030305.cc

    r598 r602  
    1 #if QT_VERSION < 0x040202
    2 
    31/****************************************************************************
    42** G4OpenGLQtViewer meta object code from reading C++ file 'G4OpenGLQtViewer.hh'
     
    1412#include <qmetaobject.h>
    1513#include <qapplication.h>
     14
     15#if QT_VERSION < 0x040202
    1616
    1717#include <private/qucomextra_p.h>
Note: See TracChangeset for help on using the changeset viewer.