trikRuntime
trikGui::ScriptHolder Class Reference

Class which contains program from programming widget. More...

#include <scriptHolder.h>

Public Member Functions

 ScriptHolder (ScriptHolder const &)=delete
 Deleted. More...
 
ScriptHolderoperator= (ScriptHolder const &)=delete
 Deleted. More...
 
const QStringList & titles () const
 Returns list which contains titles of commands. More...
 
const QStringList & commands () const
 Returns list which contains scripts for commands. More...
 
int size () const
 Returns number of stored commands. More...
 
void setData (const QString &title, const QString &command)
 Adds given strings to appropriate list. More...
 
void clear ()
 Clears all stored data. More...
 

Static Public Member Functions

static ScriptHolderinstance ()
 Creates instance of ScriptHolder. More...
 

Detailed Description

Class which contains program from programming widget.

Constructor & Destructor Documentation

trikGui::ScriptHolder::ScriptHolder ( ScriptHolder const &  )
delete

Deleted.

Member Function Documentation

void ScriptHolder::clear ( )

Clears all stored data.

const QStringList & ScriptHolder::commands ( ) const

Returns list which contains scripts for commands.

ScriptHolder * ScriptHolder::instance ( )
static

Creates instance of ScriptHolder.

ScriptHolder& trikGui::ScriptHolder::operator= ( ScriptHolder const &  )
delete

Deleted.

void ScriptHolder::setData ( const QString &  title,
const QString &  command 
)

Adds given strings to appropriate list.

Parameters
title- new string for titles list.
command- new string for commands list.
int ScriptHolder::size ( ) const

Returns number of stored commands.

const QStringList & ScriptHolder::titles ( ) const

Returns list which contains titles of commands.


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