umbrello 2.32.3 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

umlfinder.h
Go to the documentation of this file.
1 /***************************************************************************
2 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2014-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef UMLFINDER_H
12 #define UMLFINDER_H
13
14 // app include
15 #include "basictypes.h"
16
17 // qt include
18 #include <QList>
19
20 class UMLObject;
21
27 class UMLFinder
28 {
29 public:
30 typedef enum { All, Classes, Packages, Interfaces, Operations, Attributes } Category;
31 typedef enum { TreeView, CurrentDiagram, AllDiagrams } Filter;
32 typedef enum { Empty, End, Found, NotFound } Result;
33 UMLFinder();
34 virtual ~UMLFinder();
35
43 virtual int collect(Category category, const QString &text) = 0;
49 virtual Result displayNext() = 0;
50
56 virtual Result displayPrevious() = 0;
57
58 protected:
59 int m_index;
60 QList<Uml::ID::Type> m_items;
61
62 bool includeObject(Category category, UMLObject *o);
63 };
64
65 #endif // UMLFINDER_H
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:80
UMLFinder::Operations
@ Operations
Definition: umlfinder.h:30
UMLFinder::collect
virtual int collect(Category category, const QString &text)=0
UMLFinder::All
@ All
Definition: umlfinder.h:30
UMLObject::ot_Class
@ ot_Class
Definition: umlobject.h:89
UMLObject::ot_Attribute
@ ot_Attribute
Definition: umlobject.h:92
UMLObject::ot_Interface
@ ot_Interface
Definition: umlobject.h:86
UMLObject::ot_Package
@ ot_Package
Definition: umlobject.h:85
UMLFinder::Result
Result
Definition: umlfinder.h:32
UMLFinder::NotFound
@ NotFound
Definition: umlfinder.h:32
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
UMLFinder::End
@ End
Definition: umlfinder.h:32
UMLObject::baseType
ObjectType baseType() const
Definition: umlobject.cpp:397
UMLFinder::Empty
@ Empty
Definition: umlfinder.h:32
UMLFinder::displayNext
virtual Result displayNext()=0
UMLFinder::Attributes
@ Attributes
Definition: umlfinder.h:30
UMLFinder::Classes
@ Classes
Definition: umlfinder.h:30
UMLFinder::includeObject
bool includeObject(Category category, UMLObject *o)
Definition: umlfinder.cpp:23
UMLFinder::Packages
@ Packages
Definition: umlfinder.h:30
UMLFinder::displayPrevious
virtual Result displayPrevious()=0
UMLFinder::~UMLFinder
virtual ~UMLFinder()
Definition: umlfinder.cpp:19
UMLFinder::TreeView
@ TreeView
Definition: umlfinder.h:31
basictypes.h
UMLFinder::Category
Category
Definition: umlfinder.h:30
umlfinder.h
UMLFinder::m_items
QList< Uml::ID::Type > m_items
Definition: umlfinder.h:60
UMLFinder::m_index
int m_index
Definition: umlfinder.h:59
umlobject.h
UMLFinder::CurrentDiagram
@ CurrentDiagram
Definition: umlfinder.h:31
UMLFinder::UMLFinder
UMLFinder()
Definition: umlfinder.cpp:15
UMLFinder::Filter
Filter
Definition: umlfinder.h:31
UMLObject::ot_Operation
@ ot_Operation
Definition: umlobject.h:93
UMLFinder::Found
@ Found
Definition: umlfinder.h:32
UMLFinder::Interfaces
@ Interfaces
Definition: umlfinder.h:30
UMLFinder::AllDiagrams
@ AllDiagrams
Definition: umlfinder.h:31
UMLFinder
Definition: umlfinder.h:28