##// END OF EJS Templates
Initial Pybind11 binding experiment working....
Initial Pybind11 binding experiment working. Can open an amda formatted file from Python and get few attributes from ScalarSeries. Loading module from python works. Embedding python interpreter also works. Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r133:3457b4e96a14
r1339:98271eda8c6e
Show More
SqpSidePane.cpp
47 lines | 1.2 KiB | text/x-c | CppLexer
mv visualization -> Visualization...
r95 #include "SidePane/SqpSidePane.h"
Creation and styling SidePaneWidget
r57 #include "ui_SqpSidePane.h"
#include <QAction>
#include <QLayout>
#include <QToolBar>
namespace {
static const QString SQPSIDEPANESTYLESHEET
= "QToolBar {"
" background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0,"
" stop: 0.0 #5a5a5a,"
" stop: 1.0 #414141);"
" border: none;"
" border-left: 1px solid #424242;"
"border-right: 1px solid #393939;"
" }"
" QToolButton {"
"background: none;"
"border: none;"
" }";
}
Modify construction of objects to use initializer list...
r91 SqpSidePane::SqpSidePane(QWidget *parent) : QWidget{parent}, ui{new Ui::SqpSidePane}
Creation and styling SidePaneWidget
r57 {
Add button on the SidePane widgets to open left or right inspectors
r101 // QVBoxLayout *sidePaneLayout = new QVBoxLayout(this);
// sidePaneLayout->setContentsMargins(0, 0, 0, 0);
// this->setLayout(sidePaneLayout);
Creation and styling SidePaneWidget
r57
ui->setupUi(this);
Add button on the SidePane widgets to open left or right inspectors
r101 m_SidePaneToolbar = new QToolBar();
Creation and styling SidePaneWidget
r57 m_SidePaneToolbar->setOrientation(Qt::Vertical);
Add button on the SidePane widgets to open left or right inspectors
r101 this->layout()->addWidget(m_SidePaneToolbar);
Creation and styling SidePaneWidget
r57
m_SidePaneToolbar->setStyleSheet(SQPSIDEPANESTYLESHEET);
}
SqpSidePane::~SqpSidePane()
{
delete ui;
}
QToolBar *SqpSidePane::sidePane()
{
return m_SidePaneToolbar;
}