Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 24621 → Rev 24620

/trunk/Scribus/scribus/ui/nodeeditpalette.cpp
22,21 → 22,17
NodePalette::NodePalette( QWidget* parent) : ScrPaletteBase(parent, "nodePalette", false, Qt::WindowFlags())
{
QSize iconSize = QSize(22, 22);
QSize buttonSize = QSize(24, 24);
QSize maxButtonSize = QSize(16777215, buttonSize.height());
QSizePolicy::Policy buttonSizePolicy = static_cast<QSizePolicy::Policy>(QSizePolicy::GrowFlag | QSizePolicy::ExpandFlag);
 
QSize buttonSize = QSize(24,24);
m_doc = nullptr;
m_unitRatio = 1.0;
vboxLayout = new QVBoxLayout(this);
vboxLayout->setSpacing(6);
vboxLayout->setContentsMargins(6, 6, 6, 6);
vboxLayout->setContentsMargins(9, 9, 9, 9);
 
MoveNode = new QToolButton(this);
MoveNode->setIconSize(iconSize);
MoveNode->setMinimumSize(buttonSize);
MoveNode->setMaximumSize(maxButtonSize);
MoveNode->setSizePolicy(QSizePolicy(buttonSizePolicy, QSizePolicy::Fixed));
MoveNode->setMaximumSize(buttonSize);
MoveNode->setCheckable(true);
MoveNode->setChecked(true);
 
43,8 → 39,7
AddNode = new QToolButton(this);
AddNode->setIconSize(iconSize);
AddNode->setMinimumSize(buttonSize);
AddNode->setMaximumSize(maxButtonSize);
AddNode->setSizePolicy(QSizePolicy(buttonSizePolicy, QSizePolicy::Fixed));
AddNode->setMaximumSize(buttonSize);
AddNode->setEnabled(true);
AddNode->setCheckable(true);
 
51,8 → 46,7
DeleteNode = new QToolButton(this);
DeleteNode->setIconSize(iconSize);
DeleteNode->setMinimumSize(buttonSize);
DeleteNode->setMaximumSize(maxButtonSize);
DeleteNode->setSizePolicy(QSizePolicy(buttonSizePolicy, QSizePolicy::Fixed));
DeleteNode->setMaximumSize(buttonSize);
DeleteNode->setEnabled(true);
DeleteNode->setCheckable(true);
 
59,22 → 53,19
ResNode = new QToolButton(this);
ResNode->setIconSize(iconSize);
ResNode->setMinimumSize(buttonSize);
ResNode->setMaximumSize(maxButtonSize);
ResNode->setSizePolicy(QSizePolicy(buttonSizePolicy, QSizePolicy::Fixed));
ResNode->setMaximumSize(buttonSize);
ResNode->setEnabled(true);
 
MoveControl = new QToolButton(this);
MoveControl->setIconSize(iconSize);
MoveControl->setMinimumSize(buttonSize);
MoveControl->setMaximumSize(maxButtonSize);
MoveControl->setSizePolicy(QSizePolicy(buttonSizePolicy, QSizePolicy::Fixed));
MoveControl->setMaximumSize(buttonSize);
MoveControl->setCheckable(true);
 
AsymMove = new QToolButton(this);
AsymMove->setIconSize(iconSize);
AsymMove->setMinimumSize(buttonSize);
AsymMove->setMaximumSize(maxButtonSize);
AsymMove->setSizePolicy(QSizePolicy(buttonSizePolicy, QSizePolicy::Fixed));
AsymMove->setMaximumSize(buttonSize);
AsymMove->setEnabled(false);
AsymMove->setCheckable(true);
 
81,8 → 72,7
SymMove = new QToolButton(this);
SymMove->setIconSize(iconSize);
SymMove->setMinimumSize(buttonSize);
SymMove->setMaximumSize(maxButtonSize);
SymMove->setSizePolicy(QSizePolicy(buttonSizePolicy, QSizePolicy::Fixed));
SymMove->setMaximumSize(buttonSize);
SymMove->setEnabled(false);
SymMove->setCheckable(true);
 
89,8 → 79,7
Res1Node = new QToolButton(this);
Res1Node->setIconSize(iconSize);
Res1Node->setMinimumSize(buttonSize);
Res1Node->setMaximumSize(maxButtonSize);
Res1Node->setSizePolicy(QSizePolicy(buttonSizePolicy, QSizePolicy::Fixed));
Res1Node->setMaximumSize(buttonSize);
Res1Node->setEnabled(false);
 
PolySplit = new QToolButton(this);
98,54 → 87,46
PolySplit->setCheckable(true);
PolySplit->setIconSize(iconSize);
PolySplit->setMinimumSize(buttonSize);
PolySplit->setMaximumSize(maxButtonSize);
PolySplit->setSizePolicy(QSizePolicy(buttonSizePolicy, QSizePolicy::Fixed));
PolySplit->setMaximumSize(buttonSize);
 
BezierClose = new QToolButton(this);
BezierClose->setEnabled(false);
BezierClose->setIconSize(iconSize);
BezierClose->setMinimumSize(buttonSize);
BezierClose->setMaximumSize(maxButtonSize);
BezierClose->setSizePolicy(QSizePolicy(buttonSizePolicy, QSizePolicy::Fixed));
BezierClose->setMaximumSize(buttonSize);
 
PolyMirrorH = new QToolButton(this);
PolyMirrorH->setIconSize(iconSize);
PolyMirrorH->setMinimumSize(buttonSize);
PolyMirrorH->setMaximumSize(maxButtonSize);
PolyMirrorH->setSizePolicy(QSizePolicy(buttonSizePolicy, QSizePolicy::Fixed));
PolyMirrorH->setMaximumSize(buttonSize);
 
PolyMirrorV = new QToolButton(this);
PolyMirrorV->setIconSize(iconSize);
PolyMirrorV->setMinimumSize(buttonSize);
PolyMirrorV->setMaximumSize(maxButtonSize);
PolyMirrorV->setSizePolicy(QSizePolicy(buttonSizePolicy, QSizePolicy::Fixed));
PolyMirrorV->setMaximumSize(buttonSize);
 
PolyShearL = new QToolButton(this);
PolyShearL->setIconSize(iconSize);
PolyShearL->setMinimumSize(buttonSize);
PolyShearL->setMaximumSize(maxButtonSize);
PolyShearL->setSizePolicy(QSizePolicy(buttonSizePolicy, QSizePolicy::Fixed));
PolyShearL->setMaximumSize(buttonSize);
PolyShearL->setAutoRepeat(true);
 
PolyShearR = new QToolButton(this);
PolyShearR->setIconSize(iconSize);
PolyShearR->setMinimumSize(buttonSize);
PolyShearR->setMaximumSize(maxButtonSize);
PolyShearR->setSizePolicy(QSizePolicy(buttonSizePolicy, QSizePolicy::Fixed));
PolyShearR->setMaximumSize(buttonSize);
PolyShearR->setAutoRepeat(true);
 
PolyShearU = new QToolButton(this);
PolyShearU->setIconSize(iconSize);
PolyShearU->setMinimumSize(buttonSize);
PolyShearU->setMaximumSize(maxButtonSize);
PolyShearU->setSizePolicy(QSizePolicy(buttonSizePolicy, QSizePolicy::Fixed));
PolyShearU->setMaximumSize(buttonSize);
PolyShearU->setAutoRepeat(true);
 
PolyShearD = new QToolButton(this);
PolyShearD->setIconSize(iconSize);
PolyShearD->setMinimumSize(buttonSize);
PolyShearD->setMaximumSize(maxButtonSize);
PolyShearD->setSizePolicy(QSizePolicy(buttonSizePolicy, QSizePolicy::Fixed));
PolyShearD->setMaximumSize(buttonSize);
PolyShearD->setAutoRepeat(true);
 
RotateCCW = new QToolButton(this);
202,6 → 183,8
gridLayout = new QGridLayout();
gridLayout->setSpacing(6);
gridLayout->setContentsMargins(0, 0, 0, 0);
gridLayout->setColumnStretch(0, 1);
gridLayout->setColumnStretch(5, 1);
gridLayout->addWidget(MoveNode, 0, 1, 1, 1);
gridLayout->addWidget(AddNode, 0, 2, 1, 1);
gridLayout->addWidget(DeleteNode, 0, 3, 1, 1);