forked from kactus2/kactus2dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CORRECTIVE] Combine wire and transactional ports views to one class.
- Loading branch information
Showing
10 changed files
with
54 additions
and
135 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
24 changes: 15 additions & 9 deletions
24
...ors/ComponentEditor/ports/WirePortsView.h → ...rs/ComponentEditor/ports/TypedPortsView.h
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 |
---|---|---|
@@ -1,38 +1,44 @@ | ||
//----------------------------------------------------------------------------- | ||
// File: WirePortsView.h | ||
// File: TypedPortsView.h | ||
//----------------------------------------------------------------------------- | ||
// Project: Kactus 2 | ||
// Author: Anton Hagqvist | ||
// Date: 16.02.2024 | ||
// | ||
// Description: | ||
// View for wire ports editor. | ||
// View for typed ports editors. | ||
//----------------------------------------------------------------------------- | ||
|
||
#ifndef WIREPORTSVIEW_H | ||
#define WIREPORTSVIEW_H | ||
#ifndef TYPEDPORTSVIEW_H | ||
#define TYPEDPORTSVIEW_H | ||
|
||
#include "PortsView.h" | ||
|
||
class WirePortsView : public PortsView | ||
class BusInterfaceInterface; | ||
|
||
class TypedPortsView : public PortsView | ||
{ | ||
Q_OBJECT | ||
public: | ||
|
||
// Use base class constructor. | ||
using PortsView::PortsView; | ||
TypedPortsView(int typeColumn, int nameColumn, BusInterfaceInterface* busInterface, QWidget* parent); | ||
|
||
virtual ~WirePortsView() = default; | ||
virtual ~TypedPortsView() = default; | ||
|
||
private slots: | ||
|
||
//! Handler for copy action. | ||
void onCopyAction() override; | ||
virtual void onCopyAction() override; | ||
|
||
//! Handler for paste action | ||
virtual void onPasteAction() override; | ||
|
||
private: | ||
|
||
//! The number of the column containing the type definitions information. | ||
int typeColumn_; | ||
}; | ||
|
||
#endif // WIREPORTSVIEW_H | ||
#endif // TYPEDPORTSVIEW_H | ||
|
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