Classified ads
Public Slots | Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
TclProgramsDialog Class Reference

class for displaying listing of stored TCL scripts More...

#include <tclPrograms.h>

Inheritance diagram for TclProgramsDialog:
Inheritance graph
[legend]
Collaboration diagram for TclProgramsDialog:
Collaboration graph
[legend]

Public Slots

void tclProgramStarted ()
 
void tclProgramStopped ()
 

Signals

void error (MController::CAErrorSituation aError, const QString &aExplanation)
 
void evalScript (QString aScript, QString *aWindowTitle)
 

Public Member Functions

 TclProgramsDialog (QWidget *aParent, MController &aController)
 
 ~TclProgramsDialog ()
 

Private Slots

void evalButtonPressed ()
 
void saveButtonPressed ()
 
void discardButtonPressed ()
 
void dialogButtonClicked (QAbstractButton *aButton)
 
void programInListActivated (const QModelIndex &aIndex)
 
void editorModificationChanged (bool aChanged)
 

Private Attributes

Ui_tclProgramsDialog ui
 
MControlleriController
 
QStandardItemModel iProgramListingModel
 
QAbstractButton * iEvalButton
 
QAbstractButton * iDeleteButton
 
QString iEvalButtonStartText
 
QString iEvalButtonStopText
 
QString iNameOfCurrentProgram
 
Hash iFingerPrintOfCurrentProgram
 
bool iIsProgramSaved
 
bool iIsProgramRunning
 

Detailed Description

class for displaying listing of stored TCL scripts

Constructor & Destructor Documentation

◆ TclProgramsDialog()

TclProgramsDialog::TclProgramsDialog ( QWidget *  aParent,
MController aController 
)

Constructor.

◆ ~TclProgramsDialog()

TclProgramsDialog::~TclProgramsDialog ( )

destructor

Member Function Documentation

◆ dialogButtonClicked

void TclProgramsDialog::dialogButtonClicked ( QAbstractButton *  aButton)
privateslot

dialog buttonbox click

◆ discardButtonPressed

void TclProgramsDialog::discardButtonPressed ( )
privateslot

discard-button click is handled in this method

◆ editorModificationChanged

void TclProgramsDialog::editorModificationChanged ( bool  aChanged)
privateslot

Slot called when user edits code in editor

◆ error

void TclProgramsDialog::error ( MController::CAErrorSituation  aError,
const QString &  aExplanation 
)
signal

◆ evalButtonPressed

void TclProgramsDialog::evalButtonPressed ( )
privateslot

eval-button click is handled in this method

◆ evalScript

void TclProgramsDialog::evalScript ( QString  aScript,
QString *  aWindowTitle 
)
signal

This signal is emitted if user wishes to have TCL evaluated

◆ programInListActivated

void TclProgramsDialog::programInListActivated ( const QModelIndex &  aIndex)
privateslot

slot for signaling focus changes on program list

◆ saveButtonPressed

void TclProgramsDialog::saveButtonPressed ( )
privateslot

save-button click is handled in this method

◆ tclProgramStarted

void TclProgramsDialog::tclProgramStarted ( )
slot

used to communicate tcl program start event so dialog can adjust accordingly

◆ tclProgramStopped

void TclProgramsDialog::tclProgramStopped ( )
slot

used to communicate tcl program stop event so dialog can adjust accordingly

Member Data Documentation

◆ iController

MController& TclProgramsDialog::iController
private

◆ iDeleteButton

QAbstractButton* TclProgramsDialog::iDeleteButton
private

button for deleting a script

◆ iEvalButton

QAbstractButton* TclProgramsDialog::iEvalButton
private

◆ iEvalButtonStartText

QString TclProgramsDialog::iEvalButtonStartText
private

button text when program not running

◆ iEvalButtonStopText

QString TclProgramsDialog::iEvalButtonStopText
private

button text when program running

◆ iFingerPrintOfCurrentProgram

Hash TclProgramsDialog::iFingerPrintOfCurrentProgram
private

◆ iIsProgramRunning

bool TclProgramsDialog::iIsProgramRunning
private

true if program is being interpreted

◆ iIsProgramSaved

bool TclProgramsDialog::iIsProgramSaved
private

true if program is saved to local storage

◆ iNameOfCurrentProgram

QString TclProgramsDialog::iNameOfCurrentProgram
private

◆ iProgramListingModel

QStandardItemModel TclProgramsDialog::iProgramListingModel
private

holds display-list of progs

◆ ui

Ui_tclProgramsDialog TclProgramsDialog::ui
private

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