2021-04-04 21:04:12 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
#include <vector>
|
|
|
|
|
#include <QHBoxLayout>
|
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
|
|
|
|
|
|
#include "../TargetPackageWidget.hpp"
|
|
|
|
|
#include "PinWidget.hpp"
|
|
|
|
|
#include "BodyWidget.hpp"
|
|
|
|
|
#include "src/Targets/TargetVariant.hpp"
|
|
|
|
|
|
2021-07-07 20:54:45 +01:00
|
|
|
namespace Bloom::Widgets::InsightTargetWidgets::Qfp
|
2021-04-04 21:04:12 +01:00
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* QuadFlatPackageWidget implements a custom Qt widget for Quad-flat package variants.
|
|
|
|
|
*/
|
|
|
|
|
class QuadFlatPackageWidget: public TargetPackageWidget
|
|
|
|
|
{
|
2021-10-06 21:12:31 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
QuadFlatPackageWidget(
|
|
|
|
|
const Targets::TargetVariant& targetVariant,
|
|
|
|
|
InsightWorker& insightWorker,
|
|
|
|
|
QWidget* parent
|
|
|
|
|
);
|
|
|
|
|
|
2021-04-04 21:04:12 +01:00
|
|
|
private:
|
|
|
|
|
QVBoxLayout* layout = nullptr;
|
|
|
|
|
QHBoxLayout* horizontalLayout = nullptr;
|
|
|
|
|
QHBoxLayout* topPinLayout = nullptr;
|
|
|
|
|
QVBoxLayout* rightPinLayout = nullptr;
|
|
|
|
|
QHBoxLayout* bottomPinLayout = nullptr;
|
|
|
|
|
QVBoxLayout* leftPinLayout = nullptr;
|
|
|
|
|
BodyWidget* bodyWidget = nullptr;
|
2021-11-18 19:52:03 +00:00
|
|
|
|
|
|
|
|
std::vector<PinWidget*> pinWidgets;
|
|
|
|
|
|
2021-04-04 21:04:12 +01:00
|
|
|
};
|
|
|
|
|
}
|