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

#include <KisNewWindowLayoutDialog.h>

+ Inheritance diagram for KisNewWindowLayoutDialog:

Public Member Functions

 KisNewWindowLayoutDialog (QWidget *parent=0)
 
QString name () const
 
bool primaryWorkspaceFollowsFocus () const
 
void setName (const QString &name)
 
bool showImageInAllWindows () const
 

Detailed Description

Definition at line 13 of file KisNewWindowLayoutDialog.h.

Constructor & Destructor Documentation

◆ KisNewWindowLayoutDialog()

KisNewWindowLayoutDialog::KisNewWindowLayoutDialog ( QWidget * parent = 0)

Definition at line 11 of file KisNewWindowLayoutDialog.cpp.

12 : QDialog(parent)
13{
14 setupUi(this);
15
16 KGuiItem::assign(buttonBox->button(QDialogButtonBox::Ok), KStandardGuiItem::ok());
17 KGuiItem::assign(buttonBox->button(QDialogButtonBox::Cancel), KStandardGuiItem::cancel());
18 connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
19 connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
20}
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))

References connect().

Member Function Documentation

◆ name()

QString KisNewWindowLayoutDialog::name ( ) const

Definition at line 27 of file KisNewWindowLayoutDialog.cpp.

28{
29 return nameInput->text();
30}

◆ primaryWorkspaceFollowsFocus()

bool KisNewWindowLayoutDialog::primaryWorkspaceFollowsFocus ( ) const

Definition at line 37 of file KisNewWindowLayoutDialog.cpp.

38{
39 return chkFollowFocus->isChecked();
40}

◆ setName()

void KisNewWindowLayoutDialog::setName ( const QString & name)

Definition at line 22 of file KisNewWindowLayoutDialog.cpp.

23{
24 nameInput->setText(name);
25}

References name().

◆ showImageInAllWindows()

bool KisNewWindowLayoutDialog::showImageInAllWindows ( ) const

Definition at line 32 of file KisNewWindowLayoutDialog.cpp.

33{
34 return chkActiveInAllWindows->isChecked();
35}

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