Changeset 516


Ignore:
Timestamp:
Jun 20, 2007, 12:24:47 PM (17 years ago)
Author:
garnier
Message:

r635@mac-90108: laurentgarnier | 2007-06-19 15:51:12 +0200
en test

Location:
trunk/geant4/interfaces/basic
Files:
3 edited

Legend:

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

    r514 r516  
    9595  G4int ReceiveG4cout(G4String);
    9696  G4int ReceiveG4cerr(G4String);
    97 //   G4String GetCommand(Widget);
     97  //   G4String GetCommand(Widget);
     98
     99  // Some useful getters
     100  inline const QTextEdit * GetCommandHistoryArea() const
     101  { return fCommandHistoryArea; };
     102
    98103private:
    99104  void SecondaryLoop(G4String); // a VIRER
  • trunk/geant4/interfaces/basic/src/G4UIQt.cc

    r515 r516  
    4646#include "G4UIcommandStatus.hh"
    4747
     48#include "G4UIQtLineEdit.hh"
     49
    4850#include "G4Qt.hh"
    4951
     
    111113  fCommandLabel = new QLabel();
    112114
    113   fCommandArea = new QLineEdit();
     115  fCommandArea = new G4UIQtLineEdit(this); // must surcharge the keyPressEvent function
    114116  fCommandArea->activateWindow();
    115117  connect(fCommandArea, SIGNAL(returnPressed()), SLOT(commandEnteredCallback()));
     
    119121  fCommandHistoryArea->setReadOnly(true);
    120122
    121  
     123  //  virtual void keyPressEvent(QKeyEvent *e) {
     124  //    if (e->key == Qt::Key_F9) {
     125  // Do something
     126  //}
     127  //}
    122128
    123129  // Set layouts
  • trunk/geant4/interfaces/basic/src/G4UIQt_moc.cc

    r514 r516  
    22** Meta object code from reading C++ file 'G4UIQt.hh'
    33**
    4 ** Created: Fri Jun 15 15:07:55 2007
     4** Created: Tue Jun 19 15:07:52 2007
    55**      by: The Qt Meta Object Compiler version 59 (Qt 4.2.2)
    66**
Note: See TracChangeset for help on using the changeset viewer.