Krita Source Code Documentation
Loading...
Searching...
No Matches
BrushPipeSelectionModeHelper Class Reference

#include <KisWdgOptionsBrush.h>

+ Inheritance diagram for BrushPipeSelectionModeHelper:

Public Slots

void slotRankChanged ()
 

Signals

void sigRankChanged (int rankEmitter)
 

Public Member Functions

 BrushPipeSelectionModeHelper (QWidget *parent, int dimension)
 

Public Attributes

QComboBox cmbSelectionMode
 
int dimension
 
QHBoxLayout horizLayout
 
QLabel rankLbl
 
QSpinBox rankSpinBox
 

Detailed Description

Definition at line 20 of file KisWdgOptionsBrush.h.

Constructor & Destructor Documentation

◆ BrushPipeSelectionModeHelper()

BrushPipeSelectionModeHelper::BrushPipeSelectionModeHelper ( QWidget * parent,
int dimension )
inline

Definition at line 25 of file KisWdgOptionsBrush.h.

26 : QWidget(parent)
27 , cmbSelectionMode(this)
28 , rankSpinBox(this)
29 , rankLbl(this)
30 , horizLayout(this)
32 {
33 cmbSelectionMode.addItem(i18n("Constant"));
34 cmbSelectionMode.addItem(i18n("Random"));
35 cmbSelectionMode.addItem(i18n("Incremental"));
36 cmbSelectionMode.addItem(i18n("Pressure"));
37 cmbSelectionMode.addItem(i18n("Angular"));
38 cmbSelectionMode.addItem(i18n("Velocity"));
39
40 horizLayout.setSpacing(6);
41 horizLayout.setContentsMargins(0, 0, 0, 0);
42
43 QSizePolicy sizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed));
44 sizePolicy.setHorizontalStretch(1);
45 sizePolicy.setVerticalStretch(0);
46
47 this->setSizePolicy(sizePolicy);
48
49 cmbSelectionMode.setSizePolicy(sizePolicy);
50 cmbSelectionMode.setCurrentIndex(2);
51
52 rankSpinBox.setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred));
53 rankLbl.setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred));
54
55 rankLbl.setText(i18n("Rank"));
56 horizLayout.addWidget(&rankLbl);
57 horizLayout.addWidget(&rankSpinBox);
58 horizLayout.addWidget(&cmbSelectionMode);
59
60 connect(&rankSpinBox, SIGNAL(valueChanged(int)), this, SLOT(slotRankChanged()));
61
62 this->hide();
63 this->setEnabled(false);
64 }
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))

References cmbSelectionMode, connect(), horizLayout, rankLbl, rankSpinBox, and slotRankChanged().

Member Function Documentation

◆ sigRankChanged

void BrushPipeSelectionModeHelper::sigRankChanged ( int rankEmitter)
signal

◆ slotRankChanged

void BrushPipeSelectionModeHelper::slotRankChanged ( )
inlineslot

Definition at line 78 of file KisWdgOptionsBrush.h.

79 {
81 }
void sigRankChanged(int rankEmitter)

References dimension, and sigRankChanged().

Member Data Documentation

◆ cmbSelectionMode

QComboBox BrushPipeSelectionModeHelper::cmbSelectionMode

Definition at line 66 of file KisWdgOptionsBrush.h.

◆ dimension

int BrushPipeSelectionModeHelper::dimension

Definition at line 71 of file KisWdgOptionsBrush.h.

◆ horizLayout

QHBoxLayout BrushPipeSelectionModeHelper::horizLayout

Definition at line 69 of file KisWdgOptionsBrush.h.

◆ rankLbl

QLabel BrushPipeSelectionModeHelper::rankLbl

Definition at line 68 of file KisWdgOptionsBrush.h.

◆ rankSpinBox

QSpinBox BrushPipeSelectionModeHelper::rankSpinBox

Definition at line 67 of file KisWdgOptionsBrush.h.


The documentation for this class was generated from the following file: