QMessageBoxmessageBox{QMessageBox::Information,tr("The ClientHelpNotificationServer will be deactivated"),
tr("The 'client_help_server_port' variable was not set or set to zero. The ClientHelpNotificationServer will be deactivated. Clients' help requests will be ignored by the server.")};
messageBox.exec();
debugMessagesTextEdit->appendPlainText(tr("[DEBUG] The ClientHelpNotificationServer will be deactivated since 'client_help_server_port' was not set or set to zero."));
qDebug()<<"The ClientHelpNotificationServer will be deactivated since"
" 'client_help_server_port' was not set or set to zero.";
QMessageBoxmessageBox(QMessageBox::Information,tr("'default_receipt_index' not set"),tr("The 'default_receipt_index' variable was not set. It will default to '0'."));
QMessageBoxmessageBox{QMessageBox::Information,tr("'default_receipt_index' not set"),
tr("The 'default_receipt_index' variable was not set."
" It will default to '0'.")};
messageBox.exec();
debugMessagesTextEdit->appendPlainText(tr("[DEBUG] 'default_receipt_index' was not set. It will default to '0'."));
qDebug()<<"'default_receipt_index' was not set. It will default to '0'.";
QMessageBoxmessageBox{QMessageBox::Information,tr("'webcams' not set"),tr("The 'webcams' variable was not set. No stationary webcams will be available.")};
QMessageBoxmessageBox{QMessageBox::Information,tr("'webcams' not set"),
tr("The 'webcams' variable was not set."
" No stationary webcams will be available.")};
messageBox.exec();
debugMessagesTextEdit->appendPlainText(tr("[DEBUG] 'webcams' was not set. No stationary webcams will be available."));
qDebug()<<"'webcams' was not set. No stationary webcams will be available.";
}
// Get the client quantity to check the value lists for clients creation for correct length
QMessageBoxmessageBox{QMessageBox::Information,tr("'client_quantity' not set"),
tr("The 'client_quantity' variable was not set. The client quantity will be guessed by the amount of client ips set in 'client_ips'.")};
messageBox.exec();
debugMessagesTextEdit->appendPlainText(tr("[DEBUG] 'client_quantity' was not set. The client quantity will be guessed by the amount of client IPs set in 'client_ips'."));
qDebug()<<"'client_quantity' was not set. The client quantity will be guessed"
" by the amount of client IPs set in 'client_ips'.";
debugMessagesTextEdit->appendPlainText(tr("[DEBUG] Set print_receipts_for_local_clients to : '%1'").arg(QString::number(PrintReceiptsForLocalClients)));
constQString*constanonymousReceiptsPlaceholder;//! Placeholder which shall be inserted for participant names if anonymous printing is desired (QString != "")
QString*dateString=nullptr;
QPlainTextEdit*constdebugMessagesTextEdit=nullptr;//! A pointer to the programs debug_messages_text_edit to be able to emit debugging messages
QStringexpectedPaymentFileName;//! The name of the expected payment file
QStringexpectedPaymentFilePath;//! The path of the expected payment file
constQString*constlatexHeaderName;//! The name of the chosen LaTeX header template
constQStringanonymousReceiptsPlaceholder;//! Placeholder which shall be inserted for participant names if anonymous printing is desired (QString != "")
QPlainTextEdit*constdebugMessagesTextEdit=nullptr;//! A pointer to the programs debugMessagesTextEdit to be able to emit debugging messages
constQStringlatexHeaderName;//! The name of the chosen LaTeX header
constboolprintReceiptsForLocalClients=true;//! True if receipts shall be printed for local clients
ReceiptsHandler*receiptsHandler=nullptr;//! For automatic creation and printing of the receipts
ui->PTEDebugMessages->appendPlainText(tr("[DEBUG] %1 clients are selected.").arg(QString::number(numberOfSelectedClients)));
qDebug()<<numberOfSelectedClients<<"clients are selected.";
if(numberOfSelectedClients>1){
QMessageBoxmessageBox{QMessageBox::Information,tr("Too many clients selected"),tr("There are too many clients selected in the table view on the left. Please select only one."),QMessageBox::Ok,this};
QMessageBox::information(this,tr("'default_receipt_index' to high"),
tr("'default_receipt_index' was set to big. The combo box containing the receipt templates will default to the first entry."));
debugMessagesTextEdit->appendPlainText(tr("'default_receipt_index' was set to big. The combo box containing the receipt templates will default to the first entry."));
qDebug()<<"'default_receipt_index' was set to big."
" The combo box containing the receipt templates will default to the first entry.";