Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

TxqFrame Class Reference

This class creates the base QFrame for scientific plotting. More...

#include <TxqFrame.h>

Inheritance diagram for TxqFrame::

QFrame Txq2dFrame Txq2dPrintFrame Txq3dFrame TxqImageFrame TxqMasterIoFrame TxqPrintPixmapFrame TxqWsFrame Txq2dPlotFrame TxqConfigFrame TxqNewTrolFrame TxqVcrFrame TxqConfigWsFrame TxqNldTrol TxqMovieFrame TxqNldWsTrol TxqAccelTrol TxqAccelWsTrol TxqSosWsTrol List of all members.

Public Slots

virtual void polish ()
 polish is used in order to allow overloading of widget adds to the file menu bar and to a layout. More...

virtual bool close (bool forceKill=true)
 slot used to close and quit the window. More...


Signals

void aboutToClose (int index)
 public signal emitted with the index number whenver the objec is about to close. More...


Public Methods

 TxqFrame (QWidget *parent=0, const char *nm=0, WFlags f=WType_TopLevel)
 The TxqFrame constructor takes a QFrame w a name nm and a window flag f and uses those to build the QFrame base class. More...

virtual ~TxqFrame ()
 The TxqFrame destructor. More...

virtual void addToMenuBar (const QString &text, QPopupMenu *popup)
 Add a popup to the menu bar. More...

virtual void addWidget (QWidget *w)
 Adds vertically the given widget to the area below the MenuBar. More...

virtual void addWidget (QWidget *w, int row, int col)
 Adds the given widget to the area below the MenuBar, at the given row and column number. More...

virtual void addWidget (QWidget *w, int fromRow, int toRow, int fromCol, int toCol)
 Adds the given multi-cell widget to the area below the MenuBar, from the given row and column number, to the supplied row and column number. More...

virtual void addHWidget (QWidget *w)
 Adds horizontally the given widget to the area below the MenuBar. More...

virtual void addWidgets ()
 Adds all the widgets to the layout This method is to be used in polish to add any created widgets to the layout manager. More...

virtual void show ()
 Resize the widget, activate the layout, and make visible. More...

bool activate ()
 Activate the widget geometry management for the topLayout. More...

void setName (QString name)
 Set the caption, icon text and name. More...

virtual void setName (const char *nm)
 Forward the overloaded method to base class. More...

virtual void setDestructClose (bool f)
 Set the desctructive close flag True if needing to close and destroy the QFrame class. More...

virtual void setIndex (const int index)
 Set an index number to be associated with this object. More...

virtual int getIndex ()
 Get the associated index number of this object. More...


Protected Slots

virtual void dumpData ()
 slot used to dump the contents of the frame to an ASCII file. More...

virtual void saveAs ()
 slot used to save the contents of the frame. More...

virtual void print ()
 slot used to invoke the print dialog. More...

virtual void printPreview ()
 slot used to invoke the print preview frame. More...

virtual bool exit ()
 slot used to query the user if exit is desired. More...

bool iconify (bool forceKill=FALSE)
 slot used to iconify the window. More...

virtual bool copy ()
 slot used to copy the selection. More...

virtual bool cut ()
 slot used to cut the selection. More...

virtual bool paste ()
 slot used to paste the selection. More...

virtual void motifStyle ()
 slot used to set to motif style windows. More...

virtual void windowsStyle ()
 slot used to set to MS window style windows. More...

virtual void cdeStyle ()
 slot used to set to CDE window style windows. More...

void platinumStyle ()
 slot used to set to Platinum style windows. More...


Protected Methods

virtual void createWidgets ()
 Create the widgets that the frame needs. More...

void createStatusBar ()
 Create a status bar. More...

void createMenuBar ()
 Create the top menu bar and set into frame. More...

virtual void addFileMenuItems ()
 Add items to the base File menu. More...

virtual void addCloseMenuItem ()
 Add "Close" to the base File menu. More...

virtual void addIconifyMenuItem ()
 Add "Iconify" to the base File menu. More...

virtual void addSaveAsMenuItem ()
 Add "Save as..." to the base File menu. More...

