umbrello  2.35.0
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  SPDX-License-Identifier: GPL-2.0-or-later
3  SPDX-FileCopyrightText: 2014-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4 */
5 
6 #ifndef UMLFINDER_H
7 #define UMLFINDER_H
8 
9 // app include
10 #include "basictypes.h"
11 
12 // qt include
13 #include <QList>
14 
15 class UMLObject;
16 
22 class UMLFinder
23 {
24 public:
27  typedef enum { Empty, End, Found, NotFound } Result;
28  UMLFinder();
29  virtual ~UMLFinder();
30 
38  virtual int collect(Category category, const QString &text) = 0;
44  virtual Result displayNext() = 0;
45 
51  virtual Result displayPrevious() = 0;
52 
53 protected:
54  int m_index;
55  QList<Uml::ID::Type> m_items;
56 
57  bool includeObject(Category category, UMLObject *o);
58 };
59 
60 #endif // UMLFINDER_H
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:75
UMLFinder::Operations
@ Operations
Definition: umlfinder.h:25
UMLFinder::collect
virtual int collect(Category category, const QString &text)=0
UMLFinder::All
@ All
Definition: umlfinder.h:25
UMLObject::ot_Class
@ ot_Class
Definition: umlobject.h:85
UMLObject::ot_Attribute
@ ot_Attribute
Definition: umlobject.h:88
UMLObject::ot_Interface
@ ot_Interface
Definition: umlobject.h:82
UMLObject::ot_Package
@ ot_Package
Definition: umlobject.h:81
UMLFinder::Result
Result
Definition: umlfinder.h:27
UMLFinder::NotFound
@ NotFound
Definition: umlfinder.h:27
UMLObject
The base class for UML objects.
Definition: umlobject.h:69
UMLFinder::End
@ End
Definition: umlfinder.h:27
UMLObject::baseType
ObjectType baseType() const
Definition: umlobject.cpp:393
UMLFinder::Empty
@ Empty
Definition: umlfinder.h:27
UMLFinder::displayNext
virtual Result displayNext()=0
UMLFinder::Attributes
@ Attributes
Definition: umlfinder.h:25
UMLFinder::Classes
@ Classes
Definition: umlfinder.h:25
UMLFinder::includeObject
bool includeObject(Category category, UMLObject *o)
Definition: umlfinder.cpp:18
UMLFinder::Packages
@ Packages
Definition: umlfinder.h:25
UMLFinder::displayPrevious
virtual Result displayPrevious()=0
UMLFinder::~UMLFinder
virtual ~UMLFinder()
Definition: umlfinder.cpp:14
UMLFinder::TreeView
@ TreeView
Definition: umlfinder.h:26
basictypes.h
UMLFinder::Category
Category
Definition: umlfinder.h:25
umlfinder.h
UMLFinder::m_items
QList< Uml::ID::Type > m_items
Definition: umlfinder.h:55
UMLFinder::m_index
int m_index
Definition: umlfinder.h:54
umlobject.h
UMLFinder::CurrentDiagram
@ CurrentDiagram
Definition: umlfinder.h:26
UMLFinder::UMLFinder
UMLFinder()
Definition: umlfinder.cpp:10
UMLFinder::Filter
Filter
Definition: umlfinder.h:26
UMLObject::ot_Operation
@ ot_Operation
Definition: umlobject.h:89
UMLFinder::Found
@ Found
Definition: umlfinder.h:27
UMLFinder::Interfaces
@ Interfaces
Definition: umlfinder.h:25
UMLFinder::AllDiagrams
@ AllDiagrams
Definition: umlfinder.h:26
UMLFinder
Definition: umlfinder.h:22