umbrello  2.30.90
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
codeviewerdialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  * This program is free software; you can redistribute it and/or modify *
3  * it under the terms of the GNU General Public License as published by *
4  * the Free Software Foundation; either version 2 of the License, or *
5  * (at your option) any later version. *
6  * *
7  * copyright (C) 2003-2020 *
8  * Brian Thomas <brian.thomas@gsfc.nasa.gov> *
9  * copyright (C) 2004-2020 *
10  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
11  ***************************************************************************/
12 
13 #ifndef CODEVIEWERDIALOG_H
14 #define CODEVIEWERDIALOG_H
15 
16 #include "codeviewerstate.h"
17 #include "ui_codeviewerdialogbase.h"
18 #include "singlepagedialogbase.h"
19 
20 class CodeDocument;
21 
27 class CodeViewerDialog : public SinglePageDialogBase, private Ui::CodeViewerDialogBase
28 {
29  Q_OBJECT
30 public:
31 
33 
35 
37 
38  void addCodeDocument(CodeDocument * doc);
39 
40 protected:
41 
42  bool close ();
43 
44 private:
45 
46  friend class CodeEditor;
47 
49 
50  void initGUI();
51 
52 public slots:
53 
54 protected slots:
55 
56  virtual void languageChange();
57 
58 };
59 
60 
61 #endif // CODEVIEWERDIALOG_H
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:288
CodeViewerDialog::CodeViewerDialog
CodeViewerDialog(QWidget *parent, CodeDocument *doc, Settings::CodeViewerState state)
Definition: codeviewerdialog.cpp:28
Settings::CodeViewerState::showHiddenBlocks
bool showHiddenBlocks
Definition: codeviewerstate.h:43
CodeViewerDialog::addCodeDocument
void addCodeDocument(CodeDocument *doc)
Definition: codeviewerdialog.cpp:58
codeviewerdialog.h
SinglePageDialogBase
Definition: singlepagedialogbase.h:34
singlepagedialogbase.h
CodeDocument::getFileExtension
QString getFileExtension() const
Definition: codedocument.cpp:82
CodeDocument
Definition: codedocument.h:32
Settings::CodeViewerState::height
int height
Definition: codeviewerstate.h:41
Uml::ProgrammingLanguage::toString
QString toString(Enum item)
Definition: basictypes.cpp:890
CodeViewerDialog::close
bool close()
Definition: codeviewerdialog.cpp:78
i18n
#define i18n
Definition: main.cpp:39
classifiercodedocument.h
Settings::CodeViewerState::width
int width
Definition: codeviewerstate.h:42
uDebug
#define uDebug()
Definition: debug_utils.h:122
CodeViewerDialog::m_state
Settings::CodeViewerState m_state
Definition: codeviewerdialog.h:48
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:269
CodeViewerDialog::CodeEditor
friend class CodeEditor
Definition: codeviewerdialog.h:46
Settings::CodeViewerState::blocksAreHighlighted
bool blocksAreHighlighted
Definition: codeviewerstate.h:44
codeeditor.h
CodeViewerDialog
Definition: codeviewerdialog.h:27
codedocument.h
CodeViewerDialog::initGUI
void initGUI()
Definition: codeviewerdialog.cpp:44
CodeEditor
Definition: codeeditor.h:70
CodeViewerDialog::state
Settings::CodeViewerState state()
Definition: codeviewerdialog.cpp:73
CodeDocument::getFileName
QString getFileName() const
Definition: codedocument.cpp:63
CodeViewerDialog::languageChange
virtual void languageChange()
Definition: codeviewerdialog.cpp:95
uml.h
debug_utils.h
codeviewerstate.h
UMLApp::activeLanguage
Uml::ProgrammingLanguage::Enum activeLanguage() const
Definition: uml.cpp:2509
Settings::CodeViewerState
configurable params for the code viewer tool
Definition: codeviewerstate.h:28
CodeViewerDialog::~CodeViewerDialog
~CodeViewerDialog()
Definition: codeviewerdialog.cpp:39