~m-robinson/maus/evtvwr

« back to all changes in this revision

Viewing changes to src/EventViewer/gui.4.cc

  • Committer: Matt Robinson
  • Date: 2011-08-31 10:32:47 UTC
  • Revision ID: robinson@hep8.shef.ac.uk-20110831103247-arjakw7i2e70qyws
Made a whole bunch of things wrong in order to pass the cpplint tests
Will now try to make code work despite this wrongness.

Show diffs side-by-side

added added

removed removed

Lines of Context:
192
192
  menu.insertItem("Window", &mnu_windows);
193
193
  // event for any item clicked in Window menu,
194
194
  //  saves setting up a different one for each item in the Window list
195
 
  connect(&mnu_windows, SIGNAL(activated(int)), this, SLOT(cb_window(int)));
 
195
  connect(&mnu_windows, SIGNAL(activated(int itm)), this, SLOT(cb_window(int itm)));
196
196
 
197
197
  // help menu
198
198
  menu.insertItem("Help", &mnu_help);
220
220
  // but it should be there...
221
221
  world.show();
222
222
  // we would like to know if a user right-clicks to select a track
223
 
  connect(&world, SIGNAL(tracksel(int)), this, SLOT(cb_tracksel(int)));
 
223
  connect(&world, SIGNAL(tracksel(int t)), this, SLOT(cb_tracksel(int t)));
224
224
  // and if the navigation mode changes
225
225
  connect(&world, SIGNAL(modechange(Action)), this, SLOT(cb_modechange(Action)));
226
226
 
302
302
  // track selection change in list
303
303
  connect(&lst_tracks, SIGNAL(selectionChanged()), this, SLOT(cb_tracksel()));
304
304
  // double-click on track
305
 
  connect(&lst_tracks, SIGNAL(doubleClicked(Q3ListViewItem*)),
306
 
          this, SLOT(cb_trackseek(Q3ListViewItem*)));
 
305
  connect(&lst_tracks, SIGNAL(doubleClicked(Q3ListViewItem* itm)),
 
306
          this, SLOT(cb_trackseek(Q3ListViewItem* itm)));
307
307
 
308
308
  // detector list
309
309
  // set up columns
320
320
    DetectorListViewItem* item = new DetectorListViewItem(&lst_detector,
321
321
                                                          world.get_shape(i).name, i);
322
322
    // notice when it changes
323
 
    connect(item, SIGNAL(checked(DetectorListViewItem*)), this,
324
 
            SLOT(cb_detector(DetectorListViewItem*)));
 
323
    connect(item, SIGNAL(checked(DetectorListViewItem* itm)), this,
 
324
            SLOT(cb_detector(DetectorListViewItem* itm)));
325
325
  }
326
326
 
327
327
  // updates back on
332
332
 
333
333
  // callback for 3d navigation mode
334
334
#ifdef QT3
335
 
  connect(&grp_3d, SIGNAL(clicked(int)), this, SLOT(cb_action(int)));
 
335
  connect(&grp_3d, SIGNAL(clicked(int itm)), this, SLOT(cb_action(int itm)));
336
336
#else
337
 
  connect(&grp_3d, SIGNAL(buttonClicked(int)), this, SLOT(cb_acion(int)));
 
337
  connect(&grp_3d, SIGNAL(buttonClicked(int itm)), this, SLOT(cb_action(int itm)));
338
338
#endif
339
339
 
340
340
  // we have not yet been give a file to load
1513
1513
  // create a pop-up menu at the click point
1514
1514
  Q3PopupMenu* mnu = new Q3PopupMenu(this);
1515
1515
  // assign an event handler to user clicking an item from the pop-up menu
1516
 
  connect(mnu, SIGNAL(activated(int)), this, SLOT(cb_trackmenu(int)));
 
1516
  connect(mnu, SIGNAL(activated(int itm)), this, SLOT(cb_trackmenu(int itm)));
1517
1517
  // fill the pop-up menu with the column names
1518
1518
  for (int i = 0; i < lst_tracks.columns(); i++) {
1519
1519
    mnu->insertItem(lst_tracks.columnText(i), i);