umbrello: umbrello/main.cpp File Reference

umbrello 2.32.3 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>`

## Macros
#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

## ◆ 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

  args | The command line arguments given.
  exportOpt | A list containing all the "export" arguments given.

## ◆ getFiles()

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

getFiles

Parameters

  files |
  path |
  filters |

## ◆ 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

  args | The command line arguments given.

## ◆ main()

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

## ◆ 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

  args | The command line arguments given.

Returns
  True if the GUI should be shown, false otherwise.