virtual void addDumpMenuItem ()
 Add "Dump data..." to the base File menu. More...

virtual void addPrintMenuItem ()
 Add "Print..." to the base File menu. More...

void addPrintPreviewMenuItem ()
 Add "Print preview..." to the base File menu. More...

virtual void addExitMenuItem ()
 Add "Exit" to the base File menu. More...

virtual void addEditMenuItems ()
 Add to the base Edit menu. More...

virtual void addCutCopyPasteMenuItems ()
 Add "CutCopyPaste" to the base File menu. More...

virtual void addStyleMenuItems ()
 Add to the base Style menu. More...

virtual void addStyleMenuItem ()
 Add the Style menu item. More...

virtual void addViewMenuItems ()
 Add to the base View menu. More...

virtual void addMenuBarItems ()
 Add the default menu bar items. More...

virtual void addSubMenuBarItems ()
 Add the sub menu bar items The sub menubar items are any menus in the menubar that may need items inserted into it. More...

void closeEvent (QCloseEvent *event)
 Hide the window when closing. More...

QMenuBar* getMenuBar ()
 Get the menu bar. More...


Protected Attributes

QMenuBar* menuBar
 The top-level menu bar. More...

QStatusBar* statusBar
 A status bar. More...

QPopupMenu* file
 file contains the menubar File commands. More...

QPopupMenu* edit
 edit contains the menubar Edit commands. More...

QPopupMenu* view
 view contains the menubar View commands. More...

QPopupMenu* style
 style contains the menubar Style commands. More...

QBoxLayout* topLayout
 topLayout does geometry management for the menuBar and the layout. More...

QGridLayout* layout
 layout does geometry management for the additional widgets. More...

int sPlatinum
 The Platinum style return value. More...

int sWindows
 The Window style return value. More...

int sCDE
 The CDE style return value. More...

int sMotif
 The Motif style return value. More...

bool isPrint
 isPrint determines if the printer dialog has finished. More...

QPrinter* printer
 The printer dialog. More...

QString saveFileName
 The saved filename for the contents of the frame. More...

QString dumpDataFileName
 The dump data ASCII filename for the contents of the frame. More...

bool dumpDataFlag
 Determines if ASCII data dumping is ok. More...

QTextStream* ts
 The QTextStream used to dump ASCII data. More...

QFile* dumpfile
 The dump file accessor. More...

QString selFilter
 The selected filter for the file name to save the frame contents. More...

int vGridNumber
 The vertial grid number. More...

int hGridNumber
 The horizontal grid number. More...

bool destructClose
 The destructive close flag The default is true to close the frame and destroy. More...


Private Methods

void selectStyleMenu (int)
 Highlight the selected style. More...


Private Attributes

QString clipText
 The clipboard text. More...

int indexNumber
 The index number of this object. More...


Detailed Description

This class creates the base QFrame for scientific plotting.

It addes a File, Edit, and Style buttons and a layout manager, and a Menubar with a layout manager.

Copyright 1998 - 2001 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

Version:
Id:
TxqFrame.h,v 1.33 2002/01/14 23:47:23 kgl Exp

Definition at line 60 of file TxqFrame.h.


Constructor & Destructor Documentation

TxqFrame::TxqFrame ( QWidget * parent = 0,
const char * nm = 0,
WFlags f = WType_TopLevel )
 

The TxqFrame constructor takes a QFrame w a name nm and a window flag f and uses those to build the QFrame base class.

All other options must be set from member methods.

Parameters:
parent   The parent Qt widget.
nm   The name of the Qt widget.
f   The window flags.

TxqFrame::~TxqFrame ( ) [virtual]
 

The TxqFrame destructor.


Member Function Documentation

void TxqFrame::aboutToClose ( int index ) [signal]
 

public signal emitted with the index number whenver the objec is about to close.

bool TxqFrame::activate ( )
 

Activate the widget geometry management for the topLayout.

void TxqFrame::addCloseMenuItem ( ) [protected, virtual]
 

Add "Close" to the base File menu.

void TxqFrame::addCutCopyPasteMenuItems ( ) [protected, virtual]
 

Add "CutCopyPaste" to the base File menu.

void TxqFrame::addDumpMenuItem ( ) [protected, virtual]
 

Add "Dump data..." to the base File menu.

void TxqFrame::addEditMenuItems ( ) [protected, virtual]
 

Add to the base Edit menu.

Reimplemented in Txq2dFrame, Txq2dPrintFrame, Txq3dFrame, Txq2dPlotFrame, TxqConfigFrame, TxqMovieFrame, and TxqNldTrol.

void TxqFrame::addExitMenuItem ( ) [protected, virtual]
 

Add "Exit" to the base File menu.

void TxqFrame::addFileMenuItems ( ) [protected, virtual]
 

Add items to the base File menu.

Reimplemented in TxqNewTrolFrame, Txq2dFrame, Txq2dPrintFrame, Txq3dFrame, Txq2dPlotFrame, TxqConfigFrame, and TxqMovieFrame.

void TxqFrame::addHWidget ( QWidget * w ) [virtual]
 

Adds horizontally the given widget to the area below the MenuBar.

This call is forwared to the layout manager, layout.

Parameters:
w   The Qwidget to add.

void TxqFrame::addIconifyMenuItem ( ) [protected, virtual]
 

Add "Iconify" to the base File menu.

void TxqFrame::addMenuBarItems ( ) [protected, virtual]
 

Add the default menu bar items.

Reimplemented in TxqMasterIoFrame, TxqPrintPixmapFrame, TxqWsFrame, Txq2dPrintFrame, Txq2dPlotFrame, TxqConfigFrame, TxqImageFrame, and TxqMovieFrame.

void TxqFrame::addPrintMenuItem ( ) [protected, virtual]
 

Add "Print..." to the base File menu.

Reimplemented in Txq2dPrintFrame.

void TxqFrame::addPrintPreviewMenuItem ( ) [protected]
 

Add "Print preview..." to the base File menu.

void TxqFrame::addSaveAsMenuItem ( ) [protected, virtual]
 

Add "Save as..." to the base File menu.

void TxqFrame::addStyleMenuItem ( ) [protected, virtual]
 

Add the Style menu item.

void TxqFrame::addStyleMenuItems ( ) [protected, virtual]
 

Add to the base Style menu.

void TxqFrame::addSubMenuBarItems ( ) [protected, virtual]
 

Add the sub menu bar items The sub menubar items are any menus in the menubar that may need items inserted into it.

Reimplemented in TxqMasterIoFrame, TxqPrintPixmapFrame, TxqConfigFrame, and TxqImageFrame.

void TxqFrame::addToMenuBar ( const QString & text,
QPopupMenu * popup ) [virtual]
 

Add a popup to the menu bar.

Parameters:
text   the text string for the QPopupMenu item.
popup   the QPopupMenu to add to the menuBar.

void TxqFrame::addViewMenuItems ( ) [protected, virtual]
 

Add to the base View menu.

Reimplemented in TxqMasterIoFrame, Txq2dFrame, Txq3dFrame, Txq2dPlotFrame, and TxqMovieFrame.

void TxqFrame::addWidget ( QWidget * w,
int fromRow,
int toRow,
int fromCol,
int toCol ) [virtual]
 

Adds the given multi-cell widget to the area below the MenuBar, from the given row and column number, to the supplied row and column number.

This call is forwared to the layout manager, layout.

Parameters:
w   The Qwidget to add.
fromRow   the grid row number to start the QWidget
toRow   the grid row number to end the QWidget
fromCol   the grid column number to start the QWidget
toCol   the grid column number to end the QWidget

void TxqFrame::addWidget ( QWidget * w,
int row,
int col ) [virtual]
 

Adds the given widget to the area below the MenuBar, at the given row and column number.

This call is forwared to the layout manager, layout.

Parameters:
w   The Qwidget to add.
row   the grid row number to add the QWidget
col   the grid column number to add the QWidget

void TxqFrame::addWidget ( QWidget * w ) [virtual]
 

Adds vertically the given widget to the area below the MenuBar.

This call is forwared to the layout manager, layout.

Parameters:
w   The Qwidget to add.

void TxqFrame::addWidgets ( ) [virtual]
 

Adds all the widgets to the layout This method is to be used in polish to add any created widgets to the layout manager.

Reimplemented in TxqMasterIoFrame, TxqVcrFrame, TxqWsFrame, Txq2dFrame, Txq3dFrame, Txq2dPlotFrame, and TxqImageFrame.

void TxqFrame::cdeStyle ( ) [protected, virtual, slot]
 

slot used to set to CDE window style windows.

bool TxqFrame::close ( bool forceKill = true ) [virtual, slot]
 

slot used to close and quit the window.

Reimplemented in Txq2dPlotFrame, TxqConfigWsFrame, and TxqImageFrame.

void TxqFrame::closeEvent ( QCloseEvent * event ) [protected]
 

Hide the window when closing.

bool TxqFrame::copy ( ) [protected, virtual, slot]
 

slot used to copy the selection.

Reimplemented in Txq2dFrame, and Txq3dFrame.

void TxqFrame::createMenuBar ( ) [protected]
 

Create the top menu bar and set into frame.

void TxqFrame::createStatusBar ( ) [protected]
 

Create a status bar.

Reimplemented in Txq3dFrame.

void TxqFrame::createWidgets ( ) [protected, virtual]
 

Create the widgets that the frame needs.

Reimplemented in TxqMasterIoFrame, TxqVcrFrame, TxqWsFrame, and TxqConfigFrame.

bool TxqFrame::cut ( ) [protected, virtual, slot]
 

slot used to cut the selection.

void TxqFrame::dumpData ( ) [protected, virtual, slot]
 

slot used to dump the contents of the frame to an ASCII file.

Reimplemented in Txq2dFrame, Txq3dFrame, and Txq2dPlotFrame.

bool TxqFrame::exit ( ) [protected, virtual, slot]
 

slot used to query the user if exit is desired.

int TxqFrame::getIndex ( ) [virtual]
 

Get the associated index number of this object.

Returns:
the index number.

QMenuBar * TxqFrame::getMenuBar ( ) [inline, protected]
 

Get the menu bar.

Definition at line 305 of file TxqFrame.h.

bool TxqFrame::iconify ( bool forceKill = FALSE ) [protected, slot]
 

slot used to iconify the window.

void TxqFrame::motifStyle ( ) [protected, virtual, slot]
 

slot used to set to motif style windows.

bool TxqFrame::paste ( ) [protected, virtual, slot]
 

slot used to paste the selection.

void TxqFrame::platinumStyle ( ) [protected, slot]
 

slot used to set to Platinum style windows.

void TxqFrame::polish ( ) [virtual, slot]
 

polish is used in order to allow overloading of widget adds to the file menu bar and to a layout.

Reimplemented in Txq2dPlotFrame.

void TxqFrame::print ( ) [protected, virtual, slot]
 

slot used to invoke the print dialog.

Reimplemented in TxqPrintPixmapFrame, Txq2dFrame, Txq2dPrintFrame, Txq3dFrame, and TxqImageFrame.

void TxqFrame::printPreview ( ) [protected, virtual, slot]
 

slot used to invoke the print preview frame.

Reimplemented in Txq2dFrame, and Txq3dFrame.

void TxqFrame::saveAs ( ) [protected, virtual, slot]
 

slot used to save the contents of the frame.

Reimplemented in Txq2dFrame, and Txq3dFrame.

void TxqFrame::selectStyleMenu ( int ) [private]
 

Highlight the selected style.

void TxqFrame::setDestructClose ( bool f ) [virtual]
 

Set the desctructive close flag True if needing to close and destroy the QFrame class.

Parameters:
f   the flag

void TxqFrame::setIndex ( const int indx ) [virtual]
 

Set an index number to be associated with this object.

Parameters:
index   the index number of this object.

Reimplemented in TxqImageFrame.

void TxqFrame::setName ( const char * nm ) [inline, virtual]
 

Forward the overloaded method to base class.

Parameters:
nm   the name to set.

Definition at line 158 of file TxqFrame.h.

void TxqFrame::setName ( QString name )
 

Set the caption, icon text and name.

Parameters:
name   the name to set.

Referenced by setName().

void TxqFrame::show ( ) [virtual]
 

Resize the widget, activate the layout, and make visible.

Reimplemented in Txq2dPlotFrame.

void TxqFrame::windowsStyle ( ) [protected, virtual, slot]
 

slot used to set to MS window style windows.


Member Data Documentation

QString TxqFrame::clipText [private]
 

The clipboard text.

Definition at line 500 of file TxqFrame.h.

bool TxqFrame::destructClose [protected]
 

The destructive close flag The default is true to close the frame and destroy.

Definition at line 420 of file TxqFrame.h.

QString TxqFrame::dumpDataFileName [protected]
 

The dump data ASCII filename for the contents of the frame.

Definition at line 383 of file TxqFrame.h.

bool TxqFrame::dumpDataFlag [protected]
 

Determines if ASCII data dumping is ok.

Definition at line 388 of file TxqFrame.h.

QFile * TxqFrame::dumpfile [protected]
 

The dump file accessor.

Definition at line 398 of file TxqFrame.h.

QPopupMenu * TxqFrame::edit [protected]
 

edit contains the menubar Edit commands.

Definition at line 326 of file TxqFrame.h.

QPopupMenu * TxqFrame::file [protected]
 

file contains the menubar File commands.

Definition at line 321 of file TxqFrame.h.

int TxqFrame::hGridNumber [protected]
 

The horizontal grid number.

Definition at line 414 of file TxqFrame.h.

int TxqFrame::indexNumber [private]
 

The index number of this object.

Definition at line 505 of file TxqFrame.h.

bool TxqFrame::isPrint [protected]
 

isPrint determines if the printer dialog has finished.

Reimplemented in TxqPrintPixmapFrame.

Definition at line 368 of file TxqFrame.h.

QGridLayout * TxqFrame::layout [protected]
 

layout does geometry management for the additional widgets.

Definition at line 346 of file TxqFrame.h.

QMenuBar * TxqFrame::menuBar [protected]
 

The top-level menu bar.

Definition at line 311 of file TxqFrame.h.

QPrinter * TxqFrame::printer [protected]
 

The printer dialog.

Reimplemented in TxqPrintPixmapFrame.

Definition at line 373 of file TxqFrame.h.

int TxqFrame::sCDE [protected]
 

The CDE style return value.

Definition at line 359 of file TxqFrame.h.

int TxqFrame::sMotif [protected]
 

The Motif style return value.

Definition at line 363 of file TxqFrame.h.

int TxqFrame::sPlatinum [protected]
 

The Platinum style return value.

Definition at line 351 of file TxqFrame.h.

int TxqFrame::sWindows [protected]
 

The Window style return value.

Definition at line 355 of file TxqFrame.h.

QString TxqFrame::saveFileName [protected]
 

The saved filename for the contents of the frame.

Definition at line 378 of file TxqFrame.h.

QString TxqFrame::selFilter [protected]
 

The selected filter for the file name to save the frame contents.

Definition at line 404 of file TxqFrame.h.

QStatusBar * TxqFrame::statusBar [protected]
 

A status bar.

Definition at line 316 of file TxqFrame.h.

QPopupMenu * TxqFrame::style [protected]
 

style contains the menubar Style commands.

Definition at line 336 of file TxqFrame.h.

QBoxLayout * TxqFrame::topLayout [protected]
 

topLayout does geometry management for the menuBar and the layout.

Definition at line 341 of file TxqFrame.h.

QTextStream * TxqFrame::ts [protected]
 

The QTextStream used to dump ASCII data.

Definition at line 393 of file TxqFrame.h.

int TxqFrame::vGridNumber [protected]
 

The vertial grid number.

Definition at line 409 of file TxqFrame.h.

QPopupMenu * TxqFrame::view [protected]
 

view contains the menubar View commands.

Definition at line 331 of file TxqFrame.h.


The documentation for this class was generated from the following file: Copyright Tech-X Corporation, all rights reserved.