umbrello: umbrello/finder/umlfinder.h Source File

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