HAL
v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
pins_wizardpage.h
Go to the documentation of this file.
1
// MIT License
2
//
3
// Copyright (c) 2019 Ruhr University Bochum, Chair for Embedded Security. All Rights reserved.
4
// Copyright (c) 2019 Marc Fyrbiak, Sebastian Wallat, Max Hoffmann ("ORIGINAL AUTHORS"). All rights reserved.
5
// Copyright (c) 2021 Max Planck Institute for Security and Privacy. All Rights reserved.
6
// Copyright (c) 2021 Jörn Langheinrich, Julian Speith, Nils Albartus, René Walendy, Simon Klix ("ORIGINAL AUTHORS"). All Rights reserved.
7
//
8
// Permission is hereby granted, free of charge, to any person obtaining a copy
9
// of this software and associated documentation files (the "Software"), to deal
10
// in the Software without restriction, including without limitation the rights
11
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
// copies of the Software, and to permit persons to whom the Software is
13
// furnished to do so, subject to the following conditions:
14
//
15
// The above copyright notice and this permission notice shall be included in all
16
// copies or substantial portions of the Software.
17
//
18
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
// SOFTWARE.
25
26
#pragma once
27
28
#include <QWizardPage>
29
#include <QGridLayout>
30
#include <QPushButton>
31
#include <QTreeView>
32
33
#include <
gui/gatelibrary_management/gatelibrary_tab_widgets/gatelibrary_tab_truth_table.h
>
34
#include <
gui/gatelibrary_management/gatelibrary_tab_widgets/gatelibrary_tab_general.h
>
35
#include <
gui/gatelibrary_management/gatelibrary_tab_widgets/gatelibrary_tab_pin.h
>
36
37
namespace
hal
{
38
class
GateLibraryWizard;
42
class
PinsWizardPage
:
public
QWizardPage
{
43
Q_OBJECT
44
public
:
45
PinsWizardPage
(
QWidget
*
parent
=
nullptr
);
46
void
setGateType
(
GateType
* gate);
47
void
initializePage
()
override
;
48
bool
isComplete
()
const override
;
49
QList<PinItem*>
getPingroups
();
50
51
public
Q_SLOTS
:
52
void
handleDeleteClicked
();
53
void
handlePinModelChanged
(
const
QModelIndex
&topLeft,
const
QModelIndex
&bottomRight);
54
private
:
55
GateLibraryWizard
* mWizard;
56
PinModel
* mPinModel;
57
QTreeView
* mPinsTreeView;
58
GateLibrary
* mGateLibrary;
59
bool
mGateset;
60
61
GateLibraryTabPin
* mPinTab;
62
QPushButton
* mDelBtn;
63
QPushButton
* mAddBtn;
64
};
65
}
hal::GateLibrary
Definition:
gate_library.h:44
hal::GateLibraryTabPin
Definition:
gatelibrary_tab_pin.h:61
hal::GateLibraryWizard
Definition:
gatelibrary_wizard.h:50
hal::GateType
Definition:
gate_type.h:52
hal::PinModel
Definition:
pin_model.h:53
hal::PinsWizardPage
Definition:
pins_wizardpage.h:42
hal::PinsWizardPage::handleDeleteClicked
void handleDeleteClicked()
Definition:
pins_wizardpage.cpp:40
hal::PinsWizardPage::PinsWizardPage
PinsWizardPage(QWidget *parent=nullptr)
Definition:
pins_wizardpage.cpp:8
hal::PinsWizardPage::isComplete
bool isComplete() const override
Definition:
pins_wizardpage.cpp:57
hal::PinsWizardPage::getPingroups
QList< PinItem * > getPingroups()
Definition:
pins_wizardpage.cpp:48
hal::PinsWizardPage::handlePinModelChanged
void handlePinModelChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
Definition:
pins_wizardpage.cpp:52
hal::PinsWizardPage::initializePage
void initializePage() override
Definition:
pins_wizardpage.cpp:27
hal::PinsWizardPage::setGateType
void setGateType(GateType *gate)
gatelibrary_tab_general.h
gatelibrary_tab_pin.h
gatelibrary_tab_truth_table.h
hal
Definition:
defines.h:45
QList
QModelIndex
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QObject::Q_SLOTS
Q_SLOTSQ_SLOTS
QObject::parent
QObject * parent() const const
QPushButton
QTreeView
QWidget
QWizardPage
plugins
gui
include
gui
gatelibrary_management
gatelibrary_pages
pins_wizardpage.h
Generated by
1.9.1