ROOT  6.06/09
Reference Guide
Public Member Functions | Protected Slots | Protected Member Functions | Private Attributes | List of all members
ApplicationWindow Class Reference

Main Qt&Root Application Window:

Simple Example how to use a QMainWindow class embedding a ROOT Canvas attached as its Central Widget.

Simple example using QMainWindow together with an QRootCanvas

Services: Simple example

See also
QRootCanvas, QMainWindow, QPopupMenu, QAction, QString
Authors
Denis Bertini d.ber.nosp@m.tini.nosp@m.@gsi..nosp@m.de
Version
2.0

Definition at line 72 of file qtroot.h.

Public Member Functions

 ApplicationWindow ()
 
 ~ApplicationWindow ()
 

Protected Slots

void myclose ()
 
void newDoc ()
 New incoming functionality documentation. More...
 
void load ()
 IO Loading: More...
 
void load (const char *fileName)
 IO Loading function: More...
 
void save ()
 Saving results function: More...
 
void saveAs ()
 saving pictures, in different supported formats More...
 
void print ()
 print results in a specified format More...
 
void about ()
 online help about Qt&Root Main Application More...
 
void aboutQt ()
 online help about this Qt based Application More...
 
void execute ()
 Main slot action upon ROOT classes. More...
 
void clear_histo ()
 Main slot to reinitialize the objects. More...
 
void closeQtRoot ()
 

Protected Member Functions

void closeEvent (QCloseEvent *ce)
 

Private Attributes

QString filename
 
QPrinter * printer
 
TQRootCanvasaCanvas
 
TQRootCanvasaCanvas2
 
TH1Fhisto
 
TF1sqroot
 
TFormulaform1
 
TPadpad1
 
TPadpad2
 
QTabWidget * tab
 
QWidget * central
 

#include </mnt/vdb/lsf/workspace/root-makedoc-v606/rootspi/rdoc/src/v6-06-00-patches/gui/qtgsi/test/example1/qtroot.h>

+ Inheritance diagram for ApplicationWindow:
+ Collaboration diagram for ApplicationWindow:

Constructor & Destructor Documentation

ApplicationWindow::ApplicationWindow ( )

Definition at line 116 of file qtroot.cpp.

Referenced by newDoc().

ApplicationWindow::~ApplicationWindow ( )

Definition at line 284 of file qtroot.cpp.

Member Function Documentation

void ApplicationWindow::about ( )
protectedslot

online help about Qt&Root Main Application

Definition at line 394 of file qtroot.cpp.

Referenced by ApplicationWindow().

void ApplicationWindow::aboutQt ( )
protectedslot

online help about this Qt based Application

Definition at line 401 of file qtroot.cpp.

Referenced by ApplicationWindow().

void ApplicationWindow::clear_histo ( )
protectedslot

Main slot to reinitialize the objects.

  • histograms
  • ntuples

Definition at line 292 of file qtroot.cpp.

Referenced by ApplicationWindow().

void ApplicationWindow::closeEvent ( QCloseEvent *  ce)
protected

Definition at line 359 of file qtroot.cpp.

void ApplicationWindow::closeQtRoot ( )
inlineprotectedslot

Definition at line 148 of file qtroot.h.

void ApplicationWindow::execute ( )
protectedslot

Main slot action upon ROOT classes.

  • histograms
  • ntuples

Definition at line 303 of file qtroot.cpp.

Referenced by ApplicationWindow().

void ApplicationWindow::load ( )
protectedslot

IO Loading:

  • ascii data files (Qt or ROOT streamers)
  • Root binary files(ROOT streamer) @ etc...

Definition at line 334 of file qtroot.cpp.

Referenced by ApplicationWindow().

void ApplicationWindow::load ( const char *  fileName)
protectedslot

IO Loading function:

  • ascii data files (Qt or ROOT streamers)
  • Root binary files(ROOT streamer) @ etc...

Definition at line 343 of file qtroot.cpp.

void ApplicationWindow::myclose ( )
inlineprotectedslot

Definition at line 83 of file qtroot.h.

void ApplicationWindow::newDoc ( )
protectedslot

New incoming functionality documentation.

Definition at line 328 of file qtroot.cpp.

Referenced by ApplicationWindow().

void ApplicationWindow::print ( )
protectedslot

print results in a specified format

Definition at line 355 of file qtroot.cpp.

Referenced by ApplicationWindow().

void ApplicationWindow::save ( )
protectedslot

Saving results function:

  • ascii data files
  • histograms, ntuples, Objects using
  • ROOT based IO (Root format)
  • Qt Based IO (Qt format)?

@ etc...

Definition at line 347 of file qtroot.cpp.

Referenced by ApplicationWindow(), and closeEvent().

void ApplicationWindow::saveAs ( )
protectedslot

saving pictures, in different supported formats

Definition at line 351 of file qtroot.cpp.

Referenced by ApplicationWindow().

Member Data Documentation

TQRootCanvas* ApplicationWindow::aCanvas
private

Definition at line 158 of file qtroot.h.

Referenced by ApplicationWindow(), execute(), and ~ApplicationWindow().

TQRootCanvas * ApplicationWindow::aCanvas2
private

Definition at line 158 of file qtroot.h.

Referenced by ApplicationWindow().

QWidget* ApplicationWindow::central
private

Definition at line 164 of file qtroot.h.

QString ApplicationWindow::filename
private

Definition at line 156 of file qtroot.h.

TFormula* ApplicationWindow::form1
private

Definition at line 161 of file qtroot.h.

Referenced by ApplicationWindow().

TH1F* ApplicationWindow::histo
private

Definition at line 159 of file qtroot.h.

Referenced by ApplicationWindow(), clear_histo(), execute(), and ~ApplicationWindow().

TPad* ApplicationWindow::pad1
private

Definition at line 162 of file qtroot.h.

Referenced by ApplicationWindow(), and execute().

TPad * ApplicationWindow::pad2
private

Definition at line 162 of file qtroot.h.

Referenced by ApplicationWindow().

QPrinter* ApplicationWindow::printer
private

Definition at line 157 of file qtroot.h.

Referenced by ApplicationWindow(), and ~ApplicationWindow().

TF1* ApplicationWindow::sqroot
private

Definition at line 160 of file qtroot.h.

Referenced by ApplicationWindow().

QTabWidget* ApplicationWindow::tab
private

Definition at line 163 of file qtroot.h.

Referenced by ApplicationWindow().


The documentation for this class was generated from the following files: