build/
appl/build-reidos-Desktop-Debug/
.metadata
+2github
+
# Minimum value: 0, maximum value: 10000, default value: 50.
# This tag requires that the tag HAVE_DOT is set to YES.
-DOT_GRAPH_MAX_NODES = 50
+DOT_GRAPH_MAX_NODES = 500
# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs
# generated by dot. A depth value of 3 means that only nodes reachable from the
-doc:
-* rpldoc.zip contains a full source code documentation generated by Doxygen
-usage:
-* copy (or link) the wanted source directories (e.g. rplcore+rplnet) into your project.
-* each of the sublibraries rplcore, rplmath, rplexpr... has a main include file, e.g. rplcore/rplcore.hpp
-* include this main include file into your source
-
-
-
+# reqt
+Libs and applications developed in a QT environment. Successor of rplqt.
/**
* Constructor.
*
+ * @param path home path (for the settings)
* @param mainWindow the parent (main window)
*/
ProjectPerspective::ProjectPerspective(const QString& path,
- MainWindow* mainWindow) :
- Perspective(NAME, mainWindow),
- ReSettings(path, ".reditor.proj", mainWindow->logger()),
- m_editorView(NULL) {
+ MainWindow* mainWindow) :
+ Perspective(NAME, mainWindow),
+ ReSettings(path, ".reditor.proj", mainWindow->logger()),
+ m_editorView(NULL) {
setDefaultViews();
//QString filename = topOfHistory(KEY_HISTORY_OPEN_FILES);
//QFileInfo info(filename);
void ProjectPerspective::changeProject(const QString& path) {
setPath(path);
int maxEntries = m_mainWindow->workspace()->intValue(
- "history.max_projects");
+ "history.max_projects");
m_mainWindow->workspace()->addHistoryEntry(Workspace::KEY_HISTORY_PROJECTS,
- m_path, ';', maxEntries);
+ m_path, ';', maxEntries);
/*<pre>
if (m_fileTree == NULL) {
m_fileTree = new ReFileTree(path, m_logger, this);
m_editorView = new EditorView(m_mainWindow);
append(m_editorView, Qt::NoDockWidgetArea);
append(new FileTreeView(QDir::homePath(), m_mainWindow),
- Qt::LeftDockWidgetArea);
+ Qt::LeftDockWidgetArea);
}
}
#include <QRegularExpression>
#include <QRegExp>
-/** @mainpage A converter for images.
+/** @file
*
* @section intro_sec Introduction
*
*
* @param directory the source directory. The images will be searched here
* @param targetDirectory the target directory
+ * @param sourcePattern the pattern for the files to process
+ * @param targetType the target image type
* @param landscapeX 0 or the given maximal width for landscape format
* @param landscapeY 0 or the given maximal height for landscape format
* @param portraitX 0 or the given maximal width for portrait format
* <li>math: mathematic definitions and tools</li>
* <li>expr: definition for parsing and interpretation of languages</li>
* <li>net: definitions and tools for tcp/udp communication</li>
+ * <li>appl: some applications</li>
* </ul>
*
* Each module group has a central include file, which organizes the necessary
* For derived classes only!
*/
ReException::ReException() :
- m_message("") {
+ m_message("") {
}
/**
* @param ... the values for the placeholders in the format.
*/
ReException::ReException(const char* format, ...) :
- m_message("") {
+ m_message("") {
char buffer[64000];
va_list ap;
va_start(ap, format);
* @param logger if NULL the global logger will be used
*/
ReException::ReException(ReLoggerLevel level, int location, ReLogger* logger,
- const char* format, ...) :
- m_message("") {
+ const char* format, ...) :
+ m_message("") {
char buffer[64000];
va_list ap;
va_start(ap, format);
*/
ReRangeException::ReRangeException(ReLoggerLevel level, int location,
- size_t current, size_t lbound, size_t ubound, const char* message,
- ReLogger* logger) :
- ReException("") {
+ size_t current, size_t lbound, size_t ubound, const char* message,
+ ReLogger* logger) :
+ ReException("") {
char buffer[64000];
if (message == NULL)
message = "value outside limits";
qsnprintf(buffer, sizeof buffer, "%s: %lu [%lu, %lu]",
- message == NULL ? "" : message, current, lbound, ubound);
+ message == NULL ? "" : message, current, lbound, ubound);
if (logger == NULL)
logger = ReLogger::globalLogger();
logger->log(level, location, buffer);
* @param logger if NULL the global logger will be used
*/
RplInvalidDataException::RplInvalidDataException(ReLoggerLevel level,
- int location, const char* message, const void* data, size_t dataSize,
- ReLogger* logger) :
- ReException("") {
+ int location, const char* message, const void* data, size_t dataSize,
+ ReLogger* logger) :
+ ReException("") {
char buffer[64000];
if (message == NULL)
message = "invalid data: ";
char* ptr = buffer + strlen(buffer);
for (ix = 0; ix < dataSize; ix++) {
qsnprintf(ptr, sizeof(buffer) - (ptr - buffer) - 1, "%02x ",
- ((unsigned char*) data)[ix]);
+ ((unsigned char*) data)[ix]);
ptr += strlen(ptr);
}
for (ix = 0; ix < dataSize; ix++) {
* @param message describes what is not implemented
*/
ReNotImplementedException::ReNotImplementedException(const char* message) :
- ReException("not implemented: ", message) {
+ ReException("not implemented: ", message) {
ReLogger::globalLogger()->log(LOG_ERROR, LOC_NOT_IMPLEMENTED_1,
- getMessage());
+ getMessage());
}
/**
* @param message the description of the exception
*/
ReQException::ReQException(const QString message) :
- m_message(message) {
+ m_message(message) {
}
/**
/** @brief Constructor.
*
* @param caller the object which throw the exception.
- * @param message the error message with placeholders like sprintf()
+ * @param format the error message with placeholders like sprintf()
* @param ...
*/
ReOptionException::ReOptionException(ReProgramArgs* caller, const char* format,
/** @brief Constructor.
*
- * @param usage a string array with the description of the usage.
+ * @param usageList a string array with the description of the usage.
* Every string will be issued in a separate line
* @param examples a string with one ore more calling examples.
* Every string will be issued in a separate line
/** @brief Constructor.
*
- * @param usage a string with the description of the usage
- * It may contain <code>'\\n'</code> for separate lines
- * @param examples a string with one ore more calling examples.
- * It may contain <code>'\\n'</code> for separate lines
+ * @param usageString a string with the description of the usage
+ * It may contain <code>'\\n'</code> for separate lines
+ * @param examples a string with one ore more calling examples.
+ * It may contain <code>'\\n'</code> for separate lines
*/
ReProgramArgs::ReProgramArgs(const char* usageString, const char* examples) :
m_usage(),
/** @brief Constructor.
*
- * @param usage a string with the description of the usage
- * It may contain <code>'\\n'</code> for separate lines
- * @param examples a string with one ore more calling examples.
- * It may contain <code>'\\n'</code> for separate lines
+ * @param usageString a string with the description of the usage
+ * It may contain <code>'\\n'</code> for separate lines
+ * @param examples a string with one ore more calling examples.
+ * It may contain <code>'\\n'</code> for separate lines
*/
ReProgramArgs::ReProgramArgs(const QString& usageString, QString examples) :
m_usage(),
* @see getBool()
*/
void ReProgramArgs::addBool(const char* name, const char* description,
- char shortOpt, const char* longOpt, bool defaultVal) {
+ char shortOpt, const char* longOpt, bool defaultValue) {
addProperties(name, description, shortOpt, longOpt, DT_BOOL,
- defaultVal ? "t" : "f");
+ defaultValue ? "t" : "f");
}
/** @brief Adds an option with an integer value.
* * @see getInt()
*/
void ReProgramArgs::addInt(const char* name, const char* description,
- char shortOpt, const char* longOpt, int defaultVal) {
- QByteArray number = QByteArray::number(defaultVal);
+ char shortOpt, const char* longOpt, int defaultValue) {
+ QByteArray number = QByteArray::number(defaultValue);
addProperties(name, description, shortOpt, longOpt, DT_INT, number.constData());
}
* @param description A short description of the option. Used in the user messages
* @param shortOpt the one character option identifier. Used in the arguments. Must be preceded by '-'
* @param longOpt the multi character option identifier. Used in the arguments. Must be preceded by '--'
+ * @param mayBeEmpty <code>false</code>: an empty string is an error
* @param defaultValue the default value of the option
*
* @see getString()
*/
void ReProgramArgs::addString(const char* name, const char* description,
char shortOpt, const char* longOpt, bool mayBeEmpty,
- const char* defaultVal) {
+ const char* defaultValue) {
addProperties(name, description, shortOpt, longOpt,
mayBeEmpty ? DT_STRING_EMPTY : DT_STRING,
- defaultVal == NULL ? UNDEFINED_STRING.constData() : defaultVal);
+ defaultValue == NULL ? UNDEFINED_STRING.constData() : defaultValue);
}
/** @brief Analyses a long name option.
/** @brief Returns the value of a string option.
*
- * @param name the name of the option
+ * @param name the name of the option
+ * @param buffer OUT: the buffer for the name
*
* @return NULL: default value is NULL and no argument has been given<br>
* the value of the option set in the programs arguments or the default value.
/**
* Initializes the scrambler from a header.
*
+ * @param reservedLength length of an area in front of the marker (not encrypted)
* @param markerLength length of a mark to ensure header's integrity
* @param infoLength the length of the "reserved area"
* @param encryptedFrom the first index from which data are encrypted.
*
* @param string string to change
* @param cc character to remove. Default: end of line ('\n')<br>
- * If <code>cc</code> is '\n' then also '\r' will be removed
+ * If <code>cc</code> is '\n' then also '\\r' will be removed
* at the end of the string
* @return <code>string</code>: for chaining
*/
*
* @param path the parent directory for the storage files
* @param prefix type of the storage: "proj" or "ws" (workspace)
+ * @param logger the logger
*/
ReSettings::ReSettings(const QString& path, const QString& prefix,
ReLogger* logger) :
* The file must exist in the current directory.
* The caller must free the instance.
*
- * @param meta the metadata of the file
- * @return NULL: no file found<br>
- * otherwise: the file
+ * @param metadata the metadata of the file
+ * @return NULL: no file found<br>
+ * otherwise: the file
*/
ReLeafFile* ReCryptFileSystem::buildFile(const ReFileMetaData& metadata)
{
/**
* Reads data from the current position into a buffer.
*
- * @param maxSize number of bytes to read
+ * @param size number of bytes to read
* @param buffer OUT: content of the file
* @return EC_SUCCESS or error code
*/
/**
* Copy a file from a source filesystem to the current directory of the instance.
*
- * @param source meta data of the source file (in current directory)
- * @param sourceFS the filesystem containing the source
+ * @param source meta data of the source file (in current directory)
+ * @param sourceFS the filesystem containing the source
+ * @param targetNode the name of the target file (without path)
* @return EC_SUCCESS: success<br>
*
*/
/**
* Move a file from a source filesystem to the current directory of the instance.
*
- * @param source meta data of the source file (in current directory)
- * @param sourceFS the filesystem containing the source
+ * @param source meta data of the source file (in current directory)
+ * @param sourceFS the filesystem containing the source
+ * @param targetNode the name of the target file (without path)
* @return EC_SUCCESS: success<br>
*
*/
* Constructor.
*
* @param metaData the meta data of the file
+ * @param fullName the name with path of the file
+ * @param logger the logger
*/
ReLocalLeafFile::ReLocalLeafFile(const ReFileMetaData& metaData,
const QString& fullName, ReLogger* logger) :
/**
* Reads data from the current position into a buffer.
*
- * @param size number of bytes to read
+ * @param maxSize number of bytes to read
* @param buffer OUT: content of the file
* @return EC_SUCCESS: success<br>
* EC_INVALID_STATE: file not open