umbrello: umbrello/finder/umlfinder.h Source File

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

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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