umbrello 2.34.70-5524f40e1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
Macros | Functions
main.cpp File Reference
#include "debug_utils.h"
#include "uml.h"
#include "version.h"
#include "umldoc.h"
#include "cmdlineexportallviewsevent.h"
#include "umlviewimageexportermodel.h"
#include "umbrellosettings.h"
#include <kaboutdata.h>
#include <kapplication.h>
#include <kcmdlineargs.h>
#include <kconfig.h>
#include <KLocalizedString>
#include <ktip.h>
#include <KUrl>
#include <stdio.h>
Include dependency graph for main.cpp:

Macros

#define DBG_SRC   QLatin1String("main")
 
#define i18n   ki18n
 

Functions

void getFiles (QStringList &files, const QString &path, QStringList &filters)
 getFiles More...
 
bool showGUI (KCmdLineArgs *args)
 
void initDocument (KCmdLineArgs *args, Uml::ProgrammingLanguage::Enum progLang)
 
void exportAllViews (KCmdLineArgs *args, const QStringList &exportOpt)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ DBG_SRC

#define DBG_SRC   QLatin1String("main")

◆ i18n

#define i18n   ki18n

Function Documentation

◆ exportAllViews()

void exportAllViews ( KCmdLineArgs *  args,
const QStringList &  exportOpt 
)

Export all the views in the document using the command line args set by the user. Errors that occurred while exporting, if any, are shown using uError().

Parameters
argsThe command line arguments given.
exportOptA list containing all the "export" arguments given.
Here is the call graph for this function:

◆ getFiles()

void getFiles ( QStringList &  files,
const QString &  path,
QStringList &  filters 
)

getFiles

Parameters
files
path
filters
Here is the call graph for this function:

◆ initDocument()

void initDocument ( KCmdLineArgs *  args,
Uml::ProgrammingLanguage::Enum  progLang 
)

Initializes the document used by the application. If a file was specified in command line arguments, opens that file. Else, it opens the last opened file, or a new file if there isn't any "last file used" in the configuration.

Parameters
argsThe command line arguments given.
progLangThe programming language to set if no existing file was opened.
Here is the call graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:

◆ showGUI()

bool showGUI ( KCmdLineArgs *  args)

Determines if the application GUI should be shown based on command line arguments.

Todo:
Add options to use the documentation generators from command line.
Parameters
argsThe command line arguments given.
Returns
True if the GUI should be shown, false otherwise.