KDDockWidgets API Documentation 2.1
|
#include "Config.h"
#include "qtwidgets/ViewFactory.h"
#include "core/MainWindow.h"
#include "core/DockWidget.h"
#include "core/Platform.h"
#include <QDebug>
#include <QString>
#include <QApplication>
#include <QCommandLineParser>
#include <QDir>
#include <QFileInfo>
#include <QTimer>
#include "nlohmann/json.hpp"
Go to the source code of this file.
Functions | |
void | from_json (const nlohmann::json &j, LinterConfig &ls) |
void | from_json (const nlohmann::json &j, LinterConfig::MainWindow &mw) |
static bool | lint (const QString &filename, LinterConfig config, bool isVerbose) |
int | main (int argc, char *argv[]) |
LinterConfig | requestedLinterConfig (const QCommandLineParser &parser, const QString &configFile) |
Variables | |
static bool | s_isVerbose = false |
|
inline |
Definition at line 60 of file layoutlinter_main.cpp.
|
inline |
Definition at line 53 of file layoutlinter_main.cpp.
References KDDockWidgets::Core::MainWindow::options().
Referenced by requestedLinterConfig().
|
static |
Definition at line 98 of file layoutlinter_main.cpp.
References KDDockWidgets::Core::View::asDockWidgetController(), KDDockWidgets::Core::ViewFactory::createDockWidget(), QString::fromStdString(), KDDockWidgets::Core::Platform::instance(), KDDockWidgets::LayoutSaver::restoreFromFile(), KDDockWidgets::Config::self(), KDDockWidgets::Config::setDockWidgetFactoryFunc(), KDDockWidgets::Config::setMainWindowFactoryFunc(), and KDDockWidgets::Config::viewFactory().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 133 of file layoutlinter_main.cpp.
References QCommandLineParser::addHelpOption(), QCommandLineParser::addOption(), QCommandLineParser::addPositionalArgument(), QApplication::exec(), QString::fromStdString(), KDDockWidgets::Core::Platform::frontendTypes(), KDDockWidgets::initFrontend(), QByteArray::isEmpty(), QCommandLineParser::isSet(), lint(), QCommandLineParser::process(), requestedLinterConfig(), s_isVerbose, KDDockWidgets::Config::self(), KDDockWidgets::LayoutSaver::serializeLayout(), QCommandLineParser::setApplicationDescription(), KDDockWidgets::Config::setLayoutSaverStrictMode(), QTimer::singleShot, and QCommandLineParser::value().
LinterConfig requestedLinterConfig | ( | const QCommandLineParser & | parser, |
const QString & | configFile | ||
) |
Definition at line 67 of file layoutlinter_main.cpp.
References from_json(), QString::isEmpty(), QFile::open(), QCommandLineParser::positionalArguments(), QIODevice::readAll(), QIODevice::ReadOnly, and QDir::setCurrent().
Referenced by main().
|
static |
Definition at line 32 of file layoutlinter_main.cpp.
Referenced by main().