-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ISSUE #111][COMPONENTS] Introduce components architecture in the pro…
…ject 1. [x] Have you followed the guidelines in our [Contributing document](../blob/master/CONTRIBUTING.md)? 2. [x] Have you checked to ensure there aren't other open [Pull Requests](../pulls) for the same update/change? 3. [x] Have you built the project, and performed manual testing of your functionality for all supported platforms - Linux and Windows? 4. [x] Is your change backward-compatible with the previous version of the plugin? >>> Change description: - Creation of the separate component from the filtersView folder of the project - Adaptation of the project - Update of the class diagrams - Update of README - Introduction of the cmake helper macro definitions which help to conveniently suppress clang_tidy analysis for a single library ( related to ISSUE #106 ) >>> Verification criteria: - Manually checked on the Windows platform - All sanity checks on Git Hub were passed
- Loading branch information
Showing
43 changed files
with
1,440 additions
and
619 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
macro (DMA_SuppressClangTidy_START) | ||
set(RESTORE_CLANG_TIDY OFF) | ||
set(CLANG_TIDY_CACHED_VAL "") | ||
|
||
if( DMA_CLANG_TIDY_BUILD ) | ||
set(RESTORE_CLANG_TIDY ON) | ||
set(CLANG_TIDY_CACHED_VAL CMAKE_CXX_CLANG_TIDY) | ||
set(CMAKE_CXX_CLANG_TIDY "") | ||
endif() | ||
endmacro(DMA_SuppressClangTidy_START) | ||
|
||
macro (DMA_SuppressClangTidy_END) | ||
if( RESTORE_CLANG_TIDY ) | ||
set(CMAKE_CXX_CLANG_TIDY CLANG_TIDY_CACHED_VAL) | ||
set(CLANG_TIDY_CACHED_VAL "") | ||
set(RESTORE_CLANG_TIDY OFF) | ||
endif() | ||
endmacro(DMA_SuppressClangTidy_END) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
dltmessageanalyzerplugin/src/components/filtersView/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DMA_add_subdirectory_with_clang_tidy(src) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
dltmessageanalyzerplugin/src/components/filtersView/api/CFiltersViewComponent.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#pragma once | ||
|
||
#include "memory" | ||
|
||
#include "common/Definitions.hpp" | ||
#include "dma/component/IComponent.hpp" | ||
|
||
class CFiltersView; | ||
class IFiltersModel; | ||
|
||
class CFiltersViewComponent : public DMA::IComponent | ||
{ | ||
public: | ||
|
||
CFiltersViewComponent( CFiltersView* pFiltersView ); | ||
|
||
CFiltersView* getFiltersView() const; | ||
|
||
virtual const char* getName() const override; | ||
|
||
std::shared_ptr<IFiltersModel> getFiltersModel(); | ||
|
||
protected: | ||
virtual DMA::tSyncInitOperationResult init() override; | ||
virtual DMA::tSyncInitOperationResult shutdown() override; | ||
|
||
private: | ||
std::shared_ptr<IFiltersModel> mpFiltersModel; | ||
CFiltersView* mpFiltersView; | ||
}; |
36 changes: 36 additions & 0 deletions
36
dltmessageanalyzerplugin/src/components/filtersView/api/IFiltersModel.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#pragma once | ||
|
||
#include "QModelIndex" | ||
#include "QAbstractItemModel" | ||
|
||
#include "common/Definitions.hpp" | ||
|
||
class IFiltersModel : public QAbstractItemModel | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
|
||
explicit IFiltersModel(QObject *parent = nullptr); | ||
virtual ~IFiltersModel(); | ||
|
||
virtual void setUsedRegex(const QString& regexStr) = 0; | ||
virtual void addCompletionData( const tFoundMatches& foundMatches ) = 0; | ||
virtual void resetCompletionData() = 0; | ||
virtual void resetData() = 0; | ||
virtual void filterRegexTokens( const QString& filter ) = 0; | ||
|
||
struct tFilteredEntry | ||
{ | ||
QModelIndex parentIdx; | ||
int row; | ||
bool filtered; | ||
}; | ||
typedef std::vector<tFilteredEntry> tFilteredEntryVec; | ||
|
||
signals: | ||
|
||
void filteredEntriesChanged(const tFilteredEntryVec& filteredEntryVec, bool expandVisible); | ||
void regexUpdatedByUser( const QString& regex ); | ||
void regexUpdatedByUserInvalid( const QModelIndex& index, const QString& error ); | ||
}; |
25 changes: 25 additions & 0 deletions
25
dltmessageanalyzerplugin/src/components/filtersView/doc/doc.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[**Go to the previous page**](../../../../../md/dev_docs/dev_docs.md) | ||
|
||
---- | ||
|
||
# DMA_FiltersView | ||
|
||
## Standalone package API diagram | ||
|
||
![Class diagram with dependencies](../../../../../md/dev_docs/puml/DMA_FiltersView_API_standalone.svg) | ||
|
||
## Package API diagram with the first-level dependencies | ||
|
||
![Class diagram with dependencies](../../../../../md/dev_docs/puml/DMA_FiltersView_API.svg) | ||
|
||
## Standalone package diagram | ||
|
||
![Class diagram with dependencies](../../../../../md/dev_docs/puml/DMA_FiltersView_standalone.svg) | ||
|
||
## Package diagram with the first-level dependencies | ||
|
||
![Class diagram with dependencies](../../../../../md/dev_docs/puml/DMA_FiltersView.svg) | ||
|
||
---- | ||
|
||
[**Go to the previous page**](../../../../../md/dev_docs/dev_docs.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.