Skip to content

Commit

Permalink
[PERFECTIVE] Add splitter above parameter editor in bus def editor.
Browse files Browse the repository at this point in the history
  • Loading branch information
hagantsa committed Sep 20, 2024
1 parent 639b8e7 commit a3f4c83
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 16 deletions.
38 changes: 30 additions & 8 deletions editors/BusDefinitionEditor/busdefgroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <QRegularExpression>
#include <QSizePolicy>
#include <QLabel>
#include <QSplitter>

//-----------------------------------------------------------------------------
// Function: BusDefGroup::BusDefGroup()
Expand Down Expand Up @@ -256,7 +257,10 @@ void BusDefGroup::setupLayout()
QVBoxLayout* systemGroupLayout = new QVBoxLayout(systemGroupBox);
systemGroupLayout->addWidget(&systemGroupEditor_);

QGridLayout* topLayout = new QGridLayout(this);
QVBoxLayout* rootLayout = new QVBoxLayout(this);

QWidget* topHalfWidget = new QWidget();
QHBoxLayout* topHalfLayout = new QHBoxLayout(topHalfWidget);

QWidget* rightSideContainer = new QWidget(this);
QVBoxLayout* containerLayout = new QVBoxLayout();
Expand All @@ -265,13 +269,31 @@ void BusDefGroup::setupLayout()
containerLayout->addWidget(selectionGroup);
containerLayout->addWidget(systemGroupBox);
rightSideContainer->setLayout(containerLayout);

topLayout->addWidget(&documentNameGroupEditor_, 0, 0, 1, 1);
topLayout->addWidget(rightSideContainer, 0, 1, 1, 1);
topLayout->addWidget(parameterEditor_, 1, 0, 1, 2);

topLayout->setColumnStretch(0, 1);
topLayout->setColumnStretch(1, 1);

topHalfLayout->addWidget(&documentNameGroupEditor_);
topHalfLayout->addWidget(rightSideContainer);

QSplitter* splitter = new QSplitter(Qt::Vertical);
splitter->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
splitter->addWidget(topHalfWidget);
splitter->addWidget(parameterEditor_);

QSplitterHandle* handle = splitter->handle(1);
QVBoxLayout* handleLayout = new QVBoxLayout(handle);
handleLayout->setSpacing(0);
handleLayout->setContentsMargins(0, 0, 0, 0);

QFrame* line = new QFrame(handle);
line->setLineWidth(2);
line->setMidLineWidth(2);
line->setFrameShape(QFrame::HLine);
line->setFrameShadow(QFrame::Sunken);
handleLayout->addWidget(line);

splitter->setStyleSheet(QStringLiteral("QSplitter::handle { background: white }"));
splitter->setHandleWidth(18);

rootLayout->addWidget(splitter);

maxInitiatorsEditor_.setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
maxTargetsEditor_.setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
Expand Down
16 changes: 8 additions & 8 deletions version.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@
#ifndef VERSIONNO__H
#define VERSIONNO__H

#define VERSION_FULL 3.13.640.0
#define VERSION_FULL 3.13.641.0

#define VERSION_BASEYEAR 0
#define VERSION_DATE "2024-09-17"
#define VERSION_TIME "16:22:30"
#define VERSION_DATE "2024-09-20"
#define VERSION_TIME "11:23:57"

#define VERSION_MAJOR 3
#define VERSION_MINOR 13
#define VERSION_BUILDNO 640
#define VERSION_BUILDNO 641
#define VERSION_EXTEND 0

#define VERSION_FILE 3,13,640,0
#define VERSION_PRODUCT 3,13,640,0
#define VERSION_FILESTR "3,13,640,0"
#define VERSION_PRODUCTSTR "3,13,640,0"
#define VERSION_FILE 3,13,641,0
#define VERSION_PRODUCT 3,13,641,0
#define VERSION_FILESTR "3,13,641,0"
#define VERSION_PRODUCTSTR "3,13,641,0"

#endif

0 comments on commit a3f4c83

Please sign in to comment.