id
int64
0
755k
file_name
stringlengths
3
109
file_path
stringlengths
13
185
content
stringlengths
31
9.38M
size
int64
31
9.38M
language
stringclasses
1 value
extension
stringclasses
11 values
total_lines
int64
1
340k
avg_line_length
float64
2.18
149k
max_line_length
int64
7
2.22M
alphanum_fraction
float64
0
1
repo_name
stringlengths
6
65
repo_stars
int64
100
47.3k
repo_forks
int64
0
12k
repo_open_issues
int64
0
3.4k
repo_license
stringclasses
9 values
repo_extraction_date
stringclasses
92 values
exact_duplicates_redpajama
bool
2 classes
near_duplicates_redpajama
bool
2 classes
exact_duplicates_githubcode
bool
2 classes
exact_duplicates_stackv2
bool
1 class
exact_duplicates_stackv1
bool
2 classes
near_duplicates_githubcode
bool
2 classes
near_duplicates_stackv1
bool
2 classes
near_duplicates_stackv2
bool
1 class
749,774
worktoolbar.h
KDE_umbrello/umbrello/worktoolbar.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef WORKTOOLBAR_H #define WORKTOOLBAR_H #include "basictypes.h" #include <ktoolbar.h> #include <QCursor> #include <QMap> #include <QPixmap> class QMainWindow; class KAction; /** * This is the toolbar that is displayed on the right-hand side of the program * window. For each type of diagram it will change to suit that document. * * To add a new tool button do the following: * - create a button pixmap (symbol) * - create a cursor pixmap * - add an element to the ToolBar_Buttons enum * - adjust function loadPixmaps * - adjust function slotCheckToolBar * * @short The toolbar that is different for each type of diagram. * @author Paul Hensgen <phensgen@techie.com> * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class WorkToolBar : public KToolBar { Q_OBJECT Q_ENUMS(ToolBar_Buttons) public: explicit WorkToolBar(QMainWindow *parentWindow); ~WorkToolBar(); void setOldTool(); void setDefaultTool(); void setupActions(); /** * Enumeration of all available toolbar buttons. */ enum ToolBar_Buttons { tbb_Undefined = -1, tbb_Arrow, tbb_Generalization, tbb_Aggregation, tbb_Dependency, tbb_Association, tbb_Containment, tbb_Coll_Mesg_Sync, tbb_Coll_Mesg_Async, tbb_Seq_Message_Creation, tbb_Seq_Message_Destroy, tbb_Seq_Message_Synchronous, tbb_Seq_Message_Asynchronous, tbb_Seq_Message_Found, tbb_Seq_Message_Lost, tbb_Seq_Combined_Fragment, tbb_Seq_Precondition, tbb_Composition, tbb_Relationship, tbb_UniAssociation, tbb_State_Transition, tbb_Activity_Transition, tbb_Send_Signal, tbb_Accept_Signal, tbb_Accept_Time_Event, tbb_Anchor, //keep anchor as last association until code uses better algorithm for testing tbb_Note, tbb_Box, tbb_Text, tbb_Actor, tbb_UseCase, tbb_Class, tbb_Interface, tbb_Interface_Provider, tbb_Interface_Requirement, tbb_Datatype, tbb_Enum, tbb_Entity, tbb_Package, tbb_Component, tbb_Node, tbb_Artifact, tbb_Object, tbb_Initial_State, tbb_State, tbb_Region, tbb_End_State, tbb_Initial_Activity, tbb_Activity, tbb_End_Activity, tbb_Final_Activity, tbb_Pin, tbb_Port, tbb_Branch, tbb_Fork, tbb_DeepHistory, tbb_ShallowHistory, tbb_StateFork, tbb_StateJoin, tbb_Junction, tbb_Choice, tbb_Andline, tbb_Exception, tbb_Object_Node, tbb_PrePostCondition, tbb_Category, tbb_Category2Parent, tbb_Child2Category, tbb_Instance, tbb_SubSystem }; private: typedef QMap<Uml::DiagramType::Enum, ToolBar_Buttons> OldToolMap; typedef QMap<ToolBar_Buttons, QCursor> CursorMap; typedef QMap<ToolBar_Buttons, QAction*> ActionsMap; ToolBar_Buttons m_CurrentButtonID; OldToolMap m_map; Uml::DiagramType::Enum m_Type; CursorMap m_cursors; ActionsMap m_actions; void loadPixmaps(); QCursor currentCursor(); QCursor defaultCursor(); QAction* insertHotBtn(ToolBar_Buttons tbb); void insertBasicAssociations(); Q_SIGNALS: void sigButtonChanged(int); public Q_SLOTS: void slotCheckToolBar(Uml::DiagramType::Enum dt); void buttonChanged(int b); void slotResetToolBar(); /** * These slots are triggered by the buttons. They call buttonChanged with * the button id */ void slotArrow(); void slotGeneralization(); void slotAggregation(); void slotDependency(); void slotAssociation(); void slotContainment(); void slotColl_Mesg_Sync(); void slotColl_Mesg_Async(); void slotSeq_Message_Creation(); void slotSeq_Message_Destroy(); void slotSeq_Message_Synchronous(); void slotSeq_Message_Asynchronous(); void slotSeq_Message_Found(); void slotSeq_Message_Lost(); void slotSeq_Combined_Fragment(); void slotSeq_Precondition(); void slotComposition(); void slotRelationship(); void slotUniAssociation(); void slotState_Transition(); void slotActivity_Transition(); void slotAnchor(); // keep anchor as last association until code uses better algorithm for testing void slotNote(); void slotBox(); void slotText(); void slotActor(); void slotUseCase(); void slotClass(); void slotInterface(); void slotInterfaceProvider(); void slotInterfaceRequired(); void slotDatatype(); void slotEnum(); void slotEntity(); void slotPackage(); void slotComponent(); void slotNode(); void slotArtifact(); void slotObject(); void slotRegion(); void slotInitial_State(); void slotState(); void slotEnd_State(); void slotInitial_Activity(); void slotActivity(); void slotEnd_Activity(); void slotFinal_Activity(); void slotBranch(); void slotSend_Signal(); void slotAccept_Signal(); void slotAccept_Time_Event(); void slotFork(); void slotDeepHistory(); void slotShallowHistory(); void slotStateJoin(); void slotStateFork(); void slotJunction(); void slotChoice(); void slotAndline(); void slotException(); void slotPrePostCondition(); void slotPin(); void slotPort(); void slotObject_Node(); void slotCategory(); void slotCategory2Parent(); void slotChild2Category(); void slotInstance(); void slotSubsystem(); }; #endif
5,937
C++
.h
208
22.644231
102
0.661703
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,775
object_factory.h
KDE_umbrello/umbrello/object_factory.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2006-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef OBJECT_FACTORY__H #define OBJECT_FACTORY__H #include "umlobject.h" #include <QString> class UMLPackage; class UMLClassifier; class UMLClassifierListItem; class UMLAttribute; class UMLOperation; namespace Object_Factory { UMLObject* createUMLObject(UMLObject::ObjectType type, const QString &n = QString(), UMLPackage *parentPkg = nullptr, bool solicitNewName = true); UMLObject* createNewUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool undoable = true); UMLClassifierListItem* createChildObject(UMLClassifier *parent, UMLObject::ObjectType type, const QString& name = QString()); UMLAttribute *createAttribute(UMLObject *parent, const QString& name, UMLObject *type = nullptr); UMLOperation *createOperation(UMLClassifier *parent, const QString& name); void assignUniqueIdOnCreation(bool yesno); bool assignUniqueIdOnCreation(); UMLObject* makeObjectFromXMI(const QString& xmiTag, const QString& stereoID = QString()); } #endif
1,445
C++
.h
34
31.676471
92
0.637079
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,776
umllistviewitemlist.h
KDE_umbrello/umbrello/umllistviewitemlist.h
/* SPDX-FileCopyrightText: 2001 Gustavo Madrigal < gmadrigal@nextphere.com> SPDX-License-Identifier: GPL-2.0-or-later Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ #ifndef UMLLISTVIEWITEMLIST_H #define UMLLISTVIEWITEMLIST_H #include <QList> class UMLListViewItem; typedef QList<UMLListViewItem*> UMLListViewItemList; typedef QListIterator<UMLListViewItem*> UMLListViewItemListIt; #endif
429
C++
.h
12
33.333333
76
0.820388
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,777
uml.h
KDE_umbrello/umbrello/uml.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2022 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UML_H #define UML_H #include "basictypes.h" #include "multipagedialogbase.h" // kde includes #include <kxmlguiwindow.h> #include <ksharedconfig.h> // qt includes #include <QPointer> #include <QUrl> // forward declaration of the UML classes class BirdView; class BirdViewDockWidget; class CodeDocument; class CodeGenerator; class CodeGenerationPolicy; class CodeGenPolicyExt; class DocWindow; class UMLAppPrivate; class UMLClassifier; class UMLDoc; class UMLListView; class UMLView; class WorkToolBar; class SettingsDialog; class UMLViewImageExporterAll; class RefactoringAssistant; class XhtmlGenerator; class StatusBarToolButton; class DiagramPrintPage; // KDE forward declarations class KActionMenu; class KRecentFilesAction; class KToggleAction; class KTabWidget; class QMenu; class KAction; // Qt forward declarations class QStackedWidget; class QToolButton; class QDockWidget; class QVBoxLayout; class QKeyEvent; class QMenu; class QMimeData; class QPrinter; class QUndoCommand; class QUndoView; class QUndoStack; class QPushButton; class QLabel; class QListWidget; class QSlider; /** * The base class for UML application windows. It sets up the main * window and reads the config file as well as providing a menubar, toolbar * and statusbar. A list of UMLView instances creates the center views, which are connected * to the window's Doc object. The handling of views is realized with two different widgets: * - stack widget * - tab widget * The current view handling is set as an option. * UMLApp reimplements the methods that KMainWindow provides for main window handling and supports * full session management as well as using KActions. * * @see KMainWindow * @see KApplication * @see KConfig * * @author Paul Hensgen <phensgen@techie.com> * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class UMLApp : public KXmlGuiWindow { Q_OBJECT public: explicit UMLApp(QWidget *parent = nullptr); ~UMLApp(); void setup(); static UMLApp* app(); void openDocumentFile(const QUrl& url=QUrl()); void newDocument(); UMLDoc *document() const; UMLListView* listView() const; WorkToolBar* workToolBar() const; DocWindow * docWindow() const; QListWidget *logWindow() const; bool logToConsole() const; void log(const QString& s); void logDebug(const QString& s); void logInfo(const QString& s); void logWarn(const QString& s); void logError(const QString& s); QCursor defaultCursor() const; void setModified(bool _m); void enablePrint(bool enable); bool isPasteState() const; bool isCutCopyState() const; bool isUndoEnabled() const; void enableUndo(bool enable); bool isUndoActionEnabled() const; void enableUndoAction(bool enable); bool isRedoActionEnabled() const; void enableRedoAction(bool enable); bool isSimpleCodeGeneratorActive() const; void setGenerator(CodeGenerator* gen, bool giveWarning = true); CodeGenerator* setGenerator(Uml::ProgrammingLanguage::Enum pl); CodeGenerator* generator() const; CodeGenerator* createGenerator(); void initGenerator(); void refactor(UMLClassifier* classifier); void viewCodeDocument(UMLClassifier* classifier); void setDiagramMenuItemsState(bool bState); QWidget* mainViewWidget() const; void setCurrentView(UMLView* view, bool updateTreeView = true); UMLView* currentView() const; void setImageMimeType(const QString& mimeType); QString imageMimeType() const; bool editCutCopy(bool bFromView); QTabWidget *tabWidget(); QString statusBarMsg() const; CodeGenerationPolicy *commonPolicy() const; void setPolicyExt(CodeGenPolicyExt *policy); CodeGenPolicyExt *policyExt() const; void clearUndoStack(); void undo(); void redo(); void executeCommand(QUndoCommand* cmd); void beginMacro(const QString & text); void endMacro(); void setActiveLanguage(Uml::ProgrammingLanguage::Enum pl); Uml::ProgrammingLanguage::Enum activeLanguage() const; Uml::ProgrammingLanguage::Enum defaultLanguage() const; bool activeLanguageIsCaseSensitive() const; QString activeLanguageScopeSeparator() const; KConfig* config(); void importFiles(QStringList& fileList, const QString &rootPath = QString()); static bool shuttingDown(); protected: virtual void keyPressEvent(QKeyEvent* e); virtual void keyReleaseEvent(QKeyEvent* e); virtual void customEvent(QEvent* e); void handleCursorKeyReleaseEvent(QKeyEvent* e); void saveOptions(); void readOptions(); void initActions(); void initStatusBar(); void initView(); virtual bool queryClose(); virtual void saveProperties(KConfigGroup & cfg); virtual void readProperties(const KConfigGroup & cfg); void updateLangSelectMenu(Uml::ProgrammingLanguage::Enum activeLanguage); public Q_SLOTS: void slotExecGenerationWizard(); void slotImportingWizard(); void slotFileNew(); void slotFileOpen(); void slotFileOpenRecent(const QUrl& url); void slotFileSave(); bool slotFileSaveAs(); void slotFileClose(); bool slotPrintSettings(); void slotPrintPreview(); void slotPrintPreviewPaintRequested(QPrinter *printer); void slotFilePrint(); void slotFileQuit(); void slotFileExportDocbook(); void slotFileExportXhtml(); void slotFind(); void slotFindNext(); void slotFindPrevious(); void slotEditCut(); void slotEditCopy(); void slotEditPaste(); void slotStatusMsg(const QString &text); void slotClassDiagram(); void slotObjectDiagram(); void slotSequenceDiagram(); void slotCollaborationDiagram(); void slotUseCaseDiagram(); void slotStateDiagram(); void slotActivityDiagram(); void slotComponentDiagram(); void slotDeploymentDiagram(); void slotEntityRelationshipDiagram(); void slotAlignLeft(); void slotAlignRight(); void slotAlignTop(); void slotAlignBottom(); void slotAlignVerticalMiddle(); void slotAlignHorizontalMiddle(); void slotAlignVerticalDistribute(); void slotAlignHorizontalDistribute(); void slotClipDataChanged(); void slotCopyChanged(); void slotPrefs(MultiPageDialogBase::PageType page = MultiPageDialogBase::GeneralPage); void slotApplyPrefs(); void slotImportClass(); void slotImportProject(); void slotUpdateViews(); void slotShowTreeView(bool state); void slotShowDebugView(bool state); void slotShowDocumentationView(bool state); void slotShowCmdHistoryView(bool state); void slotShowLogView(bool state); void slotShowBirdView(bool state); void slotCurrentViewClearDiagram(); void slotCurrentViewToggleSnapToGrid(); void slotCurrentViewToggleShowGrid(); void slotCurrentViewExportImage(); void slotViewsExportImages(); void slotCurrentProperties(); void slotClassWizard(); void slotAddDefaultDatatypes(); void slotCurrentViewChanged(); void slotSnapToGridToggled(bool gridOn); void slotShowGridToggled(bool gridOn); void slotSelectAll(); void slotDeleteSelected(); void slotDeleteDiagram(); void slotCloseDiagram(int index); void slotGenerateAllCode(); void slotSetZoom(QAction* action); void slotZoomSliderMoved(int value); void slotZoomFit(); void slotZoom100(); void slotZoomOut(); void slotZoomIn(); void slotBirdViewChanged(const QPointF& newCenter); void setupZoomMenu(); void slotEditUndo(); void slotEditRedo(); void slotTabChanged(int index); void slotChangeTabLeft(); void slotChangeTabRight(); void slotMoveTabLeft(); void slotMoveTabRight(); void slotXhtmlDocGenerationFinished(bool status); bool slotOpenFileInEditor(const QUrl &file, int startCursor = 0, int endCursor = 0); private Q_SLOTS: void setLang_actionscript(); void setLang_ada(); void setLang_cpp(); void setLang_csharp(); void setLang_d(); void setLang_idl(); void setLang_java(); void setLang_javascript(); void setLang_mysql(); void setLang_pascal(); void setLang_perl(); void setLang_php(); void setLang_php5(); void setLang_postgresql(); void setLang_python(); void setLang_ruby(); void setLang_sql(); void setLang_tcl(); void setLang_vala(); void setLang_xmlschema(); void setLang_none(); void slotDiagramPopupMenu(const QPoint& point); private: static UMLApp* s_instance; ///< The last created instance of this class. UMLAppPrivate *m_d; QMenu* findMenu(const QString &name); QAction* createZoomAction(int zoom, int currentZoom); void setZoom(int zoom, bool withView = true); void resetStatusMsg(); void setProgLangAction(Uml::ProgrammingLanguage::Enum pl, const char* name, const char* action); static bool canDecode(const QMimeData* mimeSource); void readOptionState() const; void initClip(); void initSavedCodeGenerators(); void createDiagram(Uml::DiagramType::Enum type); void createBirdView(UMLView* view); QMenu* m_langSelect; ///< For selecting the active language. QMenu* m_zoomSelect; ///< Popup menu for zoom selection. Uml::ProgrammingLanguage::Enum m_activeLanguage; ///< Active language. CodeGenerator* m_codegen; ///< Active code generator. CodeGenerationPolicy* m_commoncodegenpolicy; CodeGenPolicyExt* m_policyext; ///< Active policy extension. // Only used for new code generators ({Cpp, Java, Ruby, D}CodeGenerator). KSharedConfigPtr m_config; ///< The configuration object of the application. /** * View is the main widget which represents your working area. * The View class should handle all events of the view widget. * It is kept empty so you can create your view according to your * application's needs by changing the view class. */ QPointer<UMLView> m_view; /** * Doc represents your actual document and is created only once. * It keeps information such as filename and does the loading and * saving of your files. */ UMLDoc* m_doc; UMLListView* m_listView; ///< Listview shows the current open file. QDockWidget* m_mainDock; ///< The widget which shows the diagrams. QDockWidget* m_listDock; ///< Contains the UMLListView tree view. QDockWidget* m_debugDock; ///< Contains the debug DocWindow widget. QDockWidget* m_documentationDock; ///< Contains the documentation DocWindow widget. QDockWidget* m_cmdHistoryDock; ///< Contains the undo/redo viewer widget. QDockWidget* m_propertyDock; ///< Contains the property browser widget. QDockWidget* m_logDock; ///< Contains the log window widget. BirdViewDockWidget* m_birdViewDock;///< Contains the bird's eye view DocWindow* m_docWindow; ///< Documentation window. BirdView* m_birdView; ///< Bird View window QUndoView* m_pQUndoView; ///< Undo / Redo Viewer RefactoringAssistant* m_refactoringAssist; ///< Refactoring assistant. // KAction pointers to enable/disable actions KRecentFilesAction* fileOpenRecent; QAction* printPreview; QAction* filePrint; QAction* editCut; QAction* editCopy; QAction* editPaste; QAction* editUndo; QAction* editRedo; QAction* viewShowTree; QAction* viewShowDebug; QAction* viewShowDoc; QAction* viewShowLog; QAction* viewShowCmdHistory; QAction* viewShowBirdView; KActionMenu* newDiagram; QAction* viewClearDiagram; KToggleAction* viewSnapToGrid; KToggleAction* viewShowGrid; QAction* viewExportImage; QAction* viewProperties; QAction* zoom100Action; QAction* m_langAct[Uml::ProgrammingLanguage::Reserved + 1]; QAction* deleteSelectedWidget; QAction* deleteDiagram; QToolButton* m_newSessionButton; WorkToolBar* m_toolsbar; QTimer* m_clipTimer; QTimer* m_copyTimer; bool m_loading; ///< True if the application is opening an existing document. /** * Shows, and is parent of, all the UMLViews (diagrams) * if tabbed diagrams are not enabled. */ QStackedWidget* m_viewStack; /** * Shows, and is parent of, all the UMLViews (diagrams) * if tabbed diagrams are enabled. */ QTabWidget* m_tabWidget; /** * Layout supports the dynamic management of the diagram representation (tabbed/stacked) * if tabbed diagrams is enabled it contains m_tabWidget * if tabbed diagrams is disabled it contains m_viewStack */ QVBoxLayout* m_layout; QString m_imageMimeType; ///< Default mime type to use for image export. SettingsDialog* m_settingsDialog; ///< The global UML settings dialog. UMLViewImageExporterAll* m_imageExporterAll; ///< Used to export all the views. /** * Statusbar items */ QLabel* m_zoomValueLbl; QWidget* m_defaultZoomWdg; QPushButton* m_pZoomOutPB; QPushButton* m_pZoomInPB; StatusBarToolButton* m_pZoomFitSBTB; StatusBarToolButton* m_pZoomFullSBTB; QSlider* m_pZoomSlider; QLabel* m_statusBarMessage; /** * The running XHTML documentation generator. Null when no generation is running. */ XhtmlGenerator* m_xhtmlGenerator; QUndoStack* m_pUndoStack; ///< UndoStack used to store actions, to provide Undo/Redo feature. bool m_undoEnabled; ///< Undo enabled flag bool m_hasBegunMacro; ///< Macro creation flag. QPointer<DiagramPrintPage> m_printSettings; ///< printer diagram settings QPrinter *m_printer; ///< print instance static bool s_shuttingDown; Q_SIGNALS: void sigCutSuccessful(); friend class UMLAppPrivate; friend class UMLView; }; #define logDebug0(s) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \ UMLApp::app()->logDebug(QStringLiteral(s)) #define logInfo0(s) UMLApp::app()->logInfo(QStringLiteral(s)) #define logWarn0(s) UMLApp::app()->logWarn(QStringLiteral(s)) #define logError0(s) UMLApp::app()->logError(QStringLiteral(s)) #define logDebug1(s, a) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \ do { QString fmt = QString(QStringLiteral(s)).arg(a); UMLApp::app()->logDebug(fmt); } while (0) #define logInfo1(s, a) do { QString fmt = QString(QStringLiteral(s)).arg(a); UMLApp::app()->logInfo(fmt); } while (0) #define logWarn1(s, a) do { QString fmt = QString(QStringLiteral(s)).arg(a); UMLApp::app()->logWarn(fmt); } while (0) #define logError1(s, a) do { QString fmt = QString(QStringLiteral(s)).arg(a); UMLApp::app()->logError(fmt); } while (0) #define logDebug2(s, a, b) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \ do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b); UMLApp::app()->logDebug(fmt); } while (0) #define logInfo2(s, a, b) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b); UMLApp::app()->logInfo(fmt); } while (0) #define logWarn2(s, a, b) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b); UMLApp::app()->logWarn(fmt); } while (0) #define logError2(s, a, b) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b); UMLApp::app()->logError(fmt); } while (0) #define logDebug3(s, a, b, c) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \ do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c); UMLApp::app()->logDebug(fmt); } while (0) #define logInfo3(s, a, b, c) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c); UMLApp::app()->logInfo(fmt); } while (0) #define logWarn3(s, a, b, c) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c); UMLApp::app()->logWarn(fmt); } while (0) #define logError3(s, a, b, c) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c); UMLApp::app()->logError(fmt); } while (0) #define logDebug4(s, a, b, c, d) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \ do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c).arg(d); UMLApp::app()->logDebug(fmt); } while (0) #define logInfo4(s, a, b, c, d) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c).arg(d); UMLApp::app()->logInfo(fmt); } while (0) #define logWarn4(s, a, b, c, d) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c).arg(d); UMLApp::app()->logWarn(fmt); } while (0) #define logError4(s, a, b, c, d) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c).arg(d); UMLApp::app()->logError(fmt); } while (0) #define logDebug5(s, a, b, c, d, e) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \ do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c).arg(d).arg(e); \ UMLApp::app()->logDebug(fmt); } while (0) #define logInfo5(s, a, b, c, d, e) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c).arg(d).arg(e); \ UMLApp::app()->logInfo(fmt); } while (0) #define logWarn5(s, a, b, c, d, e) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c).arg(d).arg(e); \ UMLApp::app()->logWarn(fmt); } while (0) #define logError5(s, a, b, c, d, e) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c).arg(d).arg(e); \ UMLApp::app()->logError(fmt); } while (0) #define logDebug6(s, a, b, c, d, e, f) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \ do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c).arg(d).arg(e).arg(f); UMLApp::app()->logDebug(fmt); } while (0) #endif // UML_H
18,228
C++
.h
425
37.898824
149
0.701514
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,778
toolbarstate.h
KDE_umbrello/umbrello/toolbarstate.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2004-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef TOOLBARSTATE_H #define TOOLBARSTATE_H #include <QEvent> #include <QObject> #include <QPointF> class AssociationWidget; class FloatingDashLineWidget; class MessageWidget; class QGraphicsSceneMouseEvent; class UMLScene; class UMLWidget; /** * Base class for toolbar states. * All toolbar states inherit directly or indirectly from this class. Toolbar * states represent tools that work with the diagram (for example, to create * widgets, make associations...). All the mouse events received in the diagram * are delivered to the toolbar state currently active. The events are handled * in the tool and it executes the needed actions. * * All the mouse event handlers can be overridden in subclasses. However, the * behaviour of the main handlers shouldn't be modified (apart from extend it, * that is, call the base implementation before any other actions in the derived * method). * * In order to handle the events, each main handler has three protected * "sub-handlers" named like the main handler with the suffixes "Association", * "Widget" and "Empty". The events received in the main handlers are delivered * to the suitable handler, depending on if the event happened on an association, * on a widget or on an empty space of the diagram. Those methods are the ones to * override or extend to specify the behaviour of the toolbar state. * * The mouse events received in main handlers are tweaked to use the inverse * position. The modified event is saved in m_pMouseEvent. This is the event that * must be used everywhere. * * The association or widget that will receive the events is set in press event. * How they are set can be tweaked in subclasses overriding setCurrentElement(). * Once a press event happens, all the mouse events and the release event are sent * to the same widget or association. Mouse events are delivered only when mouse * tracking is enabled. It is enabled in press event, and disabled in release * event. Also, it is disabled in the toolbar state initialization. Additionally, * it can be enabled or disabled in other situations by subclasses if needed. * * After handling a release event, the tool is changed if needed. Default * implementation sets the default tool if the button released was the right * button. Subclasses can override this behaviour if needed. * * When a toolbar state is selected, method init is called to revert its state * to the initial. Subclasses should extend that method as needed. Also, method * cleanBeforeChange() is called before changing it to the new tool. Subclasses * should extend that method as needed. * * @todo Handle, for example, left press, right press, left release, right * release and other similar strange combinations? */ class ToolBarState: public QObject { Q_OBJECT public: virtual ~ToolBarState(); virtual void init(); virtual void cleanBeforeChange(); virtual void mousePress(QGraphicsSceneMouseEvent* ome); virtual void mouseRelease(QGraphicsSceneMouseEvent* ome); virtual void mouseDoubleClick(QGraphicsSceneMouseEvent* ome); virtual void mouseMove(QGraphicsSceneMouseEvent* ome); public Q_SLOTS: virtual void slotAssociationRemoved(AssociationWidget* association); virtual void slotWidgetRemoved(UMLWidget* widget); Q_SIGNALS: // signals finish of operation void finished(); protected: ToolBarState(UMLScene* umlScene); virtual void setCurrentElement(); virtual void mousePressAssociation(); virtual void mousePressWidget(); virtual void mousePressEmpty(); virtual void mouseReleaseAssociation(); virtual void mouseReleaseWidget(); virtual void mouseReleaseEmpty(); virtual void mouseDoubleClickAssociation(); virtual void mouseDoubleClickWidget(); virtual void mouseDoubleClickEmpty(); virtual void mouseMoveAssociation(); virtual void mouseMoveWidget(); virtual void mouseMoveEmpty(); virtual void changeTool(); virtual UMLWidget* currentWidget() const; virtual void setCurrentWidget(UMLWidget* widget); virtual AssociationWidget* currentAssociation() const; virtual void setCurrentAssociation(AssociationWidget* association); void setMouseEvent(QGraphicsSceneMouseEvent* ome, const QEvent::Type &type); AssociationWidget* associationAt(const QPointF& pos); MessageWidget* messageAt(const QPointF& pos); FloatingDashLineWidget* floatingLineAt(const QPointF& pos); UMLScene* m_pUMLScene; ///< The UMLScene. QGraphicsSceneMouseEvent* m_pMouseEvent; ///< The mouse event currently in use. // This event is the equivalent of the received event after transforming it // using the inverse world matrix in the UMLScene. private: UMLWidget* m_currentWidget; ///< The widget currently in use, if any. AssociationWidget* m_currentAssociation; ///< The association currently in use, if any. }; #endif //TOOLBARSTATE_H
5,122
C++
.h
109
43.825688
93
0.772236
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,779
umlview.h
KDE_umbrello/umbrello/umlview.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UMLVIEW_H #define UMLVIEW_H #include <QGraphicsView> class QCloseEvent; class QHideEvent; class QShowEvent; class UMLFolder; class UMLScene; /** * UMLView instances represent views onto diagrams (scenes). * The UMLApp instance manages the visibility of UMLView instances. * The visible view (and therefore diagram) is at the top of stack. * The UMLView class inherits from QGraphicsView. * Construction of a UMLView implicitly constructs a UMLScene, i.e. * there is a one to one relation between diagram and view. * The UMLFolder instances own the UMLView instances. * * @author Paul Hensgen <phensgen@techie.com> * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class UMLView : public QGraphicsView { Q_OBJECT public: explicit UMLView(UMLFolder *parentFolder); virtual ~UMLView(); UMLScene* umlScene() const; qreal zoom() const ; void setZoom(qreal zoom); virtual bool showPropertiesDialog(QWidget *parent = nullptr); public Q_SLOTS: void zoomIn(); void zoomOut(); void show(); protected: virtual void wheelEvent(QWheelEvent* event); virtual void showEvent(QShowEvent *se); virtual void hideEvent(QHideEvent *he); virtual void mousePressEvent(QMouseEvent* event); virtual void mouseReleaseEvent(QMouseEvent* event); virtual void resizeEvent(QResizeEvent *event); }; #endif // UMLVIEW_H
1,549
C++
.h
47
29.978723
92
0.762735
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,780
file_utils.h
KDE_umbrello/umbrello/file_utils.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2020-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef FILE_UTILS_H #define FILE_UTILS_H #include <QString> namespace File_Utils { QString xmlCatalogFilePath(); } #endif // FILE_UTILS_H
292
C++
.h
11
24.090909
92
0.761733
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,781
umlviewlist.h
KDE_umbrello/umbrello/umlviewlist.h
/* SPDX-FileCopyrightText: 2001 Gustavo Madrigal <gmadrigal@nextphere.com> SPDX-License-Identifier: GPL-2.0-or-later Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ #ifndef UMLVIEWLIST_H #define UMLVIEWLIST_H //#include "umlview.h" #include <QList> #include <QPointer> class UMLView; typedef QList<QPointer<UMLView>> UMLViewList; typedef QListIterator<QPointer<UMLView>> UMLViewListIt; #endif
433
C++
.h
14
28.714286
75
0.792271
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,782
refactoringassistant.h
KDE_umbrello/umbrello/refactoring/refactoringassistant.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2003 Luis De la Parra <lparrab@gmx.net> SPDX-FileCopyrightText: 2004-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef REFACTORING_ASSISTANT_H #define REFACTORING_ASSISTANT_H #include "icon_utils.h" #include <QDropEvent> #include <QTreeWidget> class QPoint; class QMenu; class UMLObject; class UMLClassifier; class UMLClassifierListItem; class UMLDoc; class RefactoringAssistant : public QTreeWidget { Q_OBJECT public: explicit RefactoringAssistant(UMLDoc *doc, UMLClassifier *obj = nullptr, QWidget *parent = nullptr, const QString &name = QString()); virtual ~RefactoringAssistant(); void refactor(UMLClassifier *obj); Q_SIGNALS: // void moved(); public Q_SLOTS: void addBaseClassifier(); void addDerivedClassifier(); void addInterfaceImplementation(); void createOperation(); void createAttribute(); void editProperties(); void deleteItem(); void objectModified(); void operationAdded(UMLClassifierListItem *listItem); void operationRemoved(UMLClassifierListItem *listItem); void attributeAdded(UMLClassifierListItem *listItem); void attributeRemoved(UMLClassifierListItem *listItem); void itemExecuted(QTreeWidgetItem *item, int column); protected: UMLObject* findUMLObject(const QTreeWidgetItem*); QTreeWidgetItem* findListViewItem(const UMLObject *obj); void editProperties(UMLObject *obj); void deleteItem(QTreeWidgetItem *item, UMLObject *obj); void addClassifier(UMLClassifier *classifier, QTreeWidgetItem *parent = nullptr, bool addSuper = true, bool addSub = true, bool recurse = false); virtual void dragMoveEvent(QDragMoveEvent *event); virtual void dropEvent(QDropEvent *event); void setVisibilityIcon(QTreeWidgetItem *item, const UMLObject *obj); UMLClassifier * m_umlObject; UMLDoc * m_doc; QMenu * m_menu; QMap<QTreeWidgetItem*, UMLObject*> m_umlObjectMap; QSet<UMLClassifier *> m_alreadySeen; ///< recursive guard private Q_SLOTS: void showContextMenu(const QPoint&); private: QAction* createAction(const QString& text, const char * method, const Icon_Utils::IconType icon = Icon_Utils::N_ICONTYPES); }; #endif
2,384
C++
.h
59
36.508475
150
0.738884
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,783
codegenstatuspage.h
KDE_umbrello/umbrello/codegenwizard/codegenstatuspage.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002 Luis De la Parra <luis@delaparra.org> SPDX-FileCopyrightText: 2003-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef CODEGENSTATUSPAGE_H #define CODEGENSTATUSPAGE_H // app includes #include "ui_codegenstatuspage.h" #include "basictypes.h" #include "classifier.h" #include "codegenerationpolicy.h" #include "codegenerator.h" // kde includes #include <kled.h> // qt includes #include <QHBoxLayout> #include <QSpacerItem> #include <QWizardPage> /** * @author Luis De la Parra * @author Brian Thomas * @author Andi Fischer */ class CodeGenStatusPage : public QWizardPage, private Ui::CodeGenStatusPage { Q_OBJECT public: explicit CodeGenStatusPage(QWidget *parent = nullptr); ~CodeGenStatusPage(); void initializePage(); bool isComplete() const; private: bool m_generationDone; protected Q_SLOTS: void generateCode(); void classGenerated(UMLClassifier* classifier, bool generated); void classGenerated(UMLClassifier* classifier, CodeGenerator::GenerationState state); void populateStatusList(); void showFileGenerated(const QString& filename); void loggerClear(); void loggerExport(); }; class LedStatus : public QWidget { Q_OBJECT public: LedStatus(int width, int height) { setFixedSize(width, height); QHBoxLayout* layout = new QHBoxLayout(); layout->addItem(new QSpacerItem(20, 20)); m_led = new KLed(QColor(124, 252, 0), KLed::Off, KLed::Sunken, KLed::Circular); layout->addWidget(m_led); layout->addItem(new QSpacerItem(20, 20)); setLayout(layout); } ~LedStatus() {} void setColor(const QColor& color) { m_led->setColor(color); } void setOn(bool isOn) { isOn ? m_led->setState(KLed::On) : m_led->setState(KLed::Off); } private: KLed *m_led; }; #endif
1,974
C++
.h
63
26.746032
96
0.699106
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,784
codegenselectpage.h
KDE_umbrello/umbrello/codegenwizard/codegenselectpage.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2003-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef CODEGENSELECTPAGE_H #define CODEGENSELECTPAGE_H // app includes #include "ui_codegenselectpage.h" #include "umlclassifierlist.h" // qt includes #include <QWizardPage> /** * @author Luis De la Parra * @author Brian Thomas * @author Andi Fischer */ class CodeGenSelectPage : public QWizardPage, private Ui::CodeGenSelectPage { Q_OBJECT public: explicit CodeGenSelectPage(QWidget *parent = nullptr); ~CodeGenSelectPage(); void setClassifierList(UMLClassifierList *classList); bool isComplete() const; QListWidget* getSelectionListWidget(); private: static void moveSelectedItems(QListWidget* fromList, QListWidget* toList); protected Q_SLOTS: void selectClass(); void deselectClass(); }; #endif
893
C++
.h
32
25.1875
92
0.772834
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,785
codegenoptionspage.h
KDE_umbrello/umbrello/codegenwizard/codegenoptionspage.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002 Luis De la Parra <luis@delaparra.org> SPDX-FileCopyrightText: 2003-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef CODEGENOPTIONSPAGE_H #define CODEGENOPTIONSPAGE_H // app includes #include "ui_codegenoptionspage.h" #include "basictypes.h" #include "codegenerationpolicy.h" // qt includes #include <QWizardPage> class QRadioButton; class CodeGenerationPolicy; class CodeGenerationPolicyPage; /** * This class is used in the code generation wizard and * also in SettingsDialog. * * @author Luis De la Parra * @author Brian Thomas * @author Andi Fischer */ class CodeGenOptionsPage : public QWizardPage, private Ui::CodeGenOptionsPage { Q_OBJECT public: explicit CodeGenOptionsPage(QWidget *parent = nullptr); ~CodeGenOptionsPage(); QString getLanguage(); void apply(); bool save(); bool validatePage(); protected: CodeGenerationPolicy *m_parentPolicy; private: CodeGenerationPolicyPage *m_pCodePolicyPage; QRadioButton* overwriteToWidget(CodeGenerationPolicy::OverwritePolicy value); CodeGenerationPolicy::OverwritePolicy widgetToOverwrite(); static int newLineToInteger(CodeGenerationPolicy::NewLineType value); static int indentTypeToInteger(CodeGenerationPolicy::IndentationType value); void setupActiveLanguageBox(); protected Q_SLOTS: void activeLanguageChanged(int id); void updateCodeGenerationPolicyTab(); void browseClicked(); private Q_SLOTS: void changeLanguage(); Q_SIGNALS: void applyClicked(); void languageChanged(); void syncCodeDocumentsToParent(); }; #endif
1,702
C++
.h
55
27.6
92
0.779682
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,786
codegenerationwizard.h
KDE_umbrello/umbrello/codegenwizard/codegenerationwizard.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002 Luis De la Parra <luis@delaparra.org> SPDX-FileCopyrightText: 2003-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef CODEGENERATIONWIZARD_H #define CODEGENERATIONWIZARD_H // app includes #include "umlclassifierlist.h" // qt includes #include <QWizard> class QWizardPage; class QListWidget; class CodeGenSelectPage; class CodeGenOptionsPage; class CodeGenStatusPage; /** * @author Luis De la Parra * based on wizard from Paul Hensgen * @author Andi Fischer refactored and ported to QWizard */ class CodeGenerationWizard : public QWizard { Q_OBJECT public: enum {OptionsPage, SelectionPage, StatusPage}; explicit CodeGenerationWizard(UMLClassifierList *classList); ~CodeGenerationWizard(); QListWidget* getSelectionListWidget(); protected Q_SLOTS: void slotLanguageChanged(); private: QWizardPage* createSelectionPage(UMLClassifierList *classList); QWizardPage* createOptionsPage(); QWizardPage* createStatusPage(); CodeGenSelectPage *m_SelectionPage; CodeGenOptionsPage *m_OptionsPage; CodeGenStatusPage *m_StatusPage; }; #endif
1,202
C++
.h
40
27.125
92
0.793043
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,787
umlclipboard.h
KDE_umbrello/umbrello/clipboard/umlclipboard.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UMLCLIPBOARD_H #define UMLCLIPBOARD_H #include "associationwidgetlist.h" #include "umlobjectlist.h" #include "umllistviewitemlist.h" #include "umllistviewitem.h" #include "umlviewlist.h" #include "umlwidgetlist.h" class QMimeData; /** * This class manages the uml's interaction with the KDE * Clipboard. It makes possible to copy stuff from one uml * instance to another one. * * @short Clipboard management class * @author Gustavo Madrigal * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class UMLClipboard : public QObject { Q_OBJECT public: UMLClipboard(); virtual ~UMLClipboard(); bool paste(const QMimeData* data); QMimeData* copy(bool fromView = false); /// Enumeration that codes the different types of UML clips. enum UMLCopyType { clip1 = 1, ///<UMLObjects (not diagrams) clip2 = 2, ///<UMLObjects, UMLListViewItems (not diagrams) and diagrams clip3 = 3, ///<UMLListViewItems (not diagrams) clip4 = 4, ///<UMLObjects, Associations and UMLWidgets clip5 = 5 ///<Only Attributes, Operations, Templates and EnumLiterals }; private: bool pasteClip1(const QMimeData* data); bool pasteClip2(const QMimeData* data); bool pasteClip3(const QMimeData* data); bool pasteClip4(const QMimeData* data); bool pasteClip5(const QMimeData* data); UMLObjectList m_ObjectList; UMLListViewItemList m_ItemList; UMLWidgetList m_WidgetList; AssociationWidgetList m_AssociationList; UMLViewList m_ViewList; UMLCopyType m_type; ///< Type of copy operation to perform. private: void addRelatedWidgets(); void fillObjectListForWidgets(const UMLWidgetList& widgets); bool fillSelectionLists(UMLListViewItemList& selectedItems); void setCopyType(UMLListViewItemList& selectedItems); void checkItemForCopyType(UMLListViewItem* item, bool& withDiagrams, bool& withObjects, bool& onlyAttsOps); bool insertItemChildren(UMLListViewItem* item, UMLListViewItemList& selectedItems); void pasteItemAlreadyExists(); }; #endif
2,367
C++
.h
65
30.769231
92
0.715162
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,788
umldragdata.h
KDE_umbrello/umbrello/clipboard/umldragdata.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UMLDRAGDATA_H #define UMLDRAGDATA_H #include "associationwidgetlist.h" #include "basictypes.h" #include "umllistviewitem.h" #include "umllistviewitemlist.h" #include "umlobjectlist.h" #include "umlviewlist.h" #include "umlwidgetlist.h" #include <QList> #include <QMimeData> class UMLClassifier; class UMLListView; class UMLScene; class QPixmap; /** * This class provides encoding and decoding for the uml data that will be used * in a drag and drop operation or in a copy or paste operation. * * @author Gustavo Madrigal, Jonathan Riddell (XMI conversion) * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class UMLDragData : public QMimeData { Q_OBJECT public: explicit UMLDragData(UMLObjectList& Objects, QWidget *dragSource = nullptr); UMLDragData(UMLObjectList &Objects, UMLViewList& Diagrams, QWidget *dragSource = nullptr); explicit UMLDragData(UMLListViewItemList& UMLListViewItems, QWidget *dragSource = nullptr); UMLDragData(UMLObjectList& Objects, UMLWidgetList& Widgets, AssociationWidgetList& Associations, QPixmap& PngImage, UMLScene *scene, QWidget *dragSource = nullptr); UMLDragData(UMLObjectList& Objects, int, QWidget *dragSource = nullptr); explicit UMLDragData(QWidget *dragSource = nullptr); ~UMLDragData(); static bool decodeClip1(const QMimeData* mimeData, UMLObjectList& objects); static bool decodeClip2(const QMimeData* mimeData, UMLObjectList& objects, UMLViewList& diagrams); static bool decodeClip3(const QMimeData* mimeData, UMLListViewItemList& umlListViewItems, const UMLListView *parentListView= nullptr); struct LvTypeAndID { UMLListViewItem::ListViewType type; Uml::ID::Type id; }; typedef QList<LvTypeAndID*> LvTypeAndID_List; typedef QListIterator<LvTypeAndID*> LvTypeAndID_It; static bool getClip3TypeAndID(const QMimeData* mimeData, LvTypeAndID_List& typeAndIdList); static bool decodeClip4(const QMimeData* mimeData, UMLObjectList& objects, UMLWidgetList& widgets, AssociationWidgetList& associations, Uml::DiagramType::Enum & dType); static bool decodeClip5(const QMimeData* mimeData, UMLObjectList& objects, UMLClassifier *newParent); static int getCodingType(const QMimeData* mimeData); private: void setUMLDataClip1(UMLObjectList& Objects); void setUMLDataClip2(UMLObjectList& Objects, UMLViewList& Diagrams); void setUMLDataClip3(UMLListViewItemList& UMLListViewItems); void setUMLDataClip4(UMLObjectList& Objects, UMLWidgetList& WidgetDatas, AssociationWidgetList& Associations, QPixmap& PngImage, UMLScene *scene); void setUMLDataClip5(UMLObjectList& Objects); static void executeCreateWidgetCommand(UMLWidget* widget); static bool decodeObjects(QDomNode& objectsNode, UMLObjectList& objects, bool skipIfObjectExists = false); static bool decodeViews(QDomNode& umlviewsNode, UMLViewList& diagrams); }; #endif
3,427
C++
.h
73
39.082192
102
0.716005
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,789
idchangelog.h
KDE_umbrello/umbrello/clipboard/idchangelog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef IDCHANGELOG_H #define IDCHANGELOG_H #include "basictypes.h" #include <QVector> /** * This class contains all the ID translations done for each * UMLObject pasted. It contains for each old id its new * assigned id. * * @author Gustavo Madrigal * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class IDChangeLog { public: IDChangeLog(); IDChangeLog(const IDChangeLog& Other); ~IDChangeLog(); IDChangeLog& operator=(const IDChangeLog& Other); bool operator==(const IDChangeLog& Other) const; void addIDChange(Uml::ID::Type OldID, Uml::ID::Type NewID); IDChangeLog& operator+=(const IDChangeLog& Other); Uml::ID::Type findNewID(Uml::ID::Type OldID); Uml::ID::Type findOldID(Uml::ID::Type NewID); void removeChangeByNewID(Uml::ID::Type OldID); enum SpecialIDs { NullID = -1000 ///< An impossible id value. }; private: /** * Each change is a Point (x=newID, y=oldID) */ class Point { public: Point() {} Point(const Uml::ID::Type &x, const Uml::ID::Type &y) : m_x(x), m_y(y) {} virtual ~Point() {} void setX(const Uml::ID::Type &x) { m_x = x; } Uml::ID::Type x() const { return m_x; } void setY(const Uml::ID::Type &y) { m_y = y; } Uml::ID::Type y() const { return m_y; } private: Uml::ID::Type m_x, m_y; }; class PointArray : QVector<Point*> { public: void setPoint(uint i, const Uml::ID::Type &x, const Uml::ID::Type &y) { QVector<Point*>::insert(i, new Point(x, y)); } Point* point(uint i) const { return QVector<Point*>::at(i); } uint size() const { return QVector<Point*>::size(); } bool resize(uint size) { QVector<Point*>::resize(size); return true; } }; PointArray m_LogArray; bool findIDChange(Uml::ID::Type OldID, Uml::ID::Type NewID, uint& pos); }; #endif
2,113
C++
.h
64
27.8125
92
0.625616
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,790
dialog_utils.h
KDE_umbrello/umbrello/dialogs/dialog_utils.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2004-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef DIALOG_UTILS_H #define DIALOG_UTILS_H #include "umlobject.h" #include "widgetbase.h" #include "n_stereoattrs.h" #include <QString> #include <QInputDialog> class QGridLayout; class QLabel; class UMLWidget; class QLineEdit; class KComboBox; /** * Dialog utilities. * @author Oliver Kellogg * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ namespace Dialog_Utils { QLineEdit* makeLabeledEditField(QGridLayout *layout, int row, QLabel * &label, const QString& labelText, QLineEdit * &editField, const QString& editFieldText = QString(), int columnOffset = 0); void makeTagEditFields(UMLObject * o, QGridLayout * genLayout, QLabel * pTagLabel[N_STEREOATTRS], QLineEdit *pTagLineEdit[N_STEREOATTRS], int row = 1); void remakeTagEditFields(const QString &stereoText, UMLObject * o, QGridLayout * genLayout, QLabel * pTagLabel[N_STEREOATTRS], QLineEdit * pTagLineEdit[N_STEREOATTRS], int row = 1); void updateTagsFromEditFields(UMLObject * o, QLineEdit *pTagLineEdit[N_STEREOATTRS]); void askNameForWidget(UMLWidget * &targetWidget, const QString& dialogTitle, const QString& dialogPrompt, const QString& defaultName); bool askName(const QString& title, const QString& prompt, QString& name); bool askNewName(WidgetBase::WidgetType type, QString &name); bool askRenameName(WidgetBase::WidgetType type, QString &name); bool askDefaultNewName(WidgetBase::WidgetType type, QString &name); bool askNewName(UMLObject::ObjectType type, QString &name); bool askRenameName(UMLObject::ObjectType type, QString &name); bool askDefaultNewName(UMLObject::ObjectType type, QString &name); void insertStereotypesSorted(KComboBox *kcb, const QString& type); bool askDeleteAssociation(); bool askDeleteDiagram(const QString &name = QString()); int spacingHint(); } #endif
2,296
C++
.h
53
35.169811
92
0.677753
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,791
exportallviewsdialog.h
KDE_umbrello/umbrello/dialogs/exportallviewsdialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2006-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef EXPORTALLVIEWSDIALOG_H #define EXPORTALLVIEWSDIALOG_H // app includes #include "ui_exportallviewsdialogbase.h" #include "imagetypewidget.h" #include "resolutionwidget.h" #include "singlepagedialogbase.h" // KDE forward declarations class KComboBox; /** * Dialog for collecting the "Export all views" params. * Inherits ExportAllViewsDialogBase and adds a KFileFilterCombo that uses * only the mime types of the supported images types. * * The KFileFilterCombo is declared here instead of in the .ui file because QT * Designer and uic don't recognize it. */ class ExportAllViewsDialog : public SinglePageDialogBase, private Ui::ExportAllViewsDialogBase { Q_OBJECT public: explicit ExportAllViewsDialog(QWidget *parent = nullptr, const char *name = nullptr); ~ExportAllViewsDialog(); private: ImageTypeWidget* m_imageType; ///< The image type selected. ResolutionWidget* m_imageResolution; ///< The image resolution selected. protected Q_SLOTS: friend class UMLViewImageExporterAll; virtual void languageChange(); void slotImageTypeChanged(QString imageType); }; #endif
1,272
C++
.h
36
32.777778
94
0.79102
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,792
objectnodedialog.h
KDE_umbrello/umbrello/dialogs/objectnodedialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef OBJECTNODEDIALOG_H #define OBJECTNODEDIALOG_H // local class includes #include "multipagedialogbase.h" //forward declarations class DocumentationWidget; class UMLView; class ObjectNodeWidget; class QGroupBox; class QLabel; class QRadioButton; class QLineEdit; /** * Displays the properties for a @ref ObjectNodeWidget * * @author Paul Hensgen * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class ObjectNodeDialog : public MultiPageDialogBase { Q_OBJECT public: ObjectNodeDialog(QWidget *parent, ObjectNodeWidget * pWidget); bool getChangesMade() const { return m_bChangesMade; } protected Q_SLOTS: void slotOk(); void slotApply(); void slotShowState(); void slotHideState(); protected: void setupPages(); void setupGeneralPage(); void showState(); void applyPage(KPageWidgetItem *); ObjectNodeWidget *m_pObjectNodeWidget; ///< the widget to represent UMLView *m_pView; ///< the diagram the widget is on bool m_bChangesMade; ///< holds whether changes in the dialog have been made struct GeneralPageWidgets { QLabel * nameL, * typeL, * stateL; QLineEdit * nameLE, * typeLE, * stateLE; QRadioButton * bufferRB, * dataRB, * flowRB; QGroupBox * generalGB; DocumentationWidget *docWidget; } m_GenPageWidgets; KPageWidgetItem * pageItemGeneral, * pageItemFont, * pageItemStyle; }; #endif
1,654
C++
.h
54
26.796296
99
0.712753
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,793
notedialog.h
KDE_umbrello/umbrello/dialogs/notedialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef NOTEDIALOG_H #define NOTEDIALOG_H #include "multipagedialogbase.h" class NoteWidget; /** * @author Ralf Habacker * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class NoteDialog : public MultiPageDialogBase { Q_OBJECT public: NoteDialog(QWidget *parent, NoteWidget *widget); bool apply(); public Q_SLOTS: void slotOk(); void slotApply(); protected: void setupPages(); NoteWidget *m_widget; }; #endif
616
C++
.h
26
20.923077
92
0.747423
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,794
umlroledialog.h
KDE_umbrello/umbrello/dialogs/umlroledialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2003-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UMLROLEDIALOG_H #define UMLROLEDIALOG_H //kde includes #include "singlepagedialogbase.h" /** * @author Paul Hensgen */ class UMLRole; class UMLRoleProperties; class UMLRoleDialog : public SinglePageDialogBase { Q_OBJECT public: /** * Constructor */ UMLRoleDialog(QWidget * parent, UMLRole * pRole); /** * Deconstructor */ ~UMLRoleDialog(); protected: void setupDialog(); bool apply(); /** * The role to represent. */ UMLRole * m_pRole; private: UMLRoleProperties * m_pRoleProps; public Q_SLOTS: }; #endif
748
C++
.h
37
16.675676
92
0.695839
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,795
messagewidgetpropertiesdialog.h
KDE_umbrello/umbrello/dialogs/messagewidgetpropertiesdialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2018-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef MESSAGEWIDGETPROPERTIESDIALOG_H #define MESSAGEWIDGETPROPERTIESDIALOG_H #include "multipagedialogbase.h" class MessageWidget; /** * Based off of AssociationPropertiesDialog class * @author Brian Thomas <Brian.A.Thomas@gsfc.nasa.gov> * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class MessageWidgetPropertiesDialog : public MultiPageDialogBase { Q_OBJECT public: MessageWidgetPropertiesDialog(QWidget *parent, MessageWidget *widget); ~MessageWidgetPropertiesDialog(); protected: void setupPages(); protected Q_SLOTS: void slotOk(); void slotApply(); private: MessageWidget *m_widget; }; #endif
816
C++
.h
28
26.392857
92
0.78819
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,796
codeeditor.h
KDE_umbrello/umbrello/dialogs/codeeditor.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2003 Brian Thomas <brian.thomas@gsfc.nasa.gov> SPDX-FileCopyrightText: 2004-2022 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef CODEEDITOR_H #define CODEEDITOR_H #include "codeviewerstate.h" #include "textblocklist.h" #include <QTextEdit> #include <KTextEditor/Document> #include <KTextEditor/Editor> #include <KTextEditor/View> #include <QList> #include <QString> class CodeViewerDialog; class CodeComment; class CodeDocument; class CodeClassFieldDeclarationBlock; class CodeMethodBlock; class CodeBlockWithComments; class HierarchicalCodeBlock; class QMenu; class QLabel; class TextBlock; class UMLObject; struct ParaInfo { int start = 0; // this is a relative offset from the beginning of the tblock int size = 0; ///< number of characters int end = 0; ///< end line number QColor fgcolor; QColor bgcolor; bool isEditable = false; }; class TextBlockInfo { public: QList<ParaInfo*> m_paraList; UMLObject * m_parent; QString m_displayName; bool isClickable; bool isCodeAccessorMethod; TextBlockInfo () { m_parent = nullptr; isClickable = false; isCodeAccessorMethod = false; } void setParent(UMLObject *p = nullptr) { m_parent = p; } UMLObject * parent() { return m_parent; } void setDisplayName(const QString& name) { m_displayName = name; } QString displayName() const { return m_displayName; } }; class CodeEditor : public QTextEdit { Q_OBJECT public: explicit CodeEditor(const QString & text, CodeViewerDialog *parent = nullptr, CodeDocument *doc = nullptr); explicit CodeEditor(CodeViewerDialog *parent = nullptr, CodeDocument *doc = nullptr); ~CodeEditor(); Settings::CodeViewerState state(); protected: bool close (); void appendText(TextBlock * tblock); void appendText(HierarchicalCodeBlock * hblock); void appendText(CodeClassFieldDeclarationBlock * db); void appendText(TextBlockList * items); void appendText(CodeMethodBlock * mb); void appendText(CodeComment *comment, TextBlock * parent, UMLObject *umlObj = nullptr, const QString & compName = QString()); void appendText(CodeBlockWithComments * cb); void rebuildView(int startCursorPos); void contextMenuEvent(QContextMenuEvent * event); void contentsMouseMoveEvent(QMouseEvent * e); void keyPressEvent(QKeyEvent * e); void mouseDoubleClickEvent(QMouseEvent * e); void loadFromDocument(); QMenu * createPopup(); private: QString m_parentDocName; CodeDocument * m_parentDoc; CodeViewerDialog * m_parentDialog; int m_lastPara; int m_lastPos; bool m_newLinePressed; bool m_backspacePressed; bool m_isHighlighted; bool m_showHiddenBlocks; TextBlock * m_textBlockToPaste; TextBlock * m_selectedTextBlock; TextBlock * m_lastTextBlockToBeEdited; QMap<TextBlock*, TextBlockInfo*> m_tbInfoMap; TextBlockList m_textBlockList; void insertText(const QString & text, TextBlock * parent, bool isEditable = false, const QColor & fgcolor = QColor("black"), const QColor & bgcolor = QColor("white"), UMLObject *umlobj = nullptr, const QString & displayName = QString(), int startLine = -1); void editTextBlock(TextBlock * tBlock, int para); void clearText(); QLabel * componentLabel(); bool paraIsNotSingleLine(int para); void expandSelectedParagraph(int where); void contractSelectedParagraph(int where); void updateTextBlockFromText(TextBlock * block); void initText(CodeDocument * doc); void init(CodeViewerDialog * parentDialog, CodeDocument * parentDoc); void changeTextBlockHighlighting(TextBlock * tb, bool selected); void setParagraphBackgroundColor(int position, const QColor& color); bool isParaEditable(int para); bool textBlockIsClickable(UMLObject * obj); TextBlock* findTextBlockAt(int characterPos); void clicked(int para, int pos); static bool isNonBlank(const QString &str); public Q_SLOTS: void insertParagraph(const QString & text, int para); void removeParagraph(int para); void changeHighlighting(int signal); void changeShowHidden(int signal); void slotRedrawText(); protected Q_SLOTS: void slotCursorPositionChanged(); void slotCopyTextBlock(); void slotCutTextBlock(); void slotPasteTextBlock(); void slotChangeSelectedBlockView(); void slotChangeSelectedBlockCommentView(); void slotInsertCodeBlockAfterSelected(); void slotInsertCodeBlockBeforeSelected(); Q_SIGNALS: // void sigNewLinePressed(); // void sigBackspacePressed(); }; #endif // CODEEDITOR_H
4,779
C++
.h
127
33.401575
130
0.739385
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,797
umlenumliteraldialog.h
KDE_umbrello/umbrello/dialogs/umlenumliteraldialog.h
/* SPDX-License-Identifier: GPL-3.0-or-later SPDX-FileCopyrightText: 2015 Tzvetelin Katchov <katchov@gmail.com> SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UMLENUMLITERALDIALOG_H #define UMLENUMLITERALDIALOG_H #include "singlepagedialogbase.h" class QGroupBox; class QLabel; class UMLEnumLiteral; class QLineEdit; /** * @author Tzvetelin Katchov * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class UMLEnumLiteralDialog : public SinglePageDialogBase { Q_OBJECT public: UMLEnumLiteralDialog(QWidget * pParent, UMLEnumLiteral * pEnumLiteral); ~UMLEnumLiteralDialog(); protected: void setupDialog(); bool apply(); /** * The EnumLiteral to represent */ UMLEnumLiteral * m_pEnumLiteral; //GUI Widgets QGroupBox * m_pValuesGB; QLabel * m_pNameL, * m_pValueL; QLineEdit * m_pNameLE, * m_pValueLE; public Q_SLOTS: void slotNameChanged(const QString &); }; #endif
1,024
C++
.h
37
24.378378
92
0.749744
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,798
classpropertiesdialog.h
KDE_umbrello/umbrello/dialogs/classpropertiesdialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2003-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef CLASSPROPERTIESDIALOG_H #define CLASSPROPERTIESDIALOG_H #include "multipagedialogbase.h" class ClassAssociationsPage; class ClassGeneralPage; class ClassifierListPage; class ClassOptionsPage; class ConstraintListPage; class EntityWidget; class PackageContentsPage; class ObjectWidget; class UMLDoc; class UMLObject; class UMLWidget; class UMLWidgetStylePage; /** * @author Paul Hensgen <phensgen@techie.com> * @version 1.0 * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class ClassPropertiesDialog : public MultiPageDialogBase { Q_OBJECT public: ClassPropertiesDialog(QWidget *parent, UMLObject *c, bool assoc = false); ClassPropertiesDialog(QWidget *parent, ObjectWidget * o); ClassPropertiesDialog(QWidget *parent, UMLWidget * o); ~ClassPropertiesDialog(); enum Page{page_gen = 0, page_att, page_op, page_entatt, page_constraint, page_template, page_assoc, page_options, page_color, page_font}; virtual void apply(); protected Q_SLOTS: void slotOk(); void slotApply(); protected: void setupPages(bool assoc = false); void setupGeneralPage(); void setupDisplayPage(); void setupAttributesPage(); void setupOperationsPage(); void setupTemplatesPage(); void setupEnumLiteralsPage(); void setupEntityDisplayPage(EntityWidget *widget); void setupEntityAttributesPage(); void setupEntityConstraintsPage(); void setupContentsPage(); void setupAssociationsPage(); void setupInstancePages(); private: ClassGeneralPage* m_pGenPage; ClassifierListPage* m_pAttPage; ClassifierListPage* m_pOpsPage; ClassifierListPage* m_pTemplatePage; ClassifierListPage* m_pEnumLiteralPage; ClassifierListPage* m_pEntityAttributePage; ConstraintListPage* m_pEntityConstraintPage; PackageContentsPage* m_pPkgContentsPage; ClassAssociationsPage* m_pAssocPage; ClassOptionsPage* m_pOptionsPage; UMLDoc* m_doc; UMLObject* m_pObject; UMLWidget* m_pWidget; private: void init(); }; #endif
2,257
C++
.h
70
28.614286
92
0.756558
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,799
associationpropertiesdialog.h
KDE_umbrello/umbrello/dialogs/associationpropertiesdialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef ASSOCIATIONPROPERTIESDIALOG_H #define ASSOCIATIONPROPERTIESDIALOG_H #include "multipagedialogbase.h" class AssociationWidget; /** * Based off of AssociationPropertiesDialog class * @author Brian Thomas <Brian.A.Thomas@gsfc.nasa.gov> * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class AssociationPropertiesDialog : public MultiPageDialogBase { Q_OBJECT public: AssociationPropertiesDialog(QWidget *parent, AssociationWidget *a, int pageNum = 0); ~AssociationPropertiesDialog(); protected: void setupPages(); protected Q_SLOTS: void slotOk(); void slotApply(); private: AssociationWidget *m_pAssoc; }; #endif
831
C++
.h
28
26.892857
92
0.784363
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,800
selectdiagramdialog.h
KDE_umbrello/umbrello/dialogs/selectdiagramdialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2019-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef SELECTDIAGRAMDIALOG_H #define SELECTDIAGRAMDIALOG_H //app includes #include "singlepagedialogbase.h" #include "basictypes.h" class SelectDiagramWidget; /** * Provides dialog to select a diagram * * @author Ralf Habacker <ralf.habacker@freenet.de> */ class SelectDiagramDialog : public SinglePageDialogBase { Q_OBJECT public: SelectDiagramDialog(QWidget * parent, Uml::DiagramType::Enum type, const QString &currentName, const QString excludeName); ~SelectDiagramDialog(); Uml::ID::Type currentID(); protected: SelectDiagramWidget *m_widget; }; #endif
735
C++
.h
26
25.769231
126
0.782051
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,801
umlinstanceattributedialog.h
KDE_umbrello/umbrello/dialogs/umlinstanceattributedialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2016-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UMLINSTANCEATTRIBUTEDIALOG_H #define UMLINSTANCEATTRIBUTEDIALOG_H #include <QWidget> #include "singlepagedialogbase.h" #include "instanceattribute.h" namespace Ui { class UMLInstanceAttributeDialog; } class UMLInstanceAttributeDialog : public SinglePageDialogBase { Q_OBJECT public: explicit UMLInstanceAttributeDialog(QWidget *parent, UMLInstanceAttribute *pInstanceAttr); ~UMLInstanceAttributeDialog(); private: Ui::UMLInstanceAttributeDialog *ui; UMLInstanceAttribute *m_pInstanceAttr; protected: bool apply(); }; #endif // UMLINSTANCEATTRIBUTEDIALOG_H
741
C++
.h
25
27.04
94
0.817797
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,802
dontaskagain.h
KDE_umbrello/umbrello/dialogs/dontaskagain.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2018-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef DONTASKAGAIN_H #define DONTASKAGAIN_H // Qt includes #include <QList> #include <QString> #include <QWidget> // KDE includes #include <KLocalizedString> class QVBoxLayout; /** * The DontAskAgainItem class holds a 'dont ask again' item, * see @ref DontAskAgainHandler for details. * * @author Ralf Habacker <ralf.habacker@freenet.de> */ class DontAskAgainItem { public: DontAskAgainItem(const QString &name); virtual ~DontAskAgainItem(); QString &name(); virtual QString text() const = 0; bool isAll(); bool isEnabled(); void setEnabled(bool state = true); protected: QString m_name; }; #define DefineDontAskAgainItem(name,key,_text) \ class DontAskAgainItem##name : public DontAskAgainItem \ { \ public: \ DontAskAgainItem##name() : DontAskAgainItem(QStringLiteral(key)) {} \ virtual QString text() const { return _text; } \ }; \ static DontAskAgainItem##name name; /** * The DontAskAgainWidget provides a graphical user interface * to change 'dont ask again' settings and could be embedded * in dialogs or dialog pages. * * After adding the widget to a dialog call @ref apply() to apply * changed values and call @ref setDefaults() to reset changes to * default values, which is all messages enabled. * * The widget is designed as group box with embedded check boxes. * * @author Ralf Habacker <ralf.habacker@freenet.de> */ class DontAskAgainWidget : public QWidget { Q_OBJECT public: DontAskAgainWidget(QList<DontAskAgainItem *> &items, QWidget *parent = nullptr); bool apply(); void setDefaults(); protected: void addItem(DontAskAgainItem *item); QVBoxLayout *m_layout; QList<DontAskAgainItem *> &m_items; protected Q_SLOTS: void slotToggled(bool state); }; /** * Dialogs provided by namespace KMessageBox support a feature to hide dialogs on user request * by specifying the parameter dontAskAgainName, which adds a checkbox named "Don't ask again" * to the related dialog. * * What is currently missing in KMessageBox namespace and therefore provided by class * DontAskAgainHandler, is a widget to reenable or disable dialogs using the "Don't ask again" * support in an application setting dialog. * * To use this support call macro @ref DefineDontAskAgainItem and add a call to method * DontAskAgainItem::name as parameter @p dontAskAgainName to related class KMessageBox * methods. See the following example: * * \code{.cpp} * DefineDontAskAgainItem(aDontAskAgainItem, "delete-diagram", i18n("Enable 'delete diagram' related messages")); * ... * return KMessageBox::warningContinueCancel(..., aDontAskAgainItem.name()) * \endcode * * To add the mentioned widget to a settings dialog call @ref createWidget() and * add the result to a dialog layout. * * @author Ralf Habacker <ralf.habacker@freenet.de> */ class DontAskAgainHandler { public: void addItem(DontAskAgainItem *item); static DontAskAgainHandler &instance(); DontAskAgainWidget *createWidget(); protected: QList<DontAskAgainItem*> m_items; }; #endif // DONTASKAGAIN_H
3,227
C++
.h
100
29.79
113
0.756982
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,803
selectoperationdialog.h
KDE_umbrello/umbrello/dialogs/selectoperationdialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef SELECTOPERATIONDIALOG_H #define SELECTOPERATIONDIALOG_H #include "singlepagedialogbase.h" class KComboBox; class QLineEdit; class QCheckBox; class QGroupBox; class QLabel; class UMLClassifier; class UMLView; class LinkWidget; /** * A dialog used to select an operation. * * @short A dialog to select an operation. * @author Paul Hensgen <phensgen@techie.com> * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class SelectOperationDialog : public SinglePageDialogBase { Q_OBJECT public: SelectOperationDialog(UMLView * parent, UMLClassifier * c, LinkWidget *widget, bool enableAutoIncrement = true); ~SelectOperationDialog(); QString getOpText(); bool isClassOp() const; QString getSeqNumber(); bool autoIncrementSequence(); void setAutoIncrementSequence(bool state); void setSeqNumber(const QString &num); void setCustomOp(const QString &op); bool setClassOp(const QString &op); bool apply(); protected: void setupDialog(); void setupOperationsList(); private: static const int OP = 0; static const int CUSTOM = 1; QGroupBox *m_pOpGB; KComboBox *m_pOpCB; QLabel *m_pSeqL; QLineEdit *m_pOpLE, *m_pSeqLE; QLabel *m_pCustomRB, *m_pOpRB; QPushButton *m_newOperationButton; QCheckBox *m_pOpAS; QString m_Text; int m_nOpCount; int m_id; ///< takes on the value OP or CUSTOM according to what the user selected UMLView *m_pView; UMLClassifier *m_classifier; LinkWidget *m_widget; bool m_enableAutoIncrement; public Q_SLOTS: void slotAutoIncrementChecked(bool state); void slotNewOperation(); void slotIndexChanged(int index); void slotTextChanged(const QString &text); }; #endif
2,033
C++
.h
64
28.171875
116
0.697901
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,804
diagramselectiondialog.h
KDE_umbrello/umbrello/dialogs/diagramselectiondialog.h
/* SPDX-FileCopyrightText: 2015 Ralf Habacker <ralf.habacker@freenet.de> SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #ifndef DIAGRAMSELECTIONDIALOG_H #define DIAGRAMSELECTIONDIALOG_H #include "singlepagedialogbase.h" class DiagramPrintPage; class DiagramSelectionDialog : public SinglePageDialogBase { Q_OBJECT public: explicit DiagramSelectionDialog(DiagramPrintPage *page, QWidget *parent = nullptr); ~DiagramSelectionDialog(); }; #endif // DIAGRAMSELECTIONDIALOG_H
539
C++
.h
16
31.0625
88
0.808511
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,805
stereoattributedialog.h
KDE_umbrello/umbrello/dialogs/stereoattributedialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef STEREOATTRIBUTEDIALOG_H #define STEREOATTRIBUTEDIALOG_H #include "singlepagedialogbase.h" #include "n_stereoattrs.h" class QGroupBox; class QLabel; class QLineEdit; class QComboBox; class UMLStereotype; /** * @author Oliver Kellogg * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class StereoAttributeDialog : public SinglePageDialogBase { Q_OBJECT public: StereoAttributeDialog(QWidget *parent, UMLStereotype *stereotype); virtual ~StereoAttributeDialog(); protected: void setupDialog(); bool apply(); /** * The Stereotype to represent */ UMLStereotype *m_pStereotype; //GUI Widgets QGroupBox * m_pValuesGB; QLabel * m_pNameLabel [N_STEREOATTRS]; QLineEdit * m_pNameEdit [N_STEREOATTRS]; QLabel * m_pTypeLabel [N_STEREOATTRS]; QComboBox * m_pTypeCombo [N_STEREOATTRS]; QLabel * m_pDefaultValueLabel[N_STEREOATTRS]; QLineEdit * m_pDefaultValueEdit [N_STEREOATTRS]; }; #endif
1,169
C++
.h
40
25.95
87
0.726542
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,806
classwizard.h
KDE_umbrello/umbrello/dialogs/classwizard.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef CLASSWIZARD_H #define CLASSWIZARD_H // qt includes #include <QWizard> class QWizardPage; class ClassifierListPage; class ClassGeneralPage; class UMLClassifier; class UMLDoc; /** * @author Paul Hensgen * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class ClassWizard : public QWizard { Q_OBJECT public: explicit ClassWizard(UMLDoc* doc); ~ClassWizard(); private: UMLDoc * m_doc; //< Document currently opened. UMLClassifier * m_pClass; //< Class to create. ClassGeneralPage * m_pGenPage; //< General class info. ClassifierListPage * m_pAttPage; //< Class attributes. ClassifierListPage * m_pOpPage; //< Class operations. QWizardPage * m_GeneralPage; QWizardPage * m_AttributesPage; QWizardPage * m_OperationsPage; QWizardPage* createGeneralPage(); QWizardPage* createAttributesPage(); QWizardPage* createOperationsPage(); void next(); void back(); void accept(); void reject(); protected Q_SLOTS: void showHelp(); }; #endif
1,245
C++
.h
43
25.651163
92
0.703361
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,807
umltemplatedialog.h
KDE_umbrello/umbrello/dialogs/umltemplatedialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2003-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UMLTEMPLATEDIALOG_H #define UMLTEMPLATEDIALOG_H #include "singlepagedialogbase.h" class DocumentationWidget; class KComboBox; class QLineEdit; class QGroupBox; class QLabel; class UMLTemplate; class UMLDatatypeWidget; class UMLStereotypeWidget; /** * A dialog to edit the properties of a class template (paramaterised class) * * @author Jonathan Riddell * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class UMLTemplateDialog : public SinglePageDialogBase { Q_OBJECT public: UMLTemplateDialog(QWidget* pParent, UMLTemplate* pAttribute); ~UMLTemplateDialog(); protected: void setupDialog(); virtual bool apply(); /** * The Attribute to represent */ UMLTemplate* m_pTemplate; // GUI Widgets QGroupBox *m_pValuesGB; QLabel *m_pNameL; QLineEdit *m_pNameLE; UMLDatatypeWidget *m_datatypeWidget; UMLStereotypeWidget *m_stereotypeWidget; DocumentationWidget *m_docWidget; protected: void insertTypesSorted(const QString& type = QString()); }; #endif
1,211
C++
.h
45
23.777778
92
0.766696
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,808
umlfiledialog.h
KDE_umbrello/umbrello/dialogs/umlfiledialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2003-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UMLFILEDIALOG_H #define UMLFILEDIALOG_H #include <QtGlobal> #include <QFileDialog> /** * Wrapper class for KFileDialog supporting graphviz *.dot files. * * This class is required because KFileDialog do not support * mixing of mime type based filters with other filters. * * Because the graphviz .dot extension do not have an official * mimetype, we use a fake mime type named image/x-dot */ class UMLFileDialog : public QObject { Q_OBJECT public: UMLFileDialog(const QUrl &startDir, const QString &filter, QWidget *parent, QWidget *widget= nullptr); ~UMLFileDialog(); int exec(); void setCaption(const QString &caption); void setAcceptMode(QFileDialog::AcceptMode mode); void setMimeTypeFilters(const QStringList &filters); void selectUrl(const QUrl &url); void setUrl(const QUrl &url); QUrl selectedUrl(); void setSelection(const QString &name); protected: QFileDialog *m_dialog; }; #endif
1,109
C++
.h
35
28.628571
107
0.755159
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,809
codeviewerdialog.h
KDE_umbrello/umbrello/dialogs/codeviewerdialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2003-2020 Brian Thomas <brian.thomas@gsfc.nasa.gov> SPDX-FileCopyrightText: 2004-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef CODEVIEWERDIALOG_H #define CODEVIEWERDIALOG_H #include "codeviewerstate.h" #include "ui_codeviewerdialogbase.h" #include "singlepagedialogbase.h" class CodeDocument; /** * This class is sooo ugly I don't know where to begin. For now, its a prototype * that works, and thats all we need. In the future, a re-write is mandated to * bring a bit of beauty to this beast. -b.t. */ class CodeViewerDialog : public SinglePageDialogBase, private Ui::CodeViewerDialogBase { Q_OBJECT public: CodeViewerDialog (QWidget* parent, CodeDocument * doc, Settings::CodeViewerState state); ~CodeViewerDialog (); Settings::CodeViewerState state(); void addCodeDocument(CodeDocument * doc); protected: bool close (); private: friend class CodeEditor; Settings::CodeViewerState m_state; void initGUI(); public Q_SLOTS: protected Q_SLOTS: virtual void languageChange(); }; #endif // CODEVIEWERDIALOG_H
1,177
C++
.h
35
30.428571
92
0.765388
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,810
multipagedialogbase.h
KDE_umbrello/umbrello/dialogs/multipagedialogbase.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2012-2022 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef MULTIPAGEDIALOGBASE_H #define MULTIPAGEDIALOGBASE_H #include "icon_utils.h" #include <kpagewidget.h> // qt class includes #include <QDialog> #include <QWidget> //forward declarations class AssociationWidget; class AssociationGeneralPage; class AssociationRolePage; class KFontChooser; class KPageDialog; class QAbstractButton; class QFrame; class NotePage; class NoteWidget; class MessageWidget; class UMLWidget; class SelectOperationPage; class UMLWidgetStylePage; class WidgetBase; class UMLScene; namespace Settings { class OptionState; } /** * Base class for property dialogs * * MultiPageDialogBase contains common property dialog related methods and attributes * In finished state this class provides simple methods to setup common pages * like WidgetStyle, FontSetting and others * * @author Ralf Habacker * * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class MultiPageDialogBase : public QWidget { Q_OBJECT public: /// Available page types enum PageType { AutoLayoutPage, ClassPage, CodeImportPage, CodeGenerationPage, CodeViewerPage, FontPage, GeneralPage, UserInterfacePage, }; explicit MultiPageDialogBase(QWidget *parent, bool withDefaultButton=false); virtual ~MultiPageDialogBase(); void apply(); void setCaption(const QString &caption); void accept(); void reject(); KPageWidgetItem *currentPage() const; void addPage(KPageWidgetItem *page); void setCurrentPage(KPageWidgetItem *page); int exec(); virtual bool isModified() const; Q_SIGNALS: void okClicked(); void applyClicked(); void defaultClicked(); protected Q_SLOTS: void slotEnableButtonOk(bool state); private Q_SLOTS: void slotOkClicked(); void slotApplyClicked(); void slotDefaultClicked(); void slotHelpClicked(); void slotButtonClicked(QAbstractButton *button); protected: AssociationGeneralPage *m_pAssocGeneralPage; NotePage *m_notePage; SelectOperationPage *m_operationGeneralPage; AssociationRolePage *m_pRolePage; KFontChooser *m_fontChooser; UMLWidgetStylePage *m_pStylePage; KPageWidgetItem *m_pageItem; KPageDialog *m_pageDialog; KPageWidget *m_pageWidget; bool m_useDialog; bool m_isModified; virtual void keyPressEvent(QKeyEvent *event); QFrame* createPage(const QString& name, const QString& header, Icon_Utils::IconType icon); KPageWidgetItem *createPage(const QString &name, const QString &header, Icon_Utils::IconType icon, QWidget *widget); void setupGeneralPage(AssociationWidget *widget); void applyGeneralPage(AssociationWidget *widget); void setupGeneralPage(NoteWidget *widget); KPageWidgetItem *setupGeneralPage(MessageWidget *widget); void applyGeneralPage(MessageWidget *widget); KPageWidgetItem *setupFontPage(const QFont &font); KPageWidgetItem *setupFontPage(UMLWidget *widget); KPageWidgetItem *setupFontPage(AssociationWidget *widget); void resetFontPage(QWidget *widget); void applyFontPage(AssociationWidget *widget); void applyFontPage(Settings::OptionState *state); void applyFontPage(UMLScene *scene); void applyFontPage(UMLWidget *widget); KPageWidgetItem *setupStylePage(WidgetBase *widget); KPageWidgetItem *setupStylePage(AssociationWidget *widget); void applyStylePage(); KPageWidgetItem *setupAssociationRolePage(AssociationWidget *widget); void applyAssociationRolePage(); }; #endif
3,701
C++
.h
112
29.125
120
0.771581
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,811
umluniqueconstraintdialog.h
KDE_umbrello/umbrello/dialogs/umluniqueconstraintdialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2003-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UMLUNIQUECONSTRAINTDIALOG_H #define UMLUNIQUECONSTRAINTDIALOG_H //app includes #include "umlentityattributelist.h" //kde includes #include "singlepagedialogbase.h" class KComboBox; class QLineEdit; class QGroupBox; class QLabel; class QListWidget; class QPushButton; class UMLUniqueConstraint; /** * A dialog page to display unique constraint properties. * * @short A dialog page to display unique constraint properties. * @author Sharan Rao * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class UMLUniqueConstraintDialog : public SinglePageDialogBase { Q_OBJECT public: UMLUniqueConstraintDialog(QWidget* parent, UMLUniqueConstraint* pUniqueConstraint); ~UMLUniqueConstraintDialog(); protected: void setupDialog(); virtual bool apply(); private: UMLUniqueConstraint *m_pUniqueConstraint; // GUI Widgets QGroupBox* m_pAttributeListGB; QLabel* m_pNameL; QLineEdit* m_pNameLE; QListWidget* m_pAttributeListLW; KComboBox* m_pAttributeCB; QPushButton* m_pAddPB, *m_pRemovePB; // local cache UMLEntityAttributeList m_pEntityAttributeList; UMLEntityAttributeList m_pConstraintAttributeList; public Q_SLOTS: void slotResetWidgetState(); void slotAddAttribute(); void slotDeleteAttribute(); }; #endif
1,465
C++
.h
51
25.72549
92
0.78816
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,812
activitydialog.h
KDE_umbrello/umbrello/dialogs/activitydialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef ACTIVITYDIALOG_H #define ACTIVITYDIALOG_H #include <multipagedialogbase.h> //forward declarations class ActivityWidget; class DocumentationWidget; class QLineEdit; class QLabel; class QGroupBox; class QRadioButton; class UMLView; /** * Displays the properties for a @ref ActivityWidget * * @author Paul Hensgen * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class ActivityDialog : public MultiPageDialogBase { Q_OBJECT public: ActivityDialog(QWidget * parent, ActivityWidget * pWidget); bool getChangesMade() const { return m_bChangesMade; } protected Q_SLOTS: void slotOk(); void slotApply(); void slotShowActivityParameter(); void slotHideActivityParameter(); protected: void setupPages(); void setupGeneralPage(); void showParameterActivity(); void applyPage(KPageWidgetItem *); ActivityWidget *m_pActivityWidget; ///< the widget to represent UMLView *m_pView; ///< the diagram the widget is on bool m_bChangesMade; ///< holds whether changes in the dialog have been made struct GeneralPageWidgets { QLabel * nameL, * typeL, * preL, * postL; QLineEdit * nameLE, * typeLE, * preLE, * postLE; DocumentationWidget *docWidget; QRadioButton * NormalRB, * ParamRB, * InvokRB; // this is to implement the parameter node activity or an invok action QGroupBox * generalGB; } m_GenPageWidgets; KPageWidgetItem *pageItemGeneral, *pageItemFont, *pageItemStyle; }; #endif
1,707
C++
.h
53
28.377358
125
0.727605
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,813
umlentityattributedialog.h
KDE_umbrello/umbrello/dialogs/umlentityattributedialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UMLENTITYATTRIBUTEDIALOG_H #define UMLENTITYATTRIBUTEDIALOG_H #include "singlepagedialogbase.h" class DefaultValueWidget; class QCheckBox; class QGroupBox; class QLabel; class QRadioButton; class UMLDatatypeWidget; class UMLEntityAttribute; class UMLStereotypeWidget; class KComboBox; class QLineEdit; /** * @author Jonathan Riddell * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class UMLEntityAttributeDialog : public SinglePageDialogBase { Q_OBJECT public: UMLEntityAttributeDialog(QWidget* pParent, UMLEntityAttribute* pEntityAttribute); ~UMLEntityAttributeDialog(); protected: void setupDialog(); virtual bool apply(); void insertAttribute(const QString& type, int index = -1); /** * The EntityAttribute to represent. */ UMLEntityAttribute * m_pEntityAttribute; //GUI Widgets QGroupBox * m_pAttsGB, * m_pValuesGB; QGroupBox * m_pScopeGB; QRadioButton * m_pPublicRB, * m_pPrivateRB, * m_pProtectedRB, * m_pNoneRB; QLabel * m_pNameL, * m_pInitialL, * m_pValuesL, * m_pAttributesL ; KComboBox * m_pAttributesCB; QLineEdit * m_pNameLE, * m_pInitialLE, * m_pValuesLE; QCheckBox* m_pAutoIncrementCB; QCheckBox* m_pNullCB; UMLDatatypeWidget *m_datatypeWidget; UMLStereotypeWidget *m_stereotypeWidget; DefaultValueWidget *m_defaultValueWidget; public Q_SLOTS: void slotAutoIncrementStateChanged(bool checked); void slotNameChanged(const QString &); }; #endif
1,649
C++
.h
52
28.384615
92
0.765931
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,814
umlattributedialog.h
KDE_umbrello/umbrello/dialogs/umlattributedialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UMLATTRIBUTEDIALOG_H #define UMLATTRIBUTEDIALOG_H #include "singlepagedialogbase.h" #include "n_stereoattrs.h" class DocumentationWidget; class QCheckBox; class QGridLayout; class QGroupBox; class QRadioButton; class QLabel; class UMLObject; class UMLAttribute; class QLineEdit; class UMLDatatypeWidget; class UMLStereotypeWidget; class VisibilityEnumWidget; /** * @author Paul Hensgen * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class UMLAttributeDialog : public SinglePageDialogBase { Q_OBJECT public: UMLAttributeDialog(QWidget * pParent, UMLAttribute * pAttribute); ~UMLAttributeDialog(); protected: void setupDialog(); bool apply(); /** * The Attribute to represent */ UMLAttribute * m_pAttribute; //GUI Widgets QGridLayout * m_pValuesLayout; QGroupBox * m_pValuesGB; QLabel * m_pNameL, * m_pInitialL; QLineEdit * m_pNameLE, * m_pInitialLE; QCheckBox* m_pStaticCB; UMLDatatypeWidget *m_datatypeWidget; UMLStereotypeWidget *m_stereotypeWidget; QLabel *m_pTagL [N_STEREOATTRS]; QLineEdit *m_pTagLE[N_STEREOATTRS]; VisibilityEnumWidget *m_visibilityEnumWidget; DocumentationWidget *m_docWidget; public Q_SLOTS: void slotNameChanged(const QString &); void slotStereoTextChanged(const QString &); }; #endif
1,520
C++
.h
54
25.037037
92
0.75429
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,815
finddialog.h
KDE_umbrello/umbrello/dialogs/finddialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2014-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef FINDDIALOG_H #define FINDDIALOG_H #include "ui_finddialog.h" #include "singlepagedialogbase.h" #include "umlfinder.h" /** * Class FindDialog provides the ui part for selecting find attributes. * * @author: Ralf Habacker <ralf.habacker@freenet.de> */ class FindDialog : public SinglePageDialogBase, private Ui::FindDialog { Q_OBJECT public: explicit FindDialog(QWidget *parent = nullptr); ~FindDialog(); QString text() const; UMLFinder::Filter filter() const; UMLFinder::Category category() const; protected: void showEvent(QShowEvent *event); private Q_SLOTS: void slotFilterButtonClicked(int button); }; #endif // FINDDIALOG_H
829
C++
.h
29
25.689655
92
0.754098
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,816
umlforeignkeyconstraintdialog.h
KDE_umbrello/umbrello/dialogs/umlforeignkeyconstraintdialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2003-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UMLFOREIGNKEYCONSTRAINTDIALOG_H #define UMLFOREIGNKEYCONSTRAINTDIALOG_H //app includes #include "multipagedialogbase.h" #include "umlentityattributelist.h" //kde includes //qt includes #include <QList> class KComboBox; class QLineEdit; class UMLDoc; class UMLForeignKeyConstraint; class QGroupBox; class QLabel; class QPushButton; class QTreeWidget; typedef QPair<UMLEntityAttribute*, UMLEntityAttribute*> EntityAttributePair; typedef QList<EntityAttributePair> EntityAttributePairList; /** * A dialog page to display foreignkey constraint properties. * * @short A dialog page to display foreignkey constraint properties. * @author Sharan Rao * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class UMLForeignKeyConstraintDialog : public MultiPageDialogBase { Q_OBJECT public: UMLForeignKeyConstraintDialog(QWidget* parent, UMLForeignKeyConstraint* pForeignKeyConstraint); ~UMLForeignKeyConstraintDialog(); private: bool apply(); void setupGeneralPage(); void setupColumnPage(); void refillReferencedAttributeCB(); void refillLocalAttributeCB(); UMLDoc* m_doc; ///< the UMLDocument where all objects live UMLForeignKeyConstraint* m_pForeignKeyConstraint; struct GeneralWidgets { QGroupBox* generalGB; QGroupBox* actionGB; QLabel* referencedEntityL; QLabel* nameL; QLineEdit* nameT; KComboBox* referencedEntityCB; QLabel* onUpdateL; QLabel* onDeleteL; KComboBox* updateActionCB; KComboBox* deleteActionCB; }; // end general widgets struct ColumnWidgets { QTreeWidget* mappingTW; KComboBox* localColumnCB; KComboBox* referencedColumnCB; QLabel* localColumnL; QLabel* referencedColumnL; QPushButton* addPB, *removePB; }; // end column widgets // these attributes store the local cache UMLEntityAttributeList m_pLocalAttributeList; UMLEntityAttributeList m_pReferencedAttributeList; EntityAttributePairList m_pAttributeMapList; /** * Temporary Storage for entity index in referencedColumnCB. * Used for reverting back a change in referenced entities. */ int m_pReferencedEntityIndex; // end of local cache GeneralWidgets m_GeneralWidgets; ColumnWidgets m_ColumnWidgets; KPageWidgetItem *pageGeneral, *pageColumn; public Q_SLOTS: void slotResetWidgetState(); void slotApply(); void slotOk(); void slotAddPair(); void slotDeletePair(); void slotReferencedEntityChanged(int index); }; #endif
2,762
C++
.h
85
27.882353
99
0.757839
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,817
n_stereoattrs.h
KDE_umbrello/umbrello/dialogs/n_stereoattrs.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef _N_STEREOATTRS__H #define _N_STEREOATTRS__H // Maximum number of tagged values per stereotype #define N_STEREOATTRS 3 #endif
277
C++
.h
9
28.444444
87
0.776515
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,818
parameterpropertiesdialog.h
KDE_umbrello/umbrello/dialogs/parameterpropertiesdialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef PARAMETERPROPERTIESDIALOG_H #define PARAMETERPROPERTIESDIALOG_H #include "basictypes.h" #include "singlepagedialogbase.h" class DocumentationWidget; class DefaultValueWidget; class KComboBox; class QLineEdit; class QGroupBox; class QLabel; class QRadioButton; class UMLAttribute; class UMLDoc; class UMLDatatypeWidget; class UMLStereotypeWidget; /** * Displays a dialog box that displays properties of a parameter. * You need to make sure that @ref UMLDoc is made to be the * parent. * * @short A properties dialog box for a parameter. * @author Paul Hensgen <phensgen@techie.com> * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class ParameterPropertiesDialog : public SinglePageDialogBase { Q_OBJECT public: ParameterPropertiesDialog(QWidget * parent, UMLDoc * doc, UMLAttribute * attr); ~ParameterPropertiesDialog(); virtual bool apply(); protected: QString getName(); QString getInitialValue(); Uml::ParameterDirection::Enum getParmKind(); virtual bool validate(); private: QGroupBox * m_pParmGB; QGroupBox * m_pKindGB; QRadioButton * m_pIn, * m_pOut, *m_pInOut; QLabel * m_pNameL; QLineEdit * m_pNameLE; DefaultValueWidget * m_defaultValueWidget; DocumentationWidget * m_docWidget; UMLDoc * m_pUmldoc; UMLAttribute * m_pAtt; UMLDatatypeWidget *m_datatypeWidget; UMLStereotypeWidget *m_stereotypeWidget; }; #endif
1,590
C++
.h
54
26.555556
92
0.770642
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,819
umloperationdialog.h
KDE_umbrello/umbrello/dialogs/umloperationdialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UMLOPERATIONDIALOG_H #define UMLOPERATIONDIALOG_H //kde includes #include "singlepagedialogbase.h" #include "n_stereoattrs.h" class DocumentationWidget; class KComboBox; class DialogsPopupMenu; class QAbstractButton; class QGridLayout; class QGroupBox; class QListWidget; class QListWidgetItem; class QLabel; class QRadioButton; class QPushButton; class QCheckBox; class QToolButton; class QLineEdit; class UMLDoc; class UMLObject; class UMLOperation; class UMLDatatypeWidget; class UMLStereotypeWidget; class VisibilityEnumWidget; /** * @author Paul Hensgen * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class UMLOperationDialog : public SinglePageDialogBase { Q_OBJECT public: UMLOperationDialog(QWidget * parent, UMLOperation * pOperation); ~UMLOperationDialog(); protected: void setupDialog(); bool apply(); void insertTypesSorted(const QString& type = QString()); UMLOperation* m_operation; ///< The operation to represent. UMLDoc* m_doc; ///< The UMLDocument where all objects live. DialogsPopupMenu* m_menu; ///< Menu used in parameter list box. //GUI widgets QGridLayout* m_pGenLayout; QGroupBox* m_pParmsGB; QGroupBox* m_pGenGB; QListWidget* m_pParmsLW; QGroupBox* m_pScopeGB; QRadioButton* m_pPublicRB; QRadioButton* m_pPrivateRB; QRadioButton* m_pProtectedRB; QRadioButton* m_pImplementationRB; QLabel* m_pNameL; QLabel* m_pTagL[N_STEREOATTRS]; UMLDatatypeWidget* m_datatypeWidget; UMLStereotypeWidget* m_stereotypeWidget; QLineEdit* m_pNameLE; QLineEdit* m_pTagLE[N_STEREOATTRS]; QCheckBox* m_pAbstractCB; QCheckBox* m_pStaticCB; QCheckBox* m_pQueryCB; QCheckBox* m_virtualCB; QCheckBox* m_inlineCB; QCheckBox* m_pOverrideCB; QPushButton* m_pDeleteButton; QPushButton* m_pPropertiesButton; QToolButton* m_pUpButton; QToolButton* m_pDownButton; DocumentationWidget* m_docWidget; VisibilityEnumWidget* m_visibilityEnumWidget; public Q_SLOTS: void slotParmRightButtonPressed(const QPoint &p); void slotParmDoubleClick(QListWidgetItem *item); void slotMenuSelection(QAction* action); void slotNewParameter(); void slotDeleteParameter(); void slotParameterProperties(); void slotParameterUp(); void slotParameterDown(); void slotParamsBoxClicked(QListWidgetItem* parameterItem); void slotStereoTextChanged(const QString &); void slotNameChanged(const QString &); }; #endif
2,936
C++
.h
88
29.909091
92
0.698413
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,820
overwritedialog.h
KDE_umbrello/umbrello/dialogs/overwritedialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2022 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef OVERWRITEDIALOG_H #define OVERWRITEDIALOG_H #include "singlepagedialogbase.h" class QCheckBox; /** * Used by CodeGenerator::findFileName when it needs to ask * the user if they want to overwrite and existing file, generate a similar name * or cancel. Gives an option to apply the choice to all remaining files. * * Uses OK and Apply buttons but overrides their text and behaviour, probably * better to use user defined buttons but I couldn't work out how. * * @author Jonathan Riddell <jr@jriddell.org> * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class OverwriteDialog: public SinglePageDialogBase { Q_OBJECT public: OverwriteDialog(const QString& fileName, const QString& outputDirectory, bool applyToAllRemaining, QWidget *parent = nullptr); ~OverwriteDialog(); bool applyToAllRemaining(); static const int No = SinglePageDialogBase::Apply; // "Apply" button is repurposed for "No" private: QCheckBox* m_applyToAllRemaining; }; #endif
1,183
C++
.h
32
33.78125
96
0.761155
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,821
singlepagedialogbase.h
KDE_umbrello/umbrello/dialogs/singlepagedialogbase.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2012-2022 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef SINGLEPAGEDIALOGBASE_H #define SINGLEPAGEDIALOGBASE_H #include <QtGlobal> #include <QDialog> class QAbstractButton; class QDialogButtonBox; /** * Base class for single page property dialogs * * @author Ralf Habacker * * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class SinglePageDialogBase : public QDialog { Q_OBJECT public: explicit SinglePageDialogBase(QWidget *parent, bool withApplyButton = false, bool withSearchButton = false); virtual ~SinglePageDialogBase(); virtual bool apply(); enum ButtonCode { Cancel = 0, Ok = 1, Apply = 2 }; // keep in sync with MultiPageDialogBase void setCaption(const QString &caption); QWidget *mainWidget(); void setMainWidget(QWidget *widget); void setButtonText(ButtonCode code, const QString &text); protected Q_SLOTS: void slotApply(); void slotOk(); void slotCancel(); void slotClicked(QAbstractButton*); protected: QDialogButtonBox *m_buttonBox; QWidget *m_mainWidget; void enableButtonOk(bool enable); virtual bool validate(); }; #endif
1,252
C++
.h
42
26.547619
112
0.749376
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,822
umlviewdialog.h
KDE_umbrello/umbrello/dialogs/umlviewdialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UMLVIEWDIALOG_H #define UMLVIEWDIALOG_H // qt includes // kde includes // app includes #include "multipagedialogbase.h" #include "optionstate.h" class ClassOptionsPage; class DiagramPropertiesPage; class UMLScene; class UMLView; class UMLWidgetStylePage; class QFontDialog; /** * @author Paul Hensgen * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class UMLViewDialog : public MultiPageDialogBase { Q_OBJECT public: UMLViewDialog(QWidget * pParent, UMLScene * pScene); ~UMLViewDialog(); virtual void apply(); protected: void setupPages(); void setupDiagramPropertiesPage(); void setupDisplayPage(); void setupStylePage(); void applyPage(KPageWidgetItem*); void checkName(); UMLScene* m_pScene; ///< the scene to represent DiagramPropertiesPage* m_diagramPropertiesPage; ClassOptionsPage* m_pOptionsPage; KPageWidgetItem* m_pageStyleItem; KPageWidgetItem* m_pageFontItem; KPageWidgetItem* m_pageDisplayItem; KPageWidgetItem* m_pageDiagramItem; public Q_SLOTS: void slotOk(); void slotApply(); }; #endif
1,316
C++
.h
47
24.87234
92
0.73965
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,823
statedialog.h
KDE_umbrello/umbrello/dialogs/statedialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef STATEDIALOG_H #define STATEDIALOG_H // kde class includes #include "multipagedialogbase.h" //forward declarations class ActivityPage; class DocumentationWidget; class SelectDiagramWidget; class StateWidget; class KComboBox; class QLineEdit; class QGroupBox; class QLabel; /** * Displays the properties for a @ref StateWidget * @author Paul Hensgen * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class StateDialog : public MultiPageDialogBase { Q_OBJECT public: StateDialog(QWidget *parent, StateWidget * pWidget); /** * Returns whether changes were made. */ bool getChangesMade() const { return m_bChangesMade; } protected Q_SLOTS: void slotOk(); void slotApply(); protected: void setupPages(); void setupGeneralPage(); void setupActivityPage(); void applyPage(KPageWidgetItem*item); ActivityPage *m_pActivityPage; StateWidget *m_pStateWidget; ///< the widget to represent bool m_bChangesMade; ///< holds whether changes in the dialog have been made struct GeneralPageWidgets { QLabel * nameL, * typeL; SelectDiagramWidget *diagramLinkWidget; QLineEdit * nameLE, * typeLE; DocumentationWidget *docWidget; QGroupBox * generalGB; } m_GenPageWidgets; KPageWidgetItem *pageStyle, *pageActivity, *pageFont, *pageGeneral; }; #endif
1,565
C++
.h
55
24.654545
92
0.731642
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,825
settingsdialog.h
KDE_umbrello/umbrello/dialogs/settingsdialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2022 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef SETTINGSDIALOG_H #define SETTINGSDIALOG_H // app includes #include "multipagedialogbase.h" #include "optionstate.h" // kde includes #include <kcombobox.h> #include <kcolorbutton.h> #include <klineedit.h> class AutoLayoutOptionPage; class ClassOptionsPage; class CodeImportOptionsPage; class CodeGenOptionsPage; class CodeViewerOptionsPage; class DontAskAgainWidget; class GeneralOptionPage; class KColorButton; class KFontChooser; class UIOptionsPage; class QCheckBox; class QFontDialog; class QGroupBox; class QSpinBox; class UMLWidgetStylePage; /** * @author Paul Hensgen * modified by brian thomas Aug-2003 * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class SettingsDialog : public MultiPageDialogBase { Q_OBJECT public: SettingsDialog(QWidget * parent, Settings::OptionState *state); ~SettingsDialog(); void setCurrentPage(PageType page); //public methods bool getChangesApplied() const { return m_bChangesApplied; } QString getCodeGenerationLanguage(); protected: private: //private structs struct UIWidgets { QCheckBox * rightToLeftUI; QGroupBox * colorGB; QCheckBox * textColorCB; QCheckBox * lineColorCB; QCheckBox * fillColorCB; QCheckBox * lineWidthCB; QCheckBox * gridColorCB; QCheckBox * bgColorCB; KColorButton * textColorB; KColorButton * lineColorB; KColorButton * fillColorB; KColorButton * gridColorB; KColorButton * bgColorB; QSpinBox * lineWidthB; QCheckBox * useFillColorCB; } ;//end struct UIWidgets //private methods void setupUIPage(); void setupGeneralPage(); void setupClassPage(); void setupCodeImportPage(); void setupCodeGenPage(); void setupCodeViewerPage(Settings::CodeViewerState options); void setupAutoLayoutPage(); void applyPage(KPageWidgetItem*); //private attributes DontAskAgainWidget *m_dontAskAgainWidget; Settings::OptionState *m_pOptionState; UMLWidgetStylePage * m_pUserInterfacePage; AutoLayoutOptionPage * m_pAutoLayoutPage; CodeImportOptionsPage * m_pCodeImportPage; CodeGenOptionsPage * m_pCodeGenPage; CodeViewerOptionsPage * m_pCodeViewerPage; GeneralOptionPage * m_pGeneralPage; ClassOptionsPage * m_pClassPage; UIOptionsPage *m_uiOptionsPage; bool m_bChangesApplied; KPageWidgetItem *pageCodeViewer, *pageFont, *pageCodeImport, *pageCodeGen, *pageUserInterface, *pageClass, *pageAutoLayout, *pageGeneral; private Q_SLOTS: void slotApply(); void slotOk(); void slotDefault(); }; #endif
2,839
C++
.h
95
25.452632
92
0.745048
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,827
umlcheckconstraintdialog.h
KDE_umbrello/umbrello/dialogs/umlcheckconstraintdialog.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2003-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UMLCHECKCONSTRAINTDIALOG_H #define UMLCHECKCONSTRAINTDIALOG_H //kde includes #include "singlepagedialogbase.h" class UMLDoc; class UMLCheckConstraint; class QLineEdit; class QTextEdit; class QLabel; /** * A dialog page to display check constraint properties. * * @short A dialog page to display check constraint properties. * @author Sharan Rao * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class UMLCheckConstraintDialog : public SinglePageDialogBase { Q_OBJECT public: /** * Sets up the UMLCheckConstraintDialog * * @param parent The parent to the UMLUniqueConstraintDialog. * @param pUniqueConstraint The Unique Constraint to show the properties of. */ UMLCheckConstraintDialog(QWidget* parent, UMLCheckConstraint* pUniqueConstraint); /** * Standard destructor */ ~UMLCheckConstraintDialog(); protected: void setupDialog(); virtual bool apply(); private: UMLCheckConstraint* m_pCheckConstraint; /** * The GUI widgets */ QLabel* m_pNameL; QLineEdit* m_pNameLE; QLabel* m_pCheckConditionL; QTextEdit* m_pCheckConditionTE; }; #endif
1,335
C++
.h
49
23.714286
92
0.747054
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,828
uioptionspage.h
KDE_umbrello/umbrello/dialogs/pages/uioptionspage.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2018-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UIOPTIONSPAGE_H #define UIOPTIONSPAGE_H #include "dialogpagebase.h" namespace Settings { class OptionState; } class SelectLayoutTypeWidget; class KColorButton; class KComboBox; class QSpinBox; class QCheckBox; class QGroupBox; class QSpinBox; class QLabel; /** * A dialog page to display user interface options * This dialog is either embedded into @ref SettingsDialog, * @ref UMLViewDialog and @ref ClassPropertiesDialog * * @short A dialog page to display the user interface options. * @author Paul Hensgen * @author Ralf Habacker <ralf.habacker@freenet.de> * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class UIOptionsPage : public DialogPageBase { Q_OBJECT public: UIOptionsPage(QWidget* parent, Settings::OptionState *options); virtual ~UIOptionsPage(); void setDefaults(); void apply(); protected: Settings::OptionState *m_options; QCheckBox * m_rightToLeftUI; QGroupBox * m_colorGB; QCheckBox * m_textColorCB; QCheckBox * m_lineColorCB; QCheckBox * m_fillColorCB; QCheckBox * m_lineWidthCB; QCheckBox * m_gridColorCB; QCheckBox * m_bgColorCB; KColorButton * m_textColorB; KColorButton * m_lineColorB; KColorButton * m_fillColorB; KColorButton * m_gridColorB; KColorButton * m_bgColorB; QSpinBox * m_lineWidthB; QCheckBox * m_useFillColorCB; SelectLayoutTypeWidget *m_layoutTypeW; void setupPage(); protected Q_SLOTS: void slotTextCBChecked(bool value); void slotLineCBChecked(bool value); void slotFillCBChecked(bool value); void slotGridCBChecked(bool value); void slotBgCBChecked(bool value); void slotLineWidthCBChecked(bool value); }; #endif
1,877
C++
.h
64
26.015625
92
0.757492
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,829
classgeneralpage.h
KDE_umbrello/umbrello/dialogs/pages/classgeneralpage.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef CLASSGENERALPAGE_H #define CLASSGENERALPAGE_H #include "dialogpagebase.h" #include "n_stereoattrs.h" class DocumentationWidget; class QGroupBox; class QGridLayout; class QLabel; class QRadioButton; class QCheckBox; class QLineEdit; class KComboBox; class QLineEdit; class UMLObject; class UMLWidget; class ObjectWidget; class UMLDoc; class UMLArtifactTypeWidget; class UMLObjectNameWidget; class UMLPackageWidget; class UMLStereotypeWidget; class VisibilityEnumWidget; /** * Displays properties of a UMLObject in a dialog box. This is not usually directly * called. The class @ref ClassPropertiesDialog will set this up for you. * * @short Display properties on a UMLObject. * @author Paul Hensgen <phensgen@techie.com> * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class ClassGeneralPage : public DialogPageBase { Q_OBJECT public: /** * Sets up the ClassGenPage. * @param d The UMLDoc which controls controls object creation. * @param parent The parent to the ClassGenPage. * @param o The UMLObject to display the properties of. */ ClassGeneralPage(UMLDoc *d, QWidget *parent, UMLObject * o); /** * Sets up the ClassGenPage for an ObjectWidget * @param d The UMLDoc which controls controls object creation. * @param parent The parent to the ClassGenPage. * @param o The ObjectWidget to display the properties of. */ ClassGeneralPage(UMLDoc *d, QWidget *parent, ObjectWidget * o); /** * Sets up the ClassGenPage for a UMLWidget instance (used * for component instances on deployment diagrams) * * @param d The UMLDoc which controls controls object creation. * @param parent The parent to the ClassGenPage. * @param widget The UMLWidget to display the properties of. */ ClassGeneralPage(UMLDoc* d, QWidget* parent, UMLWidget* widget); /** * Standard deconstructor. */ ~ClassGeneralPage(); void apply(); private: UMLObject * m_pObject; ObjectWidget * m_pWidget; UMLWidget * m_pInstanceWidget; UMLDoc * m_pUmldoc; QGridLayout * m_pNameLayout; QCheckBox * m_pMultiCB, * m_pDrawActorCB, * m_pAbstractCB, * m_pDeconCB; QCheckBox * m_pExecutableCB; DocumentationWidget *m_docWidget; UMLObjectNameWidget *m_nameWidget; UMLObjectNameWidget *m_instanceNameWidget; UMLStereotypeWidget *m_stereotypeWidget; QLabel *m_pTagL [N_STEREOATTRS]; QLineEdit *m_pTagLE[N_STEREOATTRS]; UMLPackageWidget *m_packageWidget; UMLArtifactTypeWidget *m_artifactTypeWidget; VisibilityEnumWidget *m_visibilityEnumWidget; void insertStereotypesSorted(const QString& type); void setInstanceWidgetNameIfApplicable(const QString& name) const; public Q_SLOTS: void slotStereoTextChanged(const QString &); void slotActorToggled(bool state); }; #endif
3,104
C++
.h
90
30.766667
92
0.733911
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,830
classifierlistpage.h
KDE_umbrello/umbrello/dialogs/pages/classifierlistpage.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2003-2022 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef CLASSIFIERLISTPAGE_H #define CLASSIFIERLISTPAGE_H //app includes #include "dialogpagebase.h" #include "umlclassifierlistitemlist.h" #include "umlobject.h" class CodeTextEdit; class UMLClassifier; class UMLDoc; class QTextEdit; class QGroupBox; class QHBoxLayout; class QListWidget; class QListWidgetItem; class QPushButton; class QToolButton; class QVBoxLayout; /** * A dialog page to display classifier list properties. This is not normally setup * by you. It is used by the @ref ClassPropertiesDialog and new class wizard. * * @short A dialog page to display classifier properties. * @author Paul Hensgen, Jonathan Riddell * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class ClassifierListPage : public DialogPageBase { Q_OBJECT public: ClassifierListPage(QWidget* parent, UMLClassifier* classifier, UMLDoc* doc, UMLObject::ObjectType type); virtual ~ClassifierListPage(); void apply(); private: void setupPage(); void setupListGroup(int margin); void setupDocumentationGroup(int margin); void setupMoveButtons(QHBoxLayout* parentLayout); void setupActionButtons(const QString& itemType, QVBoxLayout* parentLayout); void enableWidgets(bool state); void saveCurrentItemDocumentation(); virtual UMLClassifierListItemList getItemList(); bool addToClassifier(UMLClassifierListItem* classifier, int position = -1); bool takeItem(UMLClassifierListItem* listItem, bool seekPeerBefore, int &peerIndex); void deleteMenu(); void printItemList(const QString &prologue); QGroupBox* m_docGB; QGroupBox* m_pItemListGB; QTextEdit* m_docTE; CodeTextEdit* m_pCodeTE; QListWidget* m_pItemListLB; QToolButton* m_pTopArrowB; QToolButton* m_pUpArrowB; QToolButton* m_pDownArrowB; QToolButton* m_pBottomArrowB; UMLDoc* m_doc; UMLClassifierListItem* m_pOldListItem; protected: void reloadItemListBox(); void hideArrowButtons(bool hide); UMLObject::ObjectType m_itemType; UMLClassifier* m_pClassifier; UMLClassifierListItem* m_pLastObjectCreated; QPushButton* m_pNewClassifierListItemButton; QPushButton* m_pDeleteListItemButton; QPushButton* m_pPropertiesButton; bool m_bSigWaiting; protected Q_SLOTS: void slotActivateItem(QListWidgetItem* item); void slotMenuSelection(QAction* action); void slotListItemCreated(UMLObject* object); void slotListItemModified(); void slotRightButtonPressed(const QPoint& p); void slotDoubleClick(QListWidgetItem* item); void slotTopClicked(); void slotUpClicked(); void slotDownClicked(); void slotBottomClicked(); void slotNewListItem(); void slotDelete(); void slotProperties(); }; #endif
2,995
C++
.h
88
29.772727
92
0.75766
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,831
dialogpagebase.h
KDE_umbrello/umbrello/dialogs/pages/dialogpagebase.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2014-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef DIALOGPAGEBASE_H #define DIALOGPAGEBASE_H // qt class includes #include <QWidget> /** * Base class for property dialogs * * @author Ralf Habacker <ralf.habacker@freenet.de> * * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class DialogPageBase : public QWidget { Q_OBJECT public: explicit DialogPageBase(QWidget *parent); virtual ~DialogPageBase(); virtual bool isModified(); protected: bool m_isModified; virtual void keyPressEvent(QKeyEvent *event); }; #endif
675
C++
.h
27
22.407407
92
0.755832
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,832
codeimportoptionspage.h
KDE_umbrello/umbrello/dialogs/pages/codeimportoptionspage.h
/* SPDX-FileCopyrightText: 2011-2014 Ralf Habacker <ralf.habacker@freenet.de> SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef CODEIMPORTOPTIONSPAGE_H #define CODEIMPORTOPTIONSPAGE_H #include "dialogpagebase.h" #include "ui_codeimportoptionspage.h" /** * This class is used in the code generation wizard and * also in SettingsDialog. * * @author Ralf Habacker */ class CodeImportOptionsPage : public DialogPageBase, private Ui::CodeImportOptionsPage { Q_OBJECT public: explicit CodeImportOptionsPage(QWidget *parent = nullptr); ~CodeImportOptionsPage(); void setDefaults(); void apply(); Q_SIGNALS: void applyClicked(); protected: }; #endif
691
C++
.h
27
22.925926
86
0.770167
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,833
umlwidgetstylepage.h
KDE_umbrello/umbrello/dialogs/pages/umlwidgetstylepage.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UMLWIDGETSTYLEPAGE_H #define UMLWIDGETSTYLEPAGE_H #include "optionstate.h" #include <QWidget> class SelectLayoutTypeWidget; class UMLScene; class WidgetBase; class KColorButton; class QLabel; class QPushButton; class QCheckBox; class QGroupBox; class QSpinBox; /** * @author Paul Hensgen * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class UMLWidgetStylePage : public QWidget { Q_OBJECT public: UMLWidgetStylePage(QWidget * pParent, WidgetBase * pWidget); UMLWidgetStylePage(QWidget * pParent, Settings::OptionState *options); UMLWidgetStylePage(QWidget * pParent, UMLScene *scene); virtual ~UMLWidgetStylePage(); void apply(); public Q_SLOTS: void slotTextButtonClicked(); void slotLineButtonClicked(); void slotFillButtonClicked(); void slotBackgroundButtonClicked(); void slotGridDotButtonClicked(); void slotLineWidthButtonClicked(); protected: WidgetBase * m_pUMLWidget; ///< the widget to set the style for UMLScene *m_scene; Settings::OptionState * m_options; //GUI widgets QGroupBox * m_pColorGB; QGroupBox * m_pStyleGB; QLabel * m_pTextColorL; QLabel * m_pLineColorL; QLabel * m_pFillColorL; QLabel * m_BackgroundColorL; QLabel * m_GridDotColorL; QLabel * m_lineWidthL; QCheckBox * m_pUseFillColorCB; QPushButton * m_pTextDefaultB; QPushButton * m_pLineDefaultB; QPushButton * m_pFillDefaultB; QPushButton * m_BackgroundDefaultB; QPushButton * m_GridDotDefaultB; QPushButton * m_lineWidthDefaultB; KColorButton * m_pTextColorB; KColorButton * m_pLineColorB; KColorButton * m_pFillColorB; KColorButton * m_BackgroundColorB; KColorButton * m_GridDotColorB; SelectLayoutTypeWidget *m_layoutTypeW; QSpinBox * m_lineWidthB; private: void init(); }; #endif
2,018
C++
.h
68
25.955882
92
0.75207
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,834
codevieweroptionspage.h
KDE_umbrello/umbrello/dialogs/pages/codevieweroptionspage.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Luis De la Parra <luis@delaparra.org> SPDX-FileCopyrightText: 2003-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef CODEVIEWEROPTIONSPAGE_H #define CODEVIEWEROPTIONSPAGE_H #include "dialogpagebase.h" #include "ui_codevieweroptionsbase.h" #include "codeviewerstate.h" /** * @author Brian Thomas */ class CodeViewerOptionsPage : public DialogPageBase, private Ui::CodeViewerOptionsBase { Q_OBJECT public: explicit CodeViewerOptionsPage (Settings::CodeViewerState options, QWidget *parent = nullptr, const char *name = nullptr); ~CodeViewerOptionsPage(); Settings::CodeViewerState getOptions(); void apply(); private: Settings::CodeViewerState m_options; protected Q_SLOTS: Q_SIGNALS: void applyClicked(); }; #endif
867
C++
.h
28
28.142857
128
0.779518
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,835
constraintlistpage.h
KDE_umbrello/umbrello/dialogs/pages/constraintlistpage.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2003-2022 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef CONSTRAINTLISTPAGE_H #define CONSTRAINTLISTPAGE_H //app includes #include "umlclassifierlistitemlist.h" #include "classifierlistpage.h" //qt includes #include <QWidget> class QAction; class QMenu; /** * A dialog page to display entity constraint properties. * * @short An extension to the classifier list dialog page to display constraint properties. * @author Sharan Rao * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class ConstraintListPage : public ClassifierListPage { Q_OBJECT public: ConstraintListPage(QWidget* parent, UMLClassifier* classifier, UMLDoc* doc, UMLObject::ObjectType type); virtual ~ConstraintListPage(); private: QAction* newUniqueConstraintAction; QAction* newPrimaryKeyConstraintAction; QAction* newForeignKeyConstraintAction; QAction* newCheckConstraintAction; void setupActions(); private Q_SLOTS: void slotNewUniqueConstraint(); void slotNewPrimaryKeyConstraint(); void slotNewForeignKeyConstraint(); void slotNewCheckConstraint(); virtual UMLClassifierListItemList getItemList(); protected: bool greaterThan(UMLObject::ObjectType ct1, UMLObject::ObjectType ct2); QMenu* buttonMenu; }; #endif
1,405
C++
.h
44
28.386364
92
0.779346
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,836
umlroleproperties.h
KDE_umbrello/umbrello/dialogs/pages/umlroleproperties.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2003-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UMLROLEPROPERTIES_H #define UMLROLEPROPERTIES_H #include "dialogpagebase.h" #include "ui_umlrolepropertiesbase.h" #include "umlrole.h" class UMLRolePropertiesBase : public DialogPageBase, public Ui::UMLRolePropertiesBase { public: explicit UMLRolePropertiesBase(QWidget *parent) : DialogPageBase(parent) { setupUi(this); } }; /** * Displays properties of a UMLRole in a widget which may be used as * a properties page or a stand-alone dialog. * * @author Brian Thomas <brian.thomas@gsfc.nasa.gov> */ class UMLRoleProperties : public UMLRolePropertiesBase { Q_OBJECT public: /** * Sets up the UMLRoleProperties. * * @param parent The parent widget to the UMLRoleProperties. * @param role The UMLRole to display the properties of. */ UMLRoleProperties(QWidget *parent, UMLRole *role); /** * Standard deconstructor. */ ~UMLRoleProperties(); void apply(); protected: // the parent role object UMLRole * m_pRole; private: void constructWidget(); }; #endif
1,210
C++
.h
45
23.577778
92
0.730269
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,837
associationrolepage.h
KDE_umbrello/umbrello/dialogs/pages/associationrolepage.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2003-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef ASSOCIATIONROLEPAGE_H #define ASSOCIATIONROLEPAGE_H #include "dialogpagebase.h" class AssociationWidget; class KComboBox; class QLineEdit; class QTextEdit; class ObjectWidget; class QRadioButton; class UMLDoc; class UMLObject; class VisibilityEnumWidget; /** * Displays properties of a UMLObject in a dialog box. This is not usually directly * called. The class @ref AssociationPropertiesDialog will set this up for you. * * @short Display properties on a UMLObject. * @author Paul Hensgen <phensgen@techie.com> * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class AssociationRolePage : public DialogPageBase { Q_OBJECT public: AssociationRolePage(QWidget *parent, AssociationWidget *a); ~AssociationRolePage(); void apply(); private: QLineEdit *m_pRoleALE, *m_pRoleBLE; KComboBox *m_pMultiACB, *m_pMultiBCB; QTextEdit *m_docA, *m_docB; AssociationWidget *m_pAssociationWidget; ObjectWidget *m_pWidget; QRadioButton *m_ChangeableARB, *m_AddOnlyARB, *m_FrozenARB; QRadioButton *m_ChangeableBRB, *m_AddOnlyBRB, *m_FrozenBRB; VisibilityEnumWidget *m_visibilityWidgetA; VisibilityEnumWidget *m_visibilityWidgetB; void constructWidget(); public Q_SLOTS: // /** // * When the draw as actor check box is toggled, the draw // * as multi instance need to be enabled/disabled. They // * both can't be available at the same time. // */ // void slotActorToggled(bool state); }; #endif
1,652
C++
.h
51
29.823529
92
0.755653
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,838
defaultcodegenpolicypage.h
KDE_umbrello/umbrello/dialogs/pages/defaultcodegenpolicypage.h
/* Form interface generated from reading ui file 'Defaultcodegenpolicypage.ui' Created: Fri Aug 1 12:47:23 2003 by: The User Interface Compiler ($Id$) WARNING! All changes made in this file will be lost! */ #ifndef DEFAULTCODEGENPOLICYPAGE_H #define DEFAULTCODEGENPOLICYPAGE_H #include "codegenerationpolicypage.h" class QLabel; class QWidget; class DefaultCodeGenPolicyPage : public CodeGenerationPolicyPage { Q_OBJECT public: explicit DefaultCodeGenPolicyPage(QWidget *parent = nullptr, const char *name = nullptr, CodeGenPolicyExt *policy = nullptr); ~DefaultCodeGenPolicyPage(); private: QLabel* m_textLabel; }; #endif // DEFAULTCODEGENPOLICYPAGE_H
696
C++
.h
21
30.190476
131
0.788288
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,839
activitypage.h
KDE_umbrello/umbrello/dialogs/pages/activitypage.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef ACTIVITYPAGE_H #define ACTIVITYPAGE_H #include "dialogpagebase.h" //qt includes #include <QListWidgetItem> #include <QWidget> class StateWidget; class QGroupBox; class QListWidget; class QPushButton; class QToolButton; /** * @author Paul Hensgen * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class ActivityPage : public DialogPageBase { Q_OBJECT public: ActivityPage(QWidget * pParent, StateWidget * pWidget); ~ActivityPage(); void setupPage(); void updateActivities(); protected: void enableWidgets(bool state); /** * The widget to get the activities from. */ StateWidget * m_pStateWidget; /** * GUI widgets */ QListWidget* m_pActivityLW; QGroupBox* m_pActivityGB; QToolButton* m_pUpArrowB; QToolButton* m_pDownArrowB; QToolButton* m_pTopArrowB; QToolButton* m_pBottomArrowB; QPushButton* m_pDeleteActivityButton; QPushButton* m_pRenameButton; public Q_SLOTS: void slotMenuSelection(QAction* action); void slotClicked(QListWidgetItem* item); void slotDoubleClicked(QListWidgetItem* item); void slotRightButtonPressed(const QPoint& p); void slotTopClicked(); void slotUpClicked(); void slotDownClicked(); void slotBottomClicked(); void slotNewActivity(); void slotDelete(); void slotRename(); }; #endif
1,537
C++
.h
58
22.758621
92
0.736842
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,840
generaloptionpage.h
KDE_umbrello/umbrello/dialogs/pages/generaloptionpage.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef GENERALOPTIONPAGE_H #define GENERALOPTIONPAGE_H #include "dialogpagebase.h" class QLineEdit; class KComboBox; class QGroupBox; class QCheckBox; class QLabel; class QSpinBox; class SelectLayoutTypeWidget; /** * A dialog page to display auto layouts options * * @author Ralf Habacker <ralf.habacker@freenet.de> * * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class GeneralOptionPage : public DialogPageBase { Q_OBJECT public: explicit GeneralOptionPage(QWidget *parent = nullptr); virtual ~GeneralOptionPage(); void setDefaults(); void apply(); Q_SIGNALS: void applyClicked(); protected: struct GeneralWidgets { QGroupBox * miscGB; QGroupBox * autosaveGB; QGroupBox * startupGB; QSpinBox * timeISB; KComboBox * diagramKB; KComboBox * languageKB; QCheckBox * undoCB; QCheckBox * tabdiagramsCB; QCheckBox * newcodegenCB; QCheckBox * footerPrintingCB; QCheckBox * uml2CB; QCheckBox * autosaveCB; QCheckBox * loadlastCB; // Allow definition of Suffix for autosave // (Default: ".xmi"), private Ui::GeneralOptionPage QLineEdit * autosaveSuffixT; QLabel * autosaveSuffixL; // End AutoSave Suffix QLabel * startL; QLabel * autosaveL; QLabel * defaultLanguageL; } m_GeneralWidgets; void insertDiagram(const QString& type, int index); void insertLayoutType(const QString& type, int index); protected Q_SLOTS: void slotAutosaveCBClicked(); }; #endif
1,757
C++
.h
61
23.819672
92
0.702976
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,841
diagrampropertiespage.h
KDE_umbrello/umbrello/dialogs/pages/diagrampropertiespage.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2014 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef DIAGRAMPROPERTIESPAGE_H #define DIAGRAMPROPERTIESPAGE_H #include "dialogpagebase.h" #include "ui_diagrampropertiespage.h" class UMLScene; /** * A dialog page to display diagram properties */ class DiagramPropertiesPage : public DialogPageBase, public Ui::DiagramPropertiesPage { Q_OBJECT public: explicit DiagramPropertiesPage(QWidget *parent, UMLScene *scene); virtual ~DiagramPropertiesPage(); void setDefaults(); void apply(); Q_SIGNALS: void applyClicked(); protected: UMLScene *m_scene; bool checkUniqueDiagramName(); }; #endif
727
C++
.h
27
24.111111
92
0.777778
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,842
diagramprintpage.h
KDE_umbrello/umbrello/dialogs/pages/diagramprintpage.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2022 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef DIAGRAMPRINTPAGE_H #define DIAGRAMPRINTPAGE_H #include "basictypes.h" #include "dialogpagebase.h" #include "umlview.h" #include <QList> class QListWidget; class QRadioButton; class QGroupBox; class KComboBox; class UMLDoc; /** * This is a page on the print dialog to select what diagram(s) * you wish to print. You add it to the QPrinter instance. * * You will then need to get the options as shown in QPrinter. * * @short A print dialog page. * @author Paul Hensgen <phensgen@techie.com> * @see QPrinter * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class DiagramPrintPage : public DialogPageBase { Q_OBJECT public: DiagramPrintPage(QWidget * parent, UMLDoc *doc); ~DiagramPrintPage(); int printUmlCount(); QString printUmlDiagram(int sel); bool isValid(QString& msg); public Q_SLOTS: void slotClicked(); void slotActivated(int index); private: bool isSelected(int index); QGroupBox * m_pFilterGB; QGroupBox * m_pSelectGB; QListWidget * m_pSelectLW; QRadioButton * m_pAllRB; QRadioButton * m_pCurrentRB; QRadioButton * m_pSelectRB; QRadioButton * m_pTypeRB; KComboBox * m_pTypeCB; UMLDoc * m_doc; Uml::DiagramType::Enum m_ViewType; QList<Uml::ID::Type> m_nIdList; ///< list containing the IDs of diagrams to print enum FilterType{Current = 0, All, Select, Type}; }; #endif
1,569
C++
.h
54
25.888889
92
0.732
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,843
codegenerationpolicypage.h
KDE_umbrello/umbrello/dialogs/pages/codegenerationpolicypage.h
/* SPDX-FileCopyrightText: 2003 Brian Thomas <brian.thomas@gsfc.nasa.gov> SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef CODEGENERATIONPOLICYPAGE_H #define CODEGENERATIONPOLICYPAGE_H #include "dialogpagebase.h" class CodeGenPolicyExt; /** * @author Brian Thomas */ class CodeGenerationPolicyPage : public DialogPageBase { Q_OBJECT public: explicit CodeGenerationPolicyPage (QWidget *parent = nullptr, const char *name=nullptr, CodeGenPolicyExt *policy = nullptr); virtual ~CodeGenerationPolicyPage(); void setDefaults(); protected: CodeGenPolicyExt * m_parentPolicy; public Q_SLOTS: virtual void apply(); }; #endif
669
C++
.h
24
24.875
128
0.7813
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,844
packagecontentspage.h
KDE_umbrello/umbrello/dialogs/pages/packagecontentspage.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2003-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef PACKAGECONTENTSPAGE_H #define PACKAGECONTENTSPAGE_H #include "dialogpagebase.h" class UMLPackage; class QGroupBox; class QListWidget; class QListWidgetItem; /** * @short The page shows all the objects that belong to a @ref UMLPackage. * @author Oliver Kellogg <okellogg@users.sourceforge.net> * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class PackageContentsPage : public DialogPageBase { Q_OBJECT public: PackageContentsPage(QWidget *parent, UMLPackage *pkg); ~PackageContentsPage(); private: UMLPackage * m_package; QListWidget * m_contentLW; QGroupBox * m_contentGB; void fillListBox(); public Q_SLOTS: void slotDoubleClick(QListWidgetItem * item); void slotShowContextMenu(const QPoint&); void slotMenuSelection(QAction* action); }; #endif
977
C++
.h
33
26.818182
92
0.773746
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,845
classassociationspage.h
KDE_umbrello/umbrello/dialogs/pages/classassociationspage.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef CLASSASSOCIATIONSPAGE_H #define CLASSASSOCIATIONSPAGE_H #include "associationwidgetlist.h" #include "dialogpagebase.h" class AssociationWidget; class QGroupBox; class QListWidget; class QListWidgetItem; class UMLObject; class UMLScene; /** * Displays a page on the tabbed dialog window of @ref ClassPropertiesDialog. * The page shows all the Associations that belong to a UMLClassifier. * * @short The page shows all the Associations that belong to a UMLClassifier. * @author Paul Hensgen <phensgen@techie.com> * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class ClassAssociationsPage : public DialogPageBase { Q_OBJECT public: ClassAssociationsPage(QWidget *parent, UMLScene * scene, UMLObject * o); ~ClassAssociationsPage(); private: UMLObject *m_pObject; UMLScene *m_pScene; QListWidget *m_pAssocLW; QGroupBox *m_pAssocGB; AssociationWidgetList m_List; void fillListBox(); public Q_SLOTS: void slotDoubleClick(QListWidgetItem *item); void slotRightButtonPressed(const QPoint &p); void slotMenuSelection(QAction* action); }; #endif
1,325
C++
.h
41
29.585366
92
0.753135
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,846
classoptionspage.h
KDE_umbrello/umbrello/dialogs/pages/classoptionspage.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef CLASSOPTIONSPAGE_H #define CLASSOPTIONSPAGE_H #include "optionstate.h" #include <QWidget> class ClassifierWidget; class EntityWidget; class UMLScene; class KComboBox; class QCheckBox; class QGroupBox; class QLabel; /** * A dialog page to display options for class related options. * This dialog is either embedded into @ref SettingsDialog, * @ref UMLViewDialog and @ref ClassPropertiesDialog * * @short A dialog page to display the class related options. * @author Paul Hensgen <phensgen@techie.com> * @see ClassPropertiesDialog * @see SettingsDialog * @see UMLViewDialog * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class ClassOptionsPage : public QWidget { public: ClassOptionsPage(QWidget* pParent, ClassifierWidget* pWidget); ClassOptionsPage(QWidget* pParent, UMLScene *scene); ClassOptionsPage(QWidget* pParent, Settings::OptionState *options, bool isDiagram=true); ClassOptionsPage(QWidget* pParent, EntityWidget* widget); virtual ~ClassOptionsPage(); void setDefaults(); void apply(); void setWidget(ClassifierWidget * pWidget); protected: void init(); void setupPage(); void setupPageFromScene(); void setupClassPageOption(); void setupPageFromEntityWidget(); void applyWidget(); void applyOptionState(); void applyScene(); void applyEntityWidget(); KComboBox * createShowStereotypeCB(QGroupBox * grpBox); void insertAttribScope(const QString& type, int index = -1); void insertOperationScope(const QString& type, int index = -1); //GUI widgets QGroupBox * m_visibilityGB; QCheckBox * m_showVisibilityCB, * m_showAttSigCB; QCheckBox * m_showOpSigCB, * m_showAttsCB, * m_showOpsCB; KComboBox * m_showStereotypeCB; QCheckBox * m_showPackageCB, * m_showPublicOnlyCB; QCheckBox * m_showAttribAssocsCB; QCheckBox * m_showDocumentationCB; QCheckBox * m_drawAsCircleCB; QGroupBox * m_scopeGB; QLabel * m_attributeLabel; QLabel * m_operationLabel; KComboBox * m_attribScopeCB; KComboBox * m_operationScopeCB; ClassifierWidget* m_pWidget; ///< The classifier widget to represent in the dialog page. EntityWidget* m_entityWidget; ///< The entity widget to represent in the dialog page. UMLScene* m_scene; ///< The scene to represent in the dialog page. Settings::OptionState *m_options; ///< The OptionState structure to represent in the dialog page. bool m_isDiagram; ///< Flag indicating that page is for diagram property dialog }; #endif
2,703
C++
.h
72
33.902778
101
0.753058
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,847
notepage.h
KDE_umbrello/umbrello/dialogs/pages/notepage.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef NOTEPAGE_H #define NOTEPAGE_H #include "dialogpagebase.h" class DocumentationWidget; class NoteWidget; /** * @author Ralf Habacker * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class NotePage : public DialogPageBase { Q_OBJECT public: NotePage(QWidget *parent, NoteWidget *note); ~NotePage(); bool apply(); protected: DocumentationWidget *m_docWidget; ///< widget holding the documentation NoteWidget *m_noteWidget; ///< note widget to show documentation for }; #endif
683
C++
.h
25
24.68
92
0.75576
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,848
autolayoutoptionpage.h
KDE_umbrello/umbrello/dialogs/pages/autolayoutoptionpage.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef AUTOLAYOUTOPTIONPAGE_H #define AUTOLAYOUTOPTIONPAGE_H #include "dialogpagebase.h" #include "ui_autolayoutoptionpage.h" /** * A dialog page to display auto layouts options * * @author Ralf Habacker <ralf.habacker@freenet.de> * * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class AutoLayoutOptionPage : public DialogPageBase, private Ui::AutoLayoutOptionPage { Q_OBJECT public: explicit AutoLayoutOptionPage(QWidget *parent = nullptr); virtual ~AutoLayoutOptionPage(); void setDefaults(); void apply(); Q_SIGNALS: void applyClicked(); protected Q_SLOTS: void slotAutoDotPathCBClicked(bool value); }; #endif
827
C++
.h
29
25.793103
92
0.771176
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,849
associationgeneralpage.h
KDE_umbrello/umbrello/dialogs/pages/associationgeneralpage.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2003-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef ASSOCIATIONGENERALPAGE_H #define ASSOCIATIONGENERALPAGE_H #include "basictypes.h" #include "dialogpagebase.h" #include <QList> #include <QWidget> class AssociationWidget; class DocumentationWidget; class QCheckBox; class QGridLayout; class QLabel; class KComboBox; class QLineEdit; class ObjectWidget; class UMLDoc; class UMLObject; /** * Displays properties of a UMLObject in a dialog box. This is not usually directly * called. The class @ref AssociationPropertiesDialog will set this up for you. * * @short Display properties on a UMLObject. * @author Paul Hensgen <phensgen@techie.com> * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class AssociationGeneralPage : public DialogPageBase { Q_OBJECT public: AssociationGeneralPage(QWidget *parent, AssociationWidget *a); ~AssociationGeneralPage(); void apply(); private: QGridLayout *m_pNameAndTypeLayout; QLabel *m_pAssocNameL; QLineEdit *m_pAssocNameLE; // is used if m_pStereoChkB is unchecked KComboBox *m_pAssocNameComB; // is used if m_pStereoChkB is checked QCheckBox *m_pStereoChkB; KComboBox *m_pTypeCB; /* Choices for the QComboBox, and we store ints and strings so we can translate both ways */ QList<Uml::AssociationType::Enum> m_AssocTypes; QStringList m_AssocTypeStrings; DocumentationWidget *m_docWidget; AssociationWidget *m_pAssociationWidget; ObjectWidget *m_pWidget; void constructWidget(); public Q_SLOTS: void slotStereoCheckboxChanged(int state); }; #endif
1,714
C++
.h
54
28.777778
92
0.773665
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,850
selectoperationpage.h
KDE_umbrello/umbrello/dialogs/pages/selectoperationpage.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2022 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef SELECTOPERATIONPAGE_H #define SELECTOPERATIONPAGE_H #include "dialogpagebase.h" class KComboBox; class QLineEdit; class QCheckBox; class QGroupBox; class QLabel; class QPushButton; class LinkWidget; class MessageWidget; class UMLClassifier; class UMLView; class DocumentationWidget; /** * A dialog page used to select an operation. * * @short A dialog page to select an operation. * @author Paul Hensgen <phensgen@techie.com> * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class SelectOperationPage : public DialogPageBase { Q_OBJECT public: SelectOperationPage(UMLView *parent, UMLClassifier *c, LinkWidget *widget, bool enableAutoIncrement = true); ~SelectOperationPage(); QString getOpText(); bool isClassOp() const; QString getSeqNumber(); bool autoIncrementSequence(); void setAutoIncrementSequence(bool state); void setSeqNumber(const QString &num); void setCustomOp(const QString &op); bool setClassOp(const QString &op); void setupDialog(); bool apply(); Q_SIGNALS: void enableButtonOk(bool state); protected: void setupOperationsList(); private: static const int OP = 0; static const int CUSTOM = 1; QGroupBox *m_pOpGB; KComboBox *m_pOpCB; QLabel *m_pSeqL; QLineEdit *m_pOpLE, *m_pSeqLE; QLabel *m_pCustomRB, *m_pOpRB; QPushButton *m_newOperationButton; QCheckBox *m_pOpAS; QString m_Text; DocumentationWidget *m_docWidget; int m_nOpCount; int m_id; ///< takes on the value OP or CUSTOM according to what the user selected UMLView *m_pView; UMLClassifier *m_classifier; LinkWidget *m_widget; bool m_enableAutoIncrement; public Q_SLOTS: void slotAutoIncrementChecked(bool state); void slotNewOperation(); void slotIndexChanged(int index); void slotTextChanged(const QString &text); }; #endif
2,173
C++
.h
70
27.542857
112
0.705177
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,851
umlpackagewidget.h
KDE_umbrello/umbrello/dialogs/widgets/umlpackagewidget.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UMLPACKAGEWIDGET_H #define UMLPACKAGEWIDGET_H #include <QWidget> class UMLObject; class KComboBox; class QGridLayout; class QLabel; class UMLPackageWidget : public QWidget { Q_OBJECT public: explicit UMLPackageWidget(UMLObject *o, QWidget *parent = nullptr); ~UMLPackageWidget(); void addToLayout(QGridLayout *layout, int row); void apply(); protected: QLabel *m_label; KComboBox *m_editField; UMLObject *m_object; }; #endif // UMLPACKAGEWIDGET_H
642
C++
.h
25
22.72
92
0.763158
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,852
documentationwidget.h
KDE_umbrello/umbrello/dialogs/widgets/documentationwidget.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef DOCUMENTATIONWIDGET_H #define DOCUMENTATIONWIDGET_H #include <QWidget> class AssociationWidget; class CodeTextEdit; class UMLObject; class UMLWidget; class QTextEdit; class QGridLayout; class QGroupBox; class DocumentationWidget : public QWidget { Q_OBJECT public: explicit DocumentationWidget(UMLObject *o, QWidget *parent = nullptr); explicit DocumentationWidget(UMLWidget *w, QWidget *parent = nullptr); explicit DocumentationWidget(AssociationWidget *w, QWidget *parent = nullptr); ~DocumentationWidget(); void apply(); protected: QGroupBox *m_box; QTextEdit *m_editField; CodeTextEdit *m_codeEditField; UMLObject *m_object; UMLWidget *m_widget; AssociationWidget *m_assocWidget; void init(const QString &text); }; #endif // DOCUMENTATIONWIDGET_H
965
C++
.h
33
26.151515
92
0.777898
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,853
umldatatypewidget.h
KDE_umbrello/umbrello/dialogs/widgets/umldatatypewidget.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2016-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UMLDATATYPEWIDGET_H #define UMLDATATYPEWIDGET_H #include "comboboxwidgetbase.h" class UMLAttribute; class UMLEntityAttribute; class UMLClassifier; class UMLClassifierListItem; class UMLOperation; class UMLTemplate; class UMLDatatypeWidget : public ComboBoxWidgetBase { Q_OBJECT public: UMLDatatypeWidget(UMLAttribute *attribute, QWidget *parent= nullptr); UMLDatatypeWidget(UMLClassifierListItem *datatype, QWidget *parent= nullptr); UMLDatatypeWidget(UMLEntityAttribute *entityAttribute, QWidget *parent= nullptr); UMLDatatypeWidget(UMLOperation *operation, QWidget *parent= nullptr); UMLDatatypeWidget(UMLTemplate *_template, QWidget *parent= nullptr); bool apply(); void reset(); Q_SIGNALS: void editTextChanged(const QString &); protected: UMLAttribute *m_attribute; UMLClassifierListItem *m_datatype; UMLEntityAttribute *m_entityAttribute; UMLOperation *m_operation; UMLTemplate *m_template; UMLClassifier *m_parent; void init(); bool applyAttribute(); bool applyEntityAttribute(); bool applyOperation(); bool applyParameter(); bool applyTemplate(); void initTypesBox(QStringList &types, const QString &type); void insertTypesFromConcepts(QStringList &types, bool fullName = true); void insertTypesFromDatatypes(QStringList &types); void insertTypesSortedAttribute(const QString &type); void insertTypesSortedEntityAttribute(const QString &type); void insertTypesSortedOperation(const QString &type); void insertTypesSortedParameter(const QString &type); void insertTypesSortedTemplate(const QString &type); }; #endif
1,805
C++
.h
49
33.142857
92
0.785469
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,854
comboboxwidgetbase.h
KDE_umbrello/umbrello/dialogs/widgets/comboboxwidgetbase.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2019-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef COMBOBOXWIDGETBASE_H #define COMBOBOXWIDGETBASE_H #include <QWidget> class KComboBox; class QGridLayout; class QLabel; class ComboBoxWidgetBase : public QWidget { Q_OBJECT public: explicit ComboBoxWidgetBase(const QString &title, const QString &postLabel = QString(), QWidget *parent = nullptr); void addToLayout(QGridLayout *layout, int row, int startColumn = 0); KComboBox *editField(); protected: QLabel *m_label; QLabel *m_postLabel; KComboBox *m_editField; }; #endif // COMBOBOXWIDGETBASE_H
684
C++
.h
23
26.869565
119
0.769113
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,855
selectdiagramwidget.h
KDE_umbrello/umbrello/dialogs/widgets/selectdiagramwidget.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2019-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef SELECTDIAGRAMWIDGET_H #define SELECTDIAGRAMWIDGET_H #include "basictypes.h" #include "comboboxwidgetbase.h" /** * This widget provides selecting a diagram from the list of currently available diagrams * @author Ralf Habacker */ class SelectDiagramWidget : public ComboBoxWidgetBase { Q_OBJECT public: explicit SelectDiagramWidget(const QString &title, QWidget *parent = nullptr); void setupWidget(Uml::DiagramType::Enum type, const QString &currentName, const QString &excludeName, bool withNewEntry = true); QString currentText(); Uml::ID::Type currentID(); }; #endif // SELECTDIAGRAMWIDGET_H
776
C++
.h
22
32.590909
132
0.780749
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,856
imagetypewidget.h
KDE_umbrello/umbrello/dialogs/widgets/imagetypewidget.h
/* SPDX-FileCopyrightText: 2015-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #ifndef IMAGETYPEWIDGET_H #define IMAGETYPEWIDGET_H #include <QWidget> // KDE forwards class KComboBox; // Qt forwards class QHBoxLayout; class QLabel; class ImageTypeWidget : public QWidget { Q_OBJECT public: explicit ImageTypeWidget(const QStringList &imageTypes, const QString &_default, QWidget *parent = nullptr); QString currentType(); private: QLabel *m_label; KComboBox* m_comboBox; ///< The image type selected. Q_SIGNALS: void currentIndexChanged(const QString &index); private Q_SLOTS: void slotCurrentIndexChanged(const QString &index); }; #endif // IMAGETYPEWIDGET_H
807
C++
.h
27
27.185185
112
0.774026
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,857
umlstereotypewidget.h
KDE_umbrello/umbrello/dialogs/widgets/umlstereotypewidget.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2014,2019 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UMLSTEREOTYPEWIDGET_H #define UMLSTEREOTYPEWIDGET_H #include "comboboxwidgetbase.h" class UMLObject; class UMLStereotype; class UMLStereotypeWidget : public ComboBoxWidgetBase { public: explicit UMLStereotypeWidget(UMLObject *object, QWidget *parent= nullptr); void setEditable(bool state); void apply(); protected: UMLObject *m_object; void insertItems(UMLStereotype *type); }; #endif // UMLSTEREOTYPEWIDGET_H
598
C++
.h
20
27.1
97
0.792982
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,858
resolutionwidget.h
KDE_umbrello/umbrello/dialogs/widgets/resolutionwidget.h
/* SPDX-FileCopyrightText: 2015-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #ifndef RESOLUTIONWIDGET_H #define RESOLUTIONWIDGET_H #include "comboboxwidgetbase.h" class KComboBox; class QHBoxLayout; class QLabel; class ResolutionWidget : public ComboBoxWidgetBase { Q_OBJECT public: explicit ResolutionWidget(QWidget *parent = nullptr); float currentResolution(); private Q_SLOTS: void slotTextChanged(const QString &text); private: QStringList resolutions(); }; #endif // RESOLUTIONWIDGET_H
631
C++
.h
22
26.045455
92
0.793677
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,859
selectlayouttypewidget.h
KDE_umbrello/umbrello/dialogs/widgets/selectlayouttypewidget.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2019-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef SELECTLAYOUTTYPEWIDGET_H #define SELECTLAYOUTTYPEWIDGET_H #include "basictypes.h" #include "comboboxwidgetbase.h" class SelectLayoutTypeWidget : public ComboBoxWidgetBase { public: explicit SelectLayoutTypeWidget(const QString &title, Uml::LayoutType::Enum selected, QWidget *parent = nullptr); void setCurrentLayout(Uml::LayoutType::Enum layout); Uml::LayoutType::Enum currentLayout(); }; #endif // SELECTLAYOUTTYPEWIDGET_H
596
C++
.h
16
34.625
117
0.799652
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,860
visibilityenumwidget.h
KDE_umbrello/umbrello/dialogs/widgets/visibilityenumwidget.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef VISIBILITYENUMWIDGET_H #define VISIBILITYENUMWIDGET_H #include "basictypes.h" #include <QMap> #include <QWidget> class AssociationWidget; class UMLObject; class QVBoxLayout; class QGroupBox; class QRadioButton; class VisibilityEnumWidget : public QWidget { Q_OBJECT public: typedef QMap<Uml::Visibility::Enum,QString> TextMap; typedef QMap<Uml::Visibility::Enum,QRadioButton*> ButtonMap; explicit VisibilityEnumWidget(UMLObject *o, QWidget *parent= nullptr); VisibilityEnumWidget(AssociationWidget *a, Uml::RoleType::Enum role, QWidget *parent= nullptr); ~VisibilityEnumWidget(); void addToLayout(QVBoxLayout *layout); void apply(); protected: TextMap m_texts; QGroupBox *m_box; ButtonMap m_buttons; UMLObject *m_object; AssociationWidget *m_widget; Uml::RoleType::Enum m_role; void init(const QString &title); }; #endif // VISIBILITYENUMWIDGET_H
1,073
C++
.h
35
27.4
100
0.767283
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,861
defaultvaluewidget.h
KDE_umbrello/umbrello/dialogs/widgets/defaultvaluewidget.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2018-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef DEFAULTVALUEWIDGET_H #define DEFAULTVALUEWIDGET_H #include <QWidget> class UMLObject; class QGridLayout; class QString; /** * Widget for showing/editing default values * * Depending on the given UML data type the widget shows * either a simple edit line or a list box with enum * literals from which the user can select entries. * * @author Ralf Habacker <ralf.habacker@freenet.de> */ class DefaultValueWidget : public QWidget { Q_OBJECT public: explicit DefaultValueWidget(UMLObject *type, const QString &value, QWidget *parent = nullptr); ~DefaultValueWidget(); void addToLayout(QGridLayout *layout, int row); QString value() const; public Q_SLOTS: void setType(UMLObject *type); void setType(const QString &type); protected: void showEvent(QShowEvent *event); void hideEvent(QHideEvent *event); private: class Private; Private *m_d; }; #endif // DEFAULTVALUEWIDGET_H
1,086
C++
.h
38
25.710526
98
0.760849
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,862
umlobjectnamewidget.h
KDE_umbrello/umbrello/dialogs/widgets/umlobjectnamewidget.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UMLOBJECTNAMEWIDGET_H #define UMLOBJECTNAMEWIDGET_H #include <QWidget> class QLineEdit; class QGridLayout; class QLabel; class UMLObjectNameWidget : public QWidget { public: UMLObjectNameWidget(const QString &label, const QString &text, QWidget *parent= nullptr); ~UMLObjectNameWidget(); void addToLayout(QGridLayout *layout, int row); QString text(); void reset(); protected: QLabel *m_label; QLineEdit *m_editField; QString m_text; }; #endif // UMLOBJECTNAMEWIDGET_H
663
C++
.h
24
24.625
94
0.765452
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,863
umlartifacttypewidget.h
KDE_umbrello/umbrello/dialogs/widgets/umlartifacttypewidget.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UMLARTIFACTTYPEWIDGET_H #define UMLARTIFACTTYPEWIDGET_H #include "artifact.h" #include <QMap> #include <QWidget> class QVBoxLayout; class QGroupBox; class QRadioButton; class UMLArtifactTypeWidget : public QWidget { Q_OBJECT public: typedef QMap<UMLArtifact::Draw_Type,QRadioButton*> ButtonMap; explicit UMLArtifactTypeWidget(UMLArtifact *a, QWidget *parent = nullptr); ~UMLArtifactTypeWidget(); void addToLayout(QVBoxLayout *layout); void apply(); protected: QGroupBox *m_box; UMLArtifact *m_object; ButtonMap m_buttons; }; #endif // UMLARTIFACTTYPEWIDGET_H
759
C++
.h
27
25.111111
92
0.777008
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,864
plugin.h
KDE_umbrello/umbrello/_unused/plugin.h
/* SPDX-FileCopyrightText: 2003 Andrew Sutton <ansutton@kent.edu> Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ #ifndef UMBRELLO_PLUGIN_H #define UMBRELLO_PLUGIN_H // Qt includes #include <qobject.h> // KDE includes #include <kgenericfactory.h> // local includes #include "configurable.h" // forward declarations class QStringList; class KConfig; /** * This macro replaces the K_EXPORT_COMPONENT_FACTORY macro because of * a simple deficiency for this application - the construction of the * factory with a default instance name. This macro must be used in * the .cpp file implementing the plugin. * * * @param libname The name of the plugin. This corresponds to * the name of the shared object without the ".so" * extension. * @param factory The type of factory. Typically, this will be * KGenericFactory<> with the name of the plugin * as the parameter. */ #define UMBRELLO_EXPORT_PLUGIN_FACTORY(libname, factory) \ extern "C" { KDE_EXPORT void *init_##libname() { return new factory(#libname); } } namespace Umbrello { // forward declarations class PluginLoader; /** * @ingroup U2_Lib * * The Plugin class is the base class for all modular functionality in * the core Umbrello library. Because Umbrello is a plugin architecture, * this class is derived from many times. Plugins are created via the * KLibFactory of the encapsulating shared library and created from some * other functional object (application, tool or plugin). After the plugin * has been created, the init method is called. Before unloading, the * shutdown method is called. Derived plugins can implement specific * startup/shutdown behavior by overloading the onInit and onShutdown * methods respectively. * * By default, plugins use a configuration group called [LoadActions] in * the config file. Entries in this group define any dependent or on-demand * plugins that should be loaded in conjunction with this plugin. Known * entries (actions) are "Load" and "LoadGUI". Because plugins can be used * by both GUI and command line tools, they must be selective about some * functionality. Specifically, during configuration, a plugin for a tool * must not load GUI plugins. * * In order to provide application-like functionality, this class offers * support for accessing the configuration records of the KComponentData object * corresponding to the shared library. Because the KComponentData object is * only available within the scope of the shared library, the configuration * records must be set in the constructor of the derived plugin class. However, * because the construction name is passed to this constructor (as are the * parent object and args), we can simply capture the name when the object * is constructed. */ class Plugin : public QObject, public Configurable { Q_OBJECT friend class PluginLoader; public: /** Destroy a plugin.*/ virtual ~Plugin(); /** Return the instance name of the plugin */ QByteArray instanceName() const; /** Return the configuration record for the plugin */ KConfig *config(); /** Return the category descriptor string */ virtual QString category(); /** * Unload the plugin. This method actually only decrements * the reference count. When the refcount is 0, the object * calls shutdown and deletes itself. */ void unload(); protected: /** Construct a plugin */ Plugin(QObject *parent, const char *name, const QStringList &args); /** Can be reimplemented to define plugin specific startup behavior */ virtual bool onInit(); /** Can be reimplemented to define plugin specific shutdown behavior */ virtual bool onShutdown(); private: /** * This method is called by the loader to initialize and configure the * plugin. During initialization, any configured plugins are loaded. * Before loading plugins, onInit is called to perform plugin specific * initialization. This allows dependencies in the plugin chain. * * @return True on success, false on failure. */ bool init(); /** * This method is called by the loader to shutdown the plugin. During * shutdown, any configured plugins are unloaded this occurs before * plugin specific shutdown so as to reduce dependency errors. * * @return True on success, false on failure. */ bool shutdown(); /** * The configure method is called by init to parse the configuration * file and load any plugins. Note that the libraries loaded depends * on the GUI state of the application. If the application is type * Qt::Tty, then we don't use the "loadGUI" action. * * @return True on success, false on failure. */ virtual bool configure(); /** Add to the reference count */ void ref(); protected: uint _ref; ///< Reference counter QByteArray _instanceName; ///< Instance name of the plugin KConfig *_config; ///< Configuration record }; } #endif
5,182
C++
.h
129
36.542636
90
0.716017
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,865
pluginloader.h
KDE_umbrello/umbrello/_unused/pluginloader.h
/* SPDX-FileCopyrightText: 2003 Andrew Sutton <ansutton@kent.edu> SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef UMBRELLO_PLUGINLOADER_H #define UMBRELLO_PLUGINLOADER_H // Qt includes #include <Q3ValueList> #include <QMap> // forward declarations class QString; namespace Umbrello { // forward declarations class Plugin; /** * @ingroup U2_Lib * * The plugin loader is an abstraction that sits on top of KLibLoader. * Whereas plugins are specialized shared objects, the plugin must * specialize the loading of those objects. Essentially, the plugin * loader provides a single unit of functionality - loading plugins. * In order to load a plugin, we must first load a shared library * and then use the libraries factory to create the plugin. However, * because a plugin is required to be a singleton, we must ensure * that no plugin is ever created more than once. To that end, the * loader must also retain a map of loaded plugins. When a loaded * plugin is requested, we can increase its reference count. * * On the subject of unloading, we actually have very little to do. * The unload method on a plugin is simply a reference decrementer. * When it reaches 0, the object destroys itself. Being a QObject, * it will emit the destroyed signal just before deletion, allowing * the plugin loader to respond to the event and remove the plugin * from its mapping. * * The PluginLoader also manages categories of plugins. The runtime * categories actually reflect the directory structure of the build * environment with each category represented by the name of a * directory. The categories are "pre-seeded" at startup. * * @bug Plugins are not removed from their respective categories * when they are destroyed. It may be acceptable to call * Plugin::category() from slotDestroyed because the category() * method doesn't reference any local variables - it just returns * a string. */ class PluginLoader : public QObject { Q_OBJECT public: /** Destroy the plugin loader */ ~PluginLoader(); /** Just a container of plugins */ typedef Q3ValueList<Plugin *> PluginList; /** The containment type for mapping plugins */ typedef QMap<QString, Plugin *> PluginMap; /** Container of plugin categories */ typedef QMap<QString, PluginList> CategoryMap; /** Singleton accessor */ static PluginLoader *instance(); /** * Load a plugin. Test to see if the plugin already exists. If it * does, just add a reference to it and continue on. */ Plugin *loadPlugin(const QString &name); /** Find a plugin */ Plugin *findPlugin(const QString &name); /** * Unload a plugin. Never use this method. It is only used by the deref * method of a plugin to cause this class to unload the corresponding * library. In fact, there is actually no corresponding plugin to unload, * we just unload the library. */ void unloadPlugin(const QString &name); /** * Get a reference to the plugin mapping. This method wraps everything * in consts with the express purpose that no changes are made to the * plugin map after using this method. */ const PluginMap &plugins() const; /** Get a reference to the plugin category mapping. */ const CategoryMap &categories() const; private Q_SLOTS: /** * This is used to connect to the destroyed signal emitted by plugins * when they are finally deleted. The plugin loader uses this signal * to remove the plugin from the plugin map. */ void slotDestroyed(QObject *obj); private: /** Private constructor - This must be created through the instance method */ PluginLoader(); static PluginLoader *_instance; ///< Singleton instance PluginMap _plugins; ///< The plugin mapping CategoryMap _categories; ///< Categories of plugins }; } #endif
3,944
C++
.h
99
36.30303
81
0.723922
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,866
configurable.h
KDE_umbrello/umbrello/_unused/configurable.h
/* SPDX-FileCopyrightText: 2003 Andrew Sutton <ansutton@kent.edu> SPDX-License-Identifier: GPL-2.0-or-later Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ #ifndef UMBRELLO_CONFIGURABLE_H #define UMBRELLO_CONFIGURABLE_H #include <QList> // forward declarations class KConfig; /** * @defgroup U2_Lib Umbrello2 API * The Umbrello2 API consists of classes available to applications, command * line tools and plugins. These classes define common subsets of functionality * these objects. Primarily, these classes provide application support for * features such as configurability and plugin management. Also provided * within this API are the core interfaces for GUI management. */ namespace Umbrello { // forward declarations class Plugin; /** * @ingroup U2_Lib * * The Configurable class is the base class of all functional objects that * can be created for modeling applications. There are three types of * functionality: applications (with GUIs), command line tools and plugins. * This class provides a common configuration interface that the functional * classes use for default configuration and plugin management. Although * the Configurable class is primarily an interface it does provide some * convenience methods that can be used by derived classes to help manage * plugins. These methods are conceptually part of a larger (although * currently undefined) set of configuration helper methods that reduce * the amount of code duplication for applications, tools and plugins. * * At this time, this class only assists with the configuration of the * event-driven plugin management system. All interfaces and convenience * methods support the hidden configuration functionality for derived * classes. * * @todo Do we have to delete the plugin object when its unloaded? Is it * possible that we can just unload the library and created objects are * automatically destroyed? I need some clarification of what actually * happens here... */ class Configurable { public: /** Construct a configurable object. */ Configurable(); /** * Destroy a configurable object. If there are any plugins that (for * some reason) have not been unloaded, we need to unload them here. */ virtual ~Configurable(); /** * The configure interface is required to be implemented by all subclasses * of this class. It is expected that configuration implementations all * understand how to attain their session configuration file. These files * are stored in ~/.kde/share/config. What actions are taken with the * configuration class are defined by implementing classes. */ virtual bool configure() = 0; protected: /** * This is a convenience method for derived classes. Configuration actions * that are intended to load plugins can use this method to parse the string * and actually load the plugins. The string is a set of space separated names. * Each name corresponds to the share object implementing the plugin. * * @param config The object used for configuration. * @param group The group in the config object. * @param key The key in the group that contains libraries to load. * * @return True on success, false on failure. */ bool loadPlugins(KConfig *config, const QString &group, const QString &key); /** * This is a convenience method for derived classes. When a functional object * (i.e., application, tool or plugin) is shutdown, it can use this method * to automatically unload all dependent plugins. * * @return True on success false on failure. */ bool unloadPlugins(); private: typedef QList<Plugin*> PluginList; PluginList _plugins; ///< List of loaded plugins }; } #endif
3,832
C++
.h
92
38.119565
83
0.749933
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,867
diagramsmodel.h
KDE_umbrello/umbrello/models/diagramsmodel.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2015-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef DIAGRAMSMODEL_H #define DIAGRAMSMODEL_H // app includes #include "umlviewlist.h" // qt includes #include <QAbstractTableModel> #include <QPointer> class UMLView; Q_DECLARE_METATYPE(UMLView*); class DiagramsModel : public QAbstractTableModel { Q_OBJECT public: explicit DiagramsModel(); int rowCount(const QModelIndex &parent) const; int columnCount(const QModelIndex &parent) const; QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const; bool addDiagram(UMLView *view); bool removeDiagram(UMLView *view); bool removeAllDiagrams(); void emitDataChanged(const QModelIndex &index); void emitDataChanged(int index); void emitDataChanged(UMLView *view); protected: int m_count; UMLViewList m_views; }; #endif // STEREOTYPESMODEL_H
1,065
C++
.h
33
28.969697
100
0.766667
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,868
stereotypesmodel.h
KDE_umbrello/umbrello/models/stereotypesmodel.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2015-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef STEREOTYPESMODEL_H #define STEREOTYPESMODEL_H // app includes #include "umlstereotypelist.h" // qt includes #include <QAbstractTableModel> #include "stereotype.h" Q_DECLARE_METATYPE(UMLStereotype*); class StereotypesModel : public QAbstractTableModel { Q_OBJECT public: explicit StereotypesModel(UMLStereotypeList& stereotypes); int rowCount(const QModelIndex &parent) const; int columnCount(const QModelIndex &parent) const; QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const; bool addStereotype(UMLStereotype *stereotype); bool removeStereotype(UMLStereotype *stereotype); void emitDataChanged(const QModelIndex &index); void emitDataChanged(int index); protected: int m_count; UMLStereotypeList& m_stereotypes; }; #endif // STEREOTYPESMODEL_H
1,079
C++
.h
30
32.733333
100
0.786127
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,869
objectsmodel.h
KDE_umbrello/umbrello/models/objectsmodel.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2016-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef OBJECTSMODEL_H #define OBJECTSMODEL_H // qt includes #include <QAbstractTableModel> #include <QPointer> class UMLObject; class ObjectsModel : public QAbstractTableModel { Q_OBJECT public: explicit ObjectsModel(); bool add(UMLObject *o); bool remove(UMLObject *o); int rowCount(const QModelIndex &parent) const; int columnCount(const QModelIndex &parent) const; QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const; void emitDataChanged(const QModelIndex &index); void emitDataChanged(int index); void emitDataChanged(UMLObject *o); protected: QList<QPointer<UMLObject>> m_allObjects; }; #endif // OBJECTSMODEL_H
942
C++
.h
28
30.285714
100
0.765487
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,870
objectwidget.h
KDE_umbrello/umbrello/umlwidgets/objectwidget.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef OBJECTWIDGET_H #define OBJECTWIDGET_H #include "messagewidgetlist.h" #include "umlwidget.h" class MessageWidget; class SeqLineWidget; class UMLScene; /** * Displays an instance UMLObject of a concept. * * The local ID is needed as it can represent a class * that has many objects representing it. * * @short Displays an instance of a Concept. * @author Paul Hensgen <phensgen@techie.com> * @see UMLWidget * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class ObjectWidget : public UMLWidget { Q_OBJECT public: ObjectWidget(UMLScene *scene, UMLObject *o); virtual ~ObjectWidget(); virtual void setX(qreal x); virtual void setY(qreal y); qreal centerX(); void setMultipleInstance(bool multiple); bool multipleInstance() const; void setSelected(bool state); virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr); bool activate(IDChangeLog *ChangeLog = nullptr); void cleanup(); virtual bool showPropertiesDialog(); void setDrawAsActor(bool drawAsActor); bool drawAsActor() const; void setShowDestruction(bool bShow); bool showDestruction() const; int topMargin(); void setEndLine(int yPosition); int getEndLineY(); void messageAdded(MessageWidget* message); void messageRemoved(MessageWidget* message); bool canTabUp(); bool messageOverlap(qreal y, MessageWidget* messageWidget); virtual void setLineColorCmd(const QColor &color); SeqLineWidget *sequentialLine() const; virtual void resizeWidget(qreal newW, qreal newH); virtual void saveToXMI(QXmlStreamWriter& writer); virtual bool loadFromXMI(QDomElement& qElement); public Q_SLOTS: void slotMenuSelection(QAction* action); virtual void slotFillColorChanged(Uml::ID::Type viewID); void slotMessageMoved(); protected: virtual void mousePressEvent(QGraphicsSceneMouseEvent *me); virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *me); QSizeF minimumSize() const; virtual void moveEvent(QGraphicsSceneMouseEvent *event); virtual void moveWidgetBy(qreal diffX, qreal diffY); virtual void constrainMovementForAllWidgets(qreal &diffX, qreal &diffY); virtual QCursor resizeCursor() const; void paintActor(QPainter *p); void paintObject(QPainter *p); private: void tabUp(); void tabDown(); void moveDestructionBy(qreal diffY); SeqLineWidget* m_pLine; bool m_multipleInstance; ///< draw an object as a multiple object bool m_drawAsActor; ///< object should be drawn as an Actor or an Object bool m_showDestruction; ///< show object destruction on sequence diagram line bool m_isOnDestructionBox; ///< true when a click occurred on the destruction box MessageWidgetList m_messages; ///< message widgets with an end on this widget friend class SeqLineWidget; }; #endif
3,103
C++
.h
81
34.148148
109
0.752677
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,871
associationwidgetrole.h
KDE_umbrello/umbrello/umlwidgets/associationwidgetrole.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef ASSOCIATIONWIDGETROLE_H #define ASSOCIATIONWIDGETROLE_H #include "basictypes.h" #include <QPointer> class AssociationWidget; class FloatingTextWidget; class UMLWidget; class QPointF; class QDomDocument; class QDomElement; class QXmlStreamWriter; /** * The AssociationWidgetRole struct gathers all information pertaining to the role. * The AssociationWidget class contains two AssociationWidgetRole objects, one for * each side of the association (A and B). */ class AssociationWidgetRole { public: FloatingTextWidget* multiplicityWidget; ///< information regarding multiplicity FloatingTextWidget* changeabilityWidget; ///< information regarding changeability FloatingTextWidget* roleWidget; ///< role's label of this association QPointer<UMLWidget> umlWidget; ///< UMLWidget at this role's side of this association Uml::Region::Enum m_WidgetRegion; ///< region of this role's widget int m_nIndex; ///< the index of where the line is on the region for this role int m_nTotalCount; ///< total amount of associations on the region this role's line is on // The following items are only used if m_pObject is not set. Uml::Visibility::Enum visibility; Uml::Changeability::Enum changeability; QString roleDocumentation; AssociationWidgetRole(); void setParent(AssociationWidget *parent) { m_q = parent; } void cleanup(); void setFont(const QFont &font); UMLWidget *onWidget(const QPointF &p); void setSelected(bool select); void clipSize(); void saveToXMI(QXmlStreamWriter& writer); bool loadFromXMI(QDomElement &qElement, const QString &suffix); bool getStartMove(); private: AssociationWidget *m_q; }; #endif // ASSOCIATIONWIDGETROLE_H
1,949
C++
.h
47
37.978723
95
0.74748
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,872
classifierwidget.h
KDE_umbrello/umbrello/umlwidgets/classifierwidget.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2004-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef CLASSIFIERWIDGET_H #define CLASSIFIERWIDGET_H #include "basictypes.h" #include "umlobject.h" #include "umlwidget.h" class AssociationWidget; class FloatingTextWidget; class QPainter; class UMLClassifier; /** * @short Common implementation for class widget and interface widget * * @author Oliver Kellogg * @author Gopala Krishna * * @see UMLWidget * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class ClassifierWidget : public UMLWidget { Q_OBJECT Q_ENUMS(VisualProperty) public: /** * This enumeration lists the visual properties that can be easily * set, reset and toggled and all these operate on an integer * which stores all the flag status. */ enum VisualProperty { ShowStereotype = 0x1, // DEPRECATED - see umlwidgets/widgetbase.cpp // WidgetBase::slotMenuSelection(QAction*) // case ListPopupMenu::mt_{Show,Hide}_Stereotypes_Selection ShowOperations = 0x2, ShowPublicOnly = 0x4, ShowVisibility = 0x8, ShowPackage = 0x10, ShowAttributes = 0x20, DrawAsCircle = 0x40, ShowOperationSignature = 0x60, ///< only in setter ShowAttributeSignature = 0x80, ///< only in setter DrawAsPackage = 0x100, ShowDocumentation = 0x200, }; Q_DECLARE_FLAGS(VisualProperties, VisualProperty) ClassifierWidget(UMLScene * scene, UMLClassifier * umlc); ClassifierWidget(UMLScene * scene, UMLInstance * umli); ClassifierWidget(UMLScene * scene, UMLPackage * o); virtual ~ClassifierWidget(); UMLClassifier *classifier() const; void setShowStereotype(Uml::ShowStereoType::Enum flag); VisualProperties visualProperties() const; void setVisualProperties(VisualProperties properties); bool visualProperty(VisualProperty property) const; void setVisualProperty(VisualProperty property, bool enable = true); void setVisualPropertyCmd(VisualProperty property, bool enable = true); void toggleVisualProperty(VisualProperty property); int displayedAttributes() const; int displayedOperations() const; Uml::SignatureType::Enum attributeSignature() const; void setAttributeSignature(Uml::SignatureType::Enum sig); Uml::SignatureType::Enum operationSignature() const; void setOperationSignature(Uml::SignatureType::Enum sig); void setShowAttSigs(bool _show); void toggleShowAttSigs(); bool getDrawAsCircle() const; void setDrawAsCircle(bool drawAsCircle); void toggleDrawAsCircle(); void changeToClass(); void changeToInterface(); void changeToPackage(); AssociationWidget *classAssociationWidget() const; void setClassAssociationWidget(AssociationWidget *assocwidget); UMLWidget* onWidget(const QPointF& p); UMLWidget* widgetWithID(Uml::ID::Type id); virtual void setDocumentation(const QString& doc); QSizeF calculateSize(bool withExtensions = true) const; virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr); virtual QPainterPath shape() const; virtual void saveToXMI(QXmlStreamWriter& writer); virtual bool loadFromXMI(QDomElement & qElement); virtual bool showPropertiesDialog(); void setUMLObject(UMLObject *obj); public Q_SLOTS: virtual void slotMenuSelection(QAction* action); private Q_SLOTS: void slotShowAttributes(bool state); void slotShowOperations(bool state); protected: virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event); private: void updateSignatureTypes(); QSize calculateTemplatesBoxSize() const; QSizeF minimumSize() const; void drawAsCircle(QPainter *p, const QStyleOptionGraphicsItem *option); QSize calculateAsCircleSize() const; void drawAsPackage(QPainter *painter, const QStyleOptionGraphicsItem *option); QSize calculateAsPackageSize() const; int displayedMembers(UMLObject::ObjectType ot) const; void drawMembers(QPainter *painter, UMLObject::ObjectType ot, Uml::SignatureType::Enum sigType, int x, int y, int textWidth, int fontHeight); static const int CIRCLE_SIZE; ///< size of circle when interface is rendered as such static const int SOCKET_INCREMENT; ///< augmentation of circle for socket (required interface) VisualProperties m_visualProperties; Uml::SignatureType::Enum m_attributeSignature; ///< Loaded/saved item. Uml::SignatureType::Enum m_operationSignature; ///< Loaded/saved item. AssociationWidget *m_pAssocWidget; ///< related AssociationWidget in case this classifier acts as an association class QPointer<FloatingTextWidget> m_pInterfaceName; ///< Separate widget for name in case of interface drawn as circle }; Q_DECLARE_OPERATORS_FOR_FLAGS(ClassifierWidget::VisualProperties) #endif
5,157
C++
.h
114
39.684211
122
0.731922
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,873
preconditionwidget.h
KDE_umbrello/umbrello/umlwidgets/preconditionwidget.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef PRECONDITIONWIDGET_H #define PRECONDITIONWIDGET_H #include "umlwidget.h" class ObjectWidget; /** * @short A graphical version of a UML Precondition (new in UML 2.0). * * This class is the graphical version of a UML Precondition. A PreconditionWidget is created * by a @ref UMLView. An PreconditionWidget belongs to only one @ref UMLView instance. * When the @ref UMLView instance that this class belongs to, it will be automatically deleted. * * The PreconditionWidget class inherits from the @ref UMLWidget class which adds most of the functionality * to this class. * * @author Florence Mattler <florence.mattler@libertysurf.fr> * * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class PreconditionWidget : public UMLWidget { Q_OBJECT public: PreconditionWidget(UMLScene* scene, ObjectWidget* a, Uml::ID::Type id = Uml::ID::None); virtual ~PreconditionWidget(); void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr); int minY() const; int maxY() const; bool activate(IDChangeLog *Log = nullptr); void resolveObjectWidget(IDChangeLog* log); virtual void saveToXMI(QXmlStreamWriter& writer); virtual bool loadFromXMI(QDomElement& qElement); ObjectWidget *objectWidget() const; void setObjectWidget(ObjectWidget *objectWidget); public Q_SLOTS: void slotMenuSelection(QAction* action); void slotWidgetMoved(Uml::ID::Type id); protected: QSizeF minimumSize() const; private: void calculateWidget(); void calculateDimensions(); ObjectWidget* m_objectWidget; int m_nY; Uml::ID::Type m_widgetAId; }; #endif
1,833
C++
.h
50
33.34
107
0.757919
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,874
seqlinewidget.h
KDE_umbrello/umbrello/umlwidgets/seqlinewidget.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef SEQLINEWIDGET_H #define SEQLINEWIDGET_H #include <QGraphicsLineItem> #include <QPen> class ObjectWidget; class UMLScene; /** * A sequence lifeline consists of the object widget at the top and * a vertical line starting at the bottom edge of the object widget * at half its width. The line grows downward when sequence messages * are added such that the line always extends far enough to act as * the background for all messages. * This class represents only the line part of the lifeline. * * @short Widget class for graphical representation of sequence lines * @author Paul Hensgen * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class SeqLineWidget : public QGraphicsLineItem { public: SeqLineWidget(UMLScene *scene, ObjectWidget * pObject); virtual ~SeqLineWidget(); bool onWidget(const QPointF& p); bool onDestructionBox(const QPointF& p); void cleanup(); void setupDestructionBox(); void setStartPoint(int startX, int startY); /** * Gets the length of the line. * * @return Length of the line. */ int getLineLength() const { return m_nLengthY; } /** * Returns the @ref ObjectWidget associated with this sequence line. * * @return Pointer to the associated ObjectWidget. */ ObjectWidget * getObjectWidget() { return m_pObject; } void setEndOfLine(int yPosition); void setLineColorCmd(const QColor &color); protected: void cleanupDestructionBox(); void moveDestructionBox(); ObjectWidget* m_pObject; ///< ObjectWidget associated with this sequence line UMLScene* m_scene; ///< scene displayed on struct DestructionBox { QGraphicsLineItem * line1{nullptr}; QGraphicsLineItem * line2{nullptr}; void setLineColorCmd(const QColor &color) { if (!line1) return; QPen pen = line1->pen(); pen.setColor(color); line1->setPen(pen); line2->setPen(pen); } void setLine1Points(QRect rect) { line1->setLine(rect.x(), rect.y(), rect.x() + rect.width(), rect.y() + rect.height()); } void setLine2Points(QRect rect) { line2->setLine(rect.x(), rect.y() + rect.height(), rect.x() + rect.width(), rect.y()); } } m_DestructionBox; ///< the destruction box int m_nLengthY; ///< the length of the line static int const m_nMouseDownEpsilonX; ///< margin used for mouse clicks void contextMenuEvent(QGraphicsSceneContextMenuEvent* event); }; #endif
2,831
C++
.h
81
28.765432
92
0.663247
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
749,875
umlwidget.h
KDE_umbrello/umbrello/umlwidgets/umlwidget.h
/* SPDX-License-Identifier: GPL-2.0-or-later SPDX-FileCopyrightText: 2002-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org> */ #ifndef UMLWIDGET_H #define UMLWIDGET_H #include "associationwidgetlist.h" #include "basictypes.h" #include "optionstate.h" #include "umlobject.h" #include "umlwidgetlist.h" #include "widgetbase.h" #include "diagramproxywidget.h" #include <QCursor> #include <QFont> class IDChangeLog; class UMLDoc; class UMLObject; class UMLScene; class QPainter; class QFontMetrics; /** * This is the base class for nearly all graphical widgets. * * @short The base class for graphical UML objects. * @author Paul Hensgen <phensgen@techie.com> * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org */ class UMLWidget : public WidgetBase, public DiagramProxyWidget { Q_OBJECT public: friend class ToolBarStateArrow; // for calling the mouse*Event handlers static const QSizeF DefaultMinimumSize; static const QSizeF DefaultMaximumSize; static const int defaultMargin; static const int selectionMarkerSize; static const int resizeMarkerLineCount; explicit UMLWidget(UMLScene *scene, WidgetType type = wt_UMLWidget, UMLObject *o = nullptr); explicit UMLWidget(UMLScene *scene, WidgetType type = wt_UMLWidget, Uml::ID::Type id = Uml::ID::None); virtual ~UMLWidget(); // Copy constructor - not implemented. // UMLWidget(const UMLWidget& other); UMLWidget& operator=(const UMLWidget& other); bool operator==(const UMLWidget& other) const; virtual QSizeF minimumSize() const; void setMinimumSize(const QSizeF &size); virtual QSizeF maximumSize(); void setMaximumSize(const QSizeF &size); virtual void setUseFillColor(bool fc); void setUseFillColorCmd(bool fc); virtual void setTextColor(const QColor &color); void setTextColorCmd(const QColor &color); virtual void setLineColor(const QColor &color); virtual void setLineColorCmd(const QColor &color); virtual void setLineWidth(uint width); void setLineWidthCmd(uint width); virtual void setFillColor(const QColor &color); void setFillColorCmd(const QColor &color); void setSelectedFlag(bool _select); virtual void setSelected(bool _select); void setScene(UMLScene *scene); virtual bool activate(IDChangeLog *changeLog = nullptr); void setPenFromSettings(QPainter &p); void setPenFromSettings(QPainter *p); virtual void setFont(const QFont &font); void setFontCmd(const QFont &font); /** * Returns whether we triggered the update of position movement. * If so, you probably don't want to move it. * * @return The moving state. */ bool getStartMove() const { return m_startMove; } virtual qreal getX() const; virtual qreal getY() const; virtual QPointF getPos() const; virtual void setX(qreal x); virtual void setY(qreal y); /** * Returns the height of widget. */ qreal height() const { return rect().height(); } /** * Returns the width of the widget. */ qreal width() const { return rect().width(); } void setSize(qreal width, qreal height); void setSize(const QSizeF& size); virtual void resizeWidget(qreal newW, qreal newH); virtual void notifyParentResize(); bool getIgnoreSnapToGrid() const; void setIgnoreSnapToGrid(bool to); virtual bool isLocatedIn(const UMLWidget *other) const; void moveByLocal(qreal dx, qreal dy); virtual void removeAssoc(AssociationWidget* pAssoc); virtual void addAssoc(AssociationWidget* pAssoc); AssociationWidgetList &associationWidgetList() const; /** * Read property of bool m_isInstance */ bool isInstance() const { return m_isInstance; } /** * Write property of bool m_isInstance */ void setIsInstance(bool isInstance) { m_isInstance = isInstance; } /** * Write property of m_instanceName */ void setInstanceName(const QString &instanceName) { m_instanceName = instanceName; } /** * Read property of m_instanceName */ QString instanceName() const { return m_instanceName; } Uml::ShowStereoType::Enum showStereotype() const; virtual void setShowStereotype(Uml::ShowStereoType::Enum flag); QString tags() const; virtual bool showPropertiesDialog(); virtual void adjustAssocs(qreal dx, qreal dy); virtual void adjustUnselectedAssocs(qreal dx, qreal dy); bool isActivated() const; void setActivated(bool active = true); virtual void cleanup(); void updateGeometry(bool withAssocs = true); void clipSize(); void forceUpdateFontMetrics(QPainter *painter); void forceUpdateFontMetrics(QFont &font, QPainter *painter); virtual bool loadFromXMI(QDomElement &qElement); virtual void saveToXMI(QXmlStreamWriter& writer); QPointF startMovePosition() const; void setStartMovePosition(const QPointF &position); QSizeF startResizeSize() const; virtual QSizeF calculateSize(bool withExtensions = true) const; void resize(); bool fixedAspectRatio() const { return m_fixedAspectRatio; } void setFixedAspectRatio(bool state) { m_fixedAspectRatio = state; } bool resizable() const { return m_resizable; } void setResizable(bool state) { m_resizable = state; } typedef enum { FT_NORMAL = 0, FT_BOLD = 1, FT_ITALIC = 2, FT_UNDERLINE = 3, FT_BOLD_ITALIC = 4, FT_BOLD_UNDERLINE = 5, FT_ITALIC_UNDERLINE = 6, FT_BOLD_ITALIC_UNDERLINE = 7, FT_INVALID = 8 } FontType; virtual void setDefaultFontMetrics(QFont &font, UMLWidget::FontType fontType); virtual void setDefaultFontMetrics(QFont &font, UMLWidget::FontType fontType, QPainter &painter); QFontMetrics &getFontMetrics(UMLWidget::FontType fontType) const; void setFontMetrics(UMLWidget::FontType fontType, QFontMetrics fm); void setupFontType(QFont &font, UMLWidget::FontType fontType); virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr); public Q_SLOTS: virtual void updateWidget(); virtual void slotMenuSelection(QAction* action); virtual void slotWidgetMoved(Uml::ID::Type id); virtual void slotFillColorChanged(Uml::ID::Type viewID); virtual void slotLineColorChanged(Uml::ID::Type viewID); virtual void slotTextColorChanged(Uml::ID::Type viewID); virtual void slotLineWidthChanged(Uml::ID::Type viewID); void slotSnapToGrid(); Q_SIGNALS: /** * Emit when the widget moves its' position. * @param id The id of the object behind the widget. */ void sigWidgetMoved(Uml::ID::Type id); protected: virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event); virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event); virtual void mousePressEvent(QGraphicsSceneMouseEvent *event); virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event); virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event); virtual void moveEvent(QGraphicsSceneMouseEvent *event); virtual void moveWidgetBy(qreal diffX, qreal diffY); virtual void constrainMovementForAllWidgets(qreal &diffX, qreal &diffY); virtual void constrain(qreal& width, qreal& height); virtual bool isInResizeArea(QGraphicsSceneMouseEvent *me); virtual QCursor resizeCursor() const; void selectSingle(QGraphicsSceneMouseEvent *me); void selectMultiple(QGraphicsSceneMouseEvent *me); void deselect(QGraphicsSceneMouseEvent *me); // void resetSelection(); void setSelectionBounds(); void resize(QGraphicsSceneMouseEvent *me); bool wasSizeChanged(); bool wasPositionChanged(); virtual void toForeground(); public: enum AddWidgetOption { NoOption = 0, SetupSize = 1, SwitchDirection = 2, ShowProperties = 4, Default = SetupSize | ShowProperties }; Q_DECLARE_FLAGS(AddWidgetOptions, AddWidgetOption) protected: void addConnectedWidget(UMLWidget *widget, Uml::AssociationType::Enum type = Uml::AssociationType::Association, AddWidgetOptions options = Default); void addConnectedUMLObject(UMLObject::ObjectType otype, Uml::AssociationType::Enum type); void addWidget(UMLWidget *widget, bool showProperties = true); ///////////////// Data Loaded/Saved ///////////////////////////////// QString m_instanceName; ///< instance name (used if on a deployment diagram) bool m_isInstance; ///< holds whether this widget is a component instance (i.e. on a deployment diagram) Uml::ShowStereoType::Enum m_showStereotype; ///< if and how the stereotype should be displayed ///////////////// End of Data Loaded/Saved ////////////////////////// bool m_startMove; QPointF m_startMovePostion; QSizeF m_startResizeSize; int m_nPosX; UMLDoc *m_doc; ///< shortcut for UMLApp::app()->document() bool m_resizable; QFontMetrics *m_pFontMetrics[FT_INVALID]; QSizeF m_minimumSize; QSizeF m_maximumSize; /// true if the activate function has been called for this class instance bool m_activated; /** * Change Widget Behaviour */ bool m_ignoreSnapToGrid; bool m_ignoreSnapComponentSizeToGrid; bool m_fixedAspectRatio; /// The text in the status bar when the cursor was pressed. QString m_oldStatusBarMsg; /// The X/Y offset from the position of the cursor when it was pressed to the /// upper left corner of the widget. QPointF m_pressOffset; /// The X/Y position the widget had when the movement started. QPointF m_oldPos; /// The width/height the widget had when the resize started. qreal m_oldW, m_oldH; /// If shift or control button were pressed in mouse press event. bool m_shiftPressed; /** * If cursor was in move/resize area when left button was pressed (and no * other widgets were selected). */ bool m_inMoveArea, m_inResizeArea; /** * If the widget was selected/moved/resized in the press and release cycle. * Moved/resized is true if the widget was moved/resized even if the final * position/size is the same as the starting one. */ bool m_moved, m_resized; private: void init(); /// A list of AssociationWidgets between the UMLWidget and other UMLWidgets in the diagram mutable AssociationWidgetList m_Assocs; }; Q_DECLARE_OPERATORS_FOR_FLAGS(UMLWidget::AddWidgetOptions) #endif
10,753
C++
.h
271
34.494465
152
0.713324
KDE/umbrello
114
36
0
GPL-2.0
9/20/2024, 9:41:49 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false