|
CycloBranch
|
The class representing a thread launched by the command 'Search->Run'. More...
#include <cMainThread.h>
Public Types | |
| typedef std::basic_ostream< char, std::char_traits< char > > | CoutType |
| This is the type of std::cout. | |
| typedef CoutType &(* | StandardEndLine) (CoutType &) |
| This is the function signature of std::endl. | |
Signals | |
| void | message (QString s) |
| A message which will be shown in log window. More... | |
| void | enableRunButtonAndSettings (bool enable) |
| Enable or disable options 'Search->Run' and 'Search->Settings...'. More... | |
| void | enableStopButton (bool enable) |
| Enable or disable the option 'Search->Stop'. More... | |
| void | enableButtonsHandlingResults (bool enable) |
| Enable or disable buttons handling results. More... | |
| void | sendParameters (cParameters parameters) |
| Send parameters to cMainWindow when the thread has finished. More... | |
| void | reportSpectra () |
| Report results. | |
| void | setGraph (string s) |
| Set the graph into the cGraphWidget. More... | |
Public Member Functions | |
| cMainThread (cParameters ¶meters, cTheoreticalSpectrumList &listoftheoreticalspectra, bool enablelogwindow=true, bool enablestdout=true) | |
| The constructor. More... | |
| void | setGraphReaderIsWorking (bool working) |
| Set the flag that the graph reader is working. More... | |
| bool | isGraphReaderWorking () |
| Check the flag whether the graph reader is working. More... | |
| template<class T > | |
| cMainThread & | operator<< (const T &x) |
| Overloaded operator <<. | |
| cMainThread & | operator<< (const char *x) |
| Overloaded operator <<. | |
| cMainThread & | operator<< (const string &x) |
| Overloaded operator <<. | |
| cMainThread & | operator<< (StandardEndLine manip) |
| Define an operator << to take in std::endl. | |
| void | addToParallelOutputState (int value) |
| Add a value to the output state (for internal threads). More... | |
Protected Member Functions | |
| void | run () |
| The main method of the thread. | |
| void | emitEndSignals () |
| The signals emitted when the thread has successfully finished. | |
The class representing a thread launched by the command 'Search->Run'.
| cMainThread::cMainThread | ( | cParameters & | parameters, |
| cTheoreticalSpectrumList & | listoftheoreticalspectra, | ||
| bool | enablelogwindow = true, |
||
| bool | enablestdout = true |
||
| ) |
The constructor.
| parameters | reference to input paramaters |
| listoftheoreticalspectra | lists of theoretical spectra |
| enablelogwindow | if true then messages are logged into the log window |
| enablestdout | if true then messages are logged into the standard output |
| void cMainThread::addToParallelOutputState | ( | int | value | ) |
Add a value to the output state (for internal threads).
| value | value |
|
signal |
Enable or disable buttons handling results.
| enable | true == enable, false == disable |
|
signal |
Enable or disable options 'Search->Run' and 'Search->Settings...'.
| enable | true == enable, false == disable |
|
signal |
Enable or disable the option 'Search->Stop'.
| enable | true == enable, false == disable |
| bool cMainThread::isGraphReaderWorking | ( | ) |
Check the flag whether the graph reader is working.
| bool | true when the graph reader is working, false otherwise |
|
signal |
A message which will be shown in log window.
| s | text of the message |
|
signal |
Send parameters to cMainWindow when the thread has finished.
| parameters | parameters |
|
signal |
Set the graph into the cGraphWidget.
| s | graph printed as a string |
| void cMainThread::setGraphReaderIsWorking | ( | bool | working | ) |
Set the flag that the graph reader is working.
| working | set true when the graph reader is working, otherwise set false |