Logo ROOT   6.08/07
Reference Guide
List of all members | 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 about ()
 online help about Qt&Root Main Application More...
 
void aboutQt ()
 online help about this Qt based Application More...
 
void clear_histo ()
 Main slot to reinitialize the objects. More...
 
void closeQtRoot ()
 
void execute ()
 Main slot action upon ROOT classes. More...
 
void load ()
 IO Loading: More...
 
void load (const char *fileName)
 IO Loading function: More...
 
void myclose ()
 
void newDoc ()
 New incoming functionality documentation. More...
 
void print ()
 print results in a specified format More...
 
void save ()
 Saving results function: More...
 
void saveAs ()
 saving pictures, in different supported formats More...
 

Protected Member Functions

void closeEvent (QCloseEvent *ce)
 

Private Attributes

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

#include </mnt/build/workspace/root-makedoc-v608/rootspi/rdoc/src/v6-08-00-patches/gui/qtgsi/test/example1/qtroot.h>

Inheritance diagram for ApplicationWindow:
[legend]

Constructor & Destructor Documentation

◆ ApplicationWindow()

ApplicationWindow::ApplicationWindow ( )

Definition at line 116 of file qtroot.cpp.

◆ ~ApplicationWindow()

ApplicationWindow::~ApplicationWindow ( )

Definition at line 284 of file qtroot.cpp.

Member Function Documentation

◆ about

void ApplicationWindow::about ( )
protectedslot

online help about Qt&Root Main Application

Definition at line 394 of file qtroot.cpp.

◆ aboutQt

void ApplicationWindow::aboutQt ( )
protectedslot

online help about this Qt based Application

Definition at line 401 of file qtroot.cpp.

◆ clear_histo

void ApplicationWindow::clear_histo ( )
protectedslot

Main slot to reinitialize the objects.

  • histograms
  • ntuples

Definition at line 292 of file qtroot.cpp.

◆ closeEvent()

void ApplicationWindow::closeEvent ( QCloseEvent *  ce)
protected

Definition at line 359 of file qtroot.cpp.

◆ closeQtRoot

void ApplicationWindow::closeQtRoot ( )
inlineprotectedslot

Definition at line 148 of file qtroot.h.

◆ execute

void ApplicationWindow::execute ( )
protectedslot

Main slot action upon ROOT classes.

  • histograms
  • ntuples

Definition at line 303 of file qtroot.cpp.

◆ load [1/2]

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.

◆ load [2/2]

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.

◆ myclose

void ApplicationWindow::myclose ( )
inlineprotectedslot

Definition at line 83 of file qtroot.h.

◆ newDoc

void ApplicationWindow::newDoc ( )
protectedslot

New incoming functionality documentation.

Definition at line 328 of file qtroot.cpp.

◆ print

void ApplicationWindow::print ( )
protectedslot

print results in a specified format

Definition at line 355 of file qtroot.cpp.

◆ save

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.

◆ saveAs

void ApplicationWindow::saveAs ( )
protectedslot

saving pictures, in different supported formats

Definition at line 351 of file qtroot.cpp.

Member Data Documentation

◆ aCanvas

TQRootCanvas* ApplicationWindow::aCanvas
private

Definition at line 158 of file qtroot.h.

◆ aCanvas2

TQRootCanvas * ApplicationWindow::aCanvas2
private

Definition at line 158 of file qtroot.h.

◆ central

QWidget* ApplicationWindow::central
private

Definition at line 164 of file qtroot.h.

◆ filename

QString ApplicationWindow::filename
private

Definition at line 156 of file qtroot.h.

◆ form1

TFormula* ApplicationWindow::form1
private

Definition at line 161 of file qtroot.h.

◆ histo

TH1F* ApplicationWindow::histo
private

Definition at line 159 of file qtroot.h.

◆ pad1

TPad* ApplicationWindow::pad1
private

Definition at line 162 of file qtroot.h.

◆ pad2

TPad * ApplicationWindow::pad2
private

Definition at line 162 of file qtroot.h.

◆ printer

QPrinter* ApplicationWindow::printer
private

Definition at line 157 of file qtroot.h.

◆ sqroot

TF1* ApplicationWindow::sqroot
private

Definition at line 160 of file qtroot.h.

◆ tab

QTabWidget* ApplicationWindow::tab
private

Definition at line 163 of file qtroot.h.


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