umbrello  2.32.1
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:
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
Definition: umlfinder.h:28
Result
Definition: umlfinder.h:32
@ Found
Definition: umlfinder.h:32
@ NotFound
Definition: umlfinder.h:32
@ End
Definition: umlfinder.h:32
@ Empty
Definition: umlfinder.h:32
virtual int collect(Category category, const QString &text)=0
UMLFinder()
Definition: umlfinder.cpp:15
QList< Uml::ID::Type > m_items
Definition: umlfinder.h:60
Category
Definition: umlfinder.h:30
@ All
Definition: umlfinder.h:30
@ Classes
Definition: umlfinder.h:30
@ Operations
Definition: umlfinder.h:30
@ Attributes
Definition: umlfinder.h:30
@ Interfaces
Definition: umlfinder.h:30
@ Packages
Definition: umlfinder.h:30
bool includeObject(Category category, UMLObject *o)
Definition: umlfinder.cpp:23
virtual Result displayNext()=0
virtual Result displayPrevious()=0
virtual ~UMLFinder()
Definition: umlfinder.cpp:19
int m_index
Definition: umlfinder.h:59
Filter
Definition: umlfinder.h:31
@ AllDiagrams
Definition: umlfinder.h:31
@ CurrentDiagram
Definition: umlfinder.h:31
@ TreeView
Definition: umlfinder.h:31
The base class for UML objects.
Definition: umlobject.h:75