#include <CConsole.h>
Signals | |
| void | LogStatusChange (int, bool) |
Public Member Functions | |
| CConsole (QWidget *parent=0) | |
| ~CConsole () | |
| void | SetLogStatus (int what, bool tf) |
| void | Log (QString &text, int id) |
| void | Log (const char *text, int id) |
| void | Log (int nmb, int id) |
| void | Log (float nmb, int id) |
| void | Log (double nmb, int id) |
| void | Log (QVariant &log, int id) |
Protected Member Functions | |
| void | showEvent (QShowEvent *event) |
| void | hideEvent (QHideEvent *event) |
Private Slots | |
| void | on_qualitySlider_valueChanged (int) |
| void | on_logAllCheckbox_clicked (bool) |
| void | update () |
| void | on_actionSave_triggered () |
| void | on_actionClear_triggered () |
| void | on_actionOpenGL_triggered () |
Private Member Functions | |
| void | statusChange (int what, bool tf) |
Private Attributes | |
| Ui::CConsoleClass | ui |
| QQueue< QString > | logQueue |
| QMutex | logQueueLocker |
| QThread * | pCreateThread |
| QTimer * | pTimer |
| QIcon | iconEnable |
| QIcon | iconDisable |
| volatile int | rowNmb |
| volatile bool | bOpenGlLog |
| volatile bool | bLogAll |
| volatile int | quality |
| volatile int | q |
| bool | consoleIsHidden |
Definition at line 22 of file CConsole.h.
| CConsole::CConsole | ( | QWidget * | parent = 0 |
) |
Definition at line 18 of file CConsole.cpp.
References bLogAll, bOpenGlLog, consoleIsHidden, iconDisable, iconEnable, pCreateThread, pTimer, q, quality, rowNmb, ui, and update().
| CConsole::~CConsole | ( | ) |
Definition at line 45 of file CConsole.cpp.
| void CConsole::hideEvent | ( | QHideEvent * | event | ) | [protected] |
Definition at line 142 of file CConsole.cpp.
References bOpenGlLog, consoleIsHidden, LOG_OPENGL, and SetLogStatus().
| void CConsole::Log | ( | QVariant & | log, | |
| int | id | |||
| ) | [inline] |
Definition at line 41 of file CConsole.h.
| void CConsole::Log | ( | double | nmb, | |
| int | id | |||
| ) | [inline] |
| void CConsole::Log | ( | float | nmb, | |
| int | id | |||
| ) | [inline] |
| void CConsole::Log | ( | int | nmb, | |
| int | id | |||
| ) | [inline] |
| void CConsole::Log | ( | const char * | text, | |
| int | id | |||
| ) | [inline] |
| void CConsole::Log | ( | QString & | text, | |
| int | id | |||
| ) |
Definition at line 70 of file CConsole.cpp.
References bLogAll, bOpenGlLog, consoleIsHidden, logQueue, logQueueLocker, pCreateThread, q, quality, rowNmb, and ui.
Referenced by CVolume::Create(), CVolume::CreateOpenGL(), CVolume::DestroyOpenGL(), VStudio::LoadVolume(), CShaderEditor::logShaderLoadResult(), CShaderEditor::logShaderSaveResult(), VStudio::on_actionOpen_Recent_triggered(), VStudioRenderer::onLOG(), VStudio::OpenScene(), VStudioRenderer::ReportErrors(), VStudio::SaveImage(), VStudio::SaveScene(), and CProperties::UpdateTransferProperty().
| void CConsole::LogStatusChange | ( | int | , | |
| bool | ||||
| ) | [signal] |
Referenced by statusChange().
| void CConsole::on_actionClear_triggered | ( | ) | [private, slot] |
| void CConsole::on_actionOpenGL_triggered | ( | ) | [private, slot] |
Definition at line 160 of file CConsole.cpp.
References bOpenGlLog, LOG_OPENGL, SetLogStatus(), and ui.
| void CConsole::on_actionSave_triggered | ( | ) | [private, slot] |
| void CConsole::on_logAllCheckbox_clicked | ( | bool | checked | ) | [private, slot] |
| void CConsole::on_qualitySlider_valueChanged | ( | int | value | ) | [private, slot] |
| void CConsole::SetLogStatus | ( | int | what, | |
| bool | tf | |||
| ) | [inline] |
Definition at line 51 of file CConsole.cpp.
References bLogAll, bOpenGlLog, consoleIsHidden, LOG_OPENGL, LOG_OPENGL_ALL, pCreateThread, statusChange(), and ui.
Referenced by hideEvent(), on_actionOpenGL_triggered(), VStudio::SetupConnections(), and showEvent().
| void CConsole::showEvent | ( | QShowEvent * | event | ) | [protected] |
Definition at line 150 of file CConsole.cpp.
References bOpenGlLog, consoleIsHidden, LOG_OPENGL, and SetLogStatus().
| void CConsole::statusChange | ( | int | what, | |
| bool | tf | |||
| ) | [private] |
Definition at line 110 of file CConsole.cpp.
References bOpenGlLog, iconDisable, iconEnable, LOG_OPENGL, LogStatusChange(), pTimer, ui, and update().
Referenced by SetLogStatus().
| void CConsole::update | ( | ) | [private, slot] |
Definition at line 127 of file CConsole.cpp.
References logQueue, logQueueLocker, and ui.
Referenced by CConsole(), and statusChange().
volatile bool CConsole::bLogAll [private] |
Definition at line 86 of file CConsole.h.
Referenced by CConsole(), Log(), on_logAllCheckbox_clicked(), and SetLogStatus().
volatile bool CConsole::bOpenGlLog [private] |
Definition at line 85 of file CConsole.h.
Referenced by CConsole(), hideEvent(), Log(), on_actionOpenGL_triggered(), SetLogStatus(), showEvent(), and statusChange().
bool CConsole::consoleIsHidden [private] |
Definition at line 89 of file CConsole.h.
Referenced by CConsole(), hideEvent(), Log(), SetLogStatus(), and showEvent().
QIcon CConsole::iconDisable [private] |
QIcon CConsole::iconEnable [private] |
QQueue<QString> CConsole::logQueue [private] |
QMutex CConsole::logQueueLocker [private] |
Definition at line 74 of file CConsole.h.
Referenced by Log(), on_actionClear_triggered(), on_actionSave_triggered(), and update().
QThread* CConsole::pCreateThread [private] |
QTimer* CConsole::pTimer [private] |
volatile int CConsole::q [private] |
volatile int CConsole::quality [private] |
Definition at line 87 of file CConsole.h.
Referenced by CConsole(), Log(), and on_qualitySlider_valueChanged().
volatile int CConsole::rowNmb [private] |
Ui::CConsoleClass CConsole::ui [private] |
Definition at line 71 of file CConsole.h.
Referenced by CConsole(), Log(), on_actionClear_triggered(), on_actionOpenGL_triggered(), on_logAllCheckbox_clicked(), SetLogStatus(), statusChange(), and update().
1.5.7.1