umbrello  2.39.2
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
Definition: umlfinder.h:23
Result
Definition: umlfinder.h:27
@ Found
Definition: umlfinder.h:27
@ NotFound
Definition: umlfinder.h:27
@ End
Definition: umlfinder.h:27
@ Empty
Definition: umlfinder.h:27
virtual int collect(Category category, const QString &text)=0
UMLFinder()
Definition: umlfinder.cpp:10
QList< Uml::ID::Type > m_items
Definition: umlfinder.h:55
Category
Definition: umlfinder.h:25
@ All
Definition: umlfinder.h:25
@ Classes
Definition: umlfinder.h:25
@ Operations
Definition: umlfinder.h:25
@ Attributes
Definition: umlfinder.h:25
@ Interfaces
Definition: umlfinder.h:25
@ Packages
Definition: umlfinder.h:25
bool includeObject(Category category, UMLObject *o)
Definition: umlfinder.cpp:18
virtual Result displayNext()=0
virtual Result displayPrevious()=0
virtual ~UMLFinder()
Definition: umlfinder.cpp:14
int m_index
Definition: umlfinder.h:54
Filter
Definition: umlfinder.h:26
@ AllDiagrams
Definition: umlfinder.h:26
@ CurrentDiagram
Definition: umlfinder.h:26
@ TreeView
Definition: umlfinder.h:26
The base class for UML objects.
Definition: umlobject.h:70