Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
main.cpp File Reference

(4183fa4c0b75a76fbc687298f4513971a9230152)

#include <rcc.h>
#include <qdebug.h>
#include <qdir.h>
#include <qfile.h>
#include <qfileinfo.h>
#include <qhashfunctions.h>
#include <qtextstream.h>
#include <qatomic.h>
#include <qglobal.h>
#include <qcoreapplication.h>
#include <qcommandlineoption.h>
#include <qcommandlineparser.h>
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Macros

#define ALGOS   "[zlib], none"
 

Functions

void dumpRecursive (const QDir &dir, QTextStream &out)
 
int createProject (const QString &outFileName)
 
QString makefileEscape (const QString &filepath)
 
void writeDepFile (QIODevice &iodev, const QStringList &depsList, const QString &targetName)
 
int runRcc (int argc, char *argv[])
 
QT_END_NAMESPACE int main (int argc, char *argv[])
 [2]
 

Macro Definition Documentation

◆ ALGOS

#define ALGOS   "[zlib], none"

Function Documentation

◆ createProject()

int createProject ( const QString & outFileName)

Definition at line 44 of file main.cpp.

References QDir::current(), QDir::dirName(), dumpRecursive(), QIODevice::errorString(), file, QFile::open(), out, qPrintable, QFile::setFileName(), QIODeviceBase::Text, and QIODeviceBase::WriteOnly.

Referenced by runRcc().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dumpRecursive()

void dumpRecursive ( const QDir & dir,
QTextStream & out )

Definition at line 29 of file main.cpp.

References dir, QDir::Dirs, dumpRecursive(), QDir::Files, QDir::NoDotAndDotDot, QDir::NoSymLinks, and out.

Referenced by createProject(), and dumpRecursive().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ main()

QT_END_NAMESPACE int main ( int argc,
char * argv[] )

[2]

[3]

[2]

[printing a custom type]

[printing a custom type] [storing a custom value]

[storing a custom value]

[retrieving a custom value]

[retrieving a custom value]

[0]

[0] [1]

[1]

[0]

[0]

[1]

[1] [2]

[2]

[0]

[0]

[2]

[2]

[22]

[22]

[3]

[3]

[4]

[4]

[10]

[10]

[qcinfo_stream]

[qcinfo_stream]

[11]

[11]

[12]

[12]

[13]

[13]

[qcinfo_printf]

[qcinfo_printf]

[14]

[14]

[15]

[15]

[16]

[16]

[17]

[17]

[0]

[0]

[1]

[1]

[2]

[2]

[Window class using revision]

[Window class using revision]

[0]

[0]

[0]

[0]

[1]

[1]

[2]

[2]

[0]

[0]

[write output] [start stream]

[start stream]

[write element]

[write element]

[finish stream]

[finish stream] [write output]

[1]

[1]

[0]

[0]

[0]

[0] //! [1]

[1]

[0]

[0] //! [1]

[1]

[0]

[0] //! [1]

[1] //! [2]

[2]

[0]

[0]

[1]

[1]

[Adding a resource]

[Adding a resource]

[Inserting an image with a cursor]

[Inserting an image with a cursor]

[Inserting an image using HTML]

[Inserting an image using HTML]

[0]

[0] //! [1]

[1]

Definition at line 425 of file main.cpp.

References runRcc(), and QHashSeed::setDeterministicGlobalSeed().

+ Here is the call graph for this function:

◆ makefileEscape()

QString makefileEscape ( const QString & filepath)

Definition at line 80 of file main.cpp.

References QDir::cleanPath().

Referenced by writeDepFile().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ runRcc()

int runRcc ( int argc,
char * argv[] )

Definition at line 110 of file main.cpp.

References QCommandLineParser::addHelpOption(), QCommandLineParser::addOption(), QCommandLineParser::addPositionalArgument(), QCommandLineParser::addVersionOption(), ALGOS, app, QString::at(), QSet< T >::begin(), RCCResourceLibrary::Binary, RCCResourceLibrary::C_Code, QDir::cleanPath(), RCCResourceLibrary::compressionAlgorithm(), createProject(), RCCResourceLibrary::dataFiles(), QFile::exists(), file, RCCResourceLibrary::format(), QString::fromLatin1(), QString::fromUtf8(), i, QString::isEmpty(), QCommandLineParser::isSet(), it, list, map, RCCResourceLibrary::None, QIODeviceBase::NotOpen, RCCResourceLibrary::noZstd(), ok, QFile::open(), out, RCCResourceLibrary::output(), QCommandLineParser::ParseAsLongOptions, RCCResourceLibrary::parseCompressionAlgorithm(), RCCResourceLibrary::parseCompressionLevel(), RCCResourceLibrary::Pass1, RCCResourceLibrary::Pass2, QCommandLineParser::positionalArguments(), QCommandLineParser::process(), RCCResourceLibrary::Python_Code, qPrintable, QStringLiteral, qWarning, RCCResourceLibrary::readFiles(), QIODeviceBase::ReadOnly, RCCResourceLibrary::resourceDataFileMap(), RCCResourceLibrary::resourceRoot(), QCommandLineParser::setApplicationDescription(), QCoreApplication::setApplicationVersion(), RCCResourceLibrary::setCompressionAlgorithm(), RCCResourceLibrary::setCompressLevel(), RCCResourceLibrary::setCompressThreshold(), QCommandLineOption::setDescription(), QFile::setFileName(), RCCResourceLibrary::setFormat(), RCCResourceLibrary::setInitName(), RCCResourceLibrary::setInputFiles(), RCCResourceLibrary::setNoZstd(), RCCResourceLibrary::setResourceRoot(), QCommandLineParser::setSingleDashWordOptionMode(), RCCResourceLibrary::setUseNameSpace(), RCCResourceLibrary::setVerbose(), QCommandLineParser::showHelp(), QIODeviceBase::Text, QString::toInt(), QString::toUInt(), QString::toUtf8(), RCCResourceLibrary::useNameSpace(), QCommandLineParser::value(), RCCResourceLibrary::verbose(), QIODevice::write(), writeDepFile(), QIODeviceBase::WriteOnly, and RCCResourceLibrary::Zstd.

Referenced by main().

+ Here is the caller graph for this function:

◆ writeDepFile()

void writeDepFile ( QIODevice & iodev,
const QStringList & depsList,
const QString & targetName )

Definition at line 94 of file main.cpp.

References i, makefileEscape(), out, and qPrintable.

Referenced by runRcc().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: