Changeset View
Changeset View
Standalone View
Standalone View
krusader/ActionMan/actionproperty.cpp
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | 41 | { | |||
---|---|---|---|---|---|
48 | } | 48 | } | ||
49 | 49 | | |||
50 | ButtonAddPlaceholder->setIcon(Icon("list-add")); | 50 | ButtonAddPlaceholder->setIcon(Icon("list-add")); | ||
51 | ButtonAddStartpath->setIcon(Icon("document-open")); | 51 | ButtonAddStartpath->setIcon(Icon("document-open")); | ||
52 | 52 | | |||
53 | // fill with all existing categories | 53 | // fill with all existing categories | ||
54 | cbCategory->addItems(krUserAction->allCategories()); | 54 | cbCategory->addItems(krUserAction->allCategories()); | ||
55 | 55 | | |||
56 | connect(ButtonAddPlaceholder, SIGNAL(clicked()), this, SLOT(addPlaceholder())); | 56 | connect(ButtonAddPlaceholder, &QToolButton::clicked, this, &ActionProperty::addPlaceholder); | ||
57 | connect(ButtonAddStartpath, SIGNAL(clicked()), this, SLOT(addStartpath())); | 57 | connect(ButtonAddStartpath, &QToolButton::clicked, this, &ActionProperty::addStartpath); | ||
58 | connect(ButtonNewProtocol, SIGNAL(clicked()), this, SLOT(newProtocol())); | 58 | connect(ButtonNewProtocol, &QToolButton::clicked, this, &ActionProperty::newProtocol); | ||
59 | connect(ButtonEditProtocol, SIGNAL(clicked()), this, SLOT(editProtocol())); | 59 | connect(ButtonEditProtocol, &QToolButton::clicked, this, &ActionProperty::editProtocol); | ||
60 | connect(ButtonRemoveProtocol, SIGNAL(clicked()), this, SLOT(removeProtocol())); | 60 | connect(ButtonRemoveProtocol, &QToolButton::clicked, this, &ActionProperty::removeProtocol); | ||
61 | connect(ButtonAddPath, SIGNAL(clicked()), this, SLOT(addPath())); | 61 | connect(ButtonAddPath, &QToolButton::clicked, this, &ActionProperty::addPath); | ||
62 | connect(ButtonEditPath, SIGNAL(clicked()), this, SLOT(editPath())); | 62 | connect(ButtonEditPath, &QToolButton::clicked, this, &ActionProperty::editPath); | ||
63 | connect(ButtonRemovePath, SIGNAL(clicked()), this, SLOT(removePath())); | 63 | connect(ButtonRemovePath, &QToolButton::clicked, this, &ActionProperty::removePath); | ||
64 | connect(ButtonAddMime, SIGNAL(clicked()), this, SLOT(addMime())); | 64 | connect(ButtonAddMime, &QToolButton::clicked, this, &ActionProperty::addMime); | ||
65 | connect(ButtonEditMime, SIGNAL(clicked()), this, SLOT(editMime())); | 65 | connect(ButtonEditMime, &QToolButton::clicked, this, &ActionProperty::editMime); | ||
66 | connect(ButtonRemoveMime, SIGNAL(clicked()), this, SLOT(removeMime())); | 66 | connect(ButtonRemoveMime, &QToolButton::clicked, this, &ActionProperty::removeMime); | ||
67 | connect(ButtonNewFile, SIGNAL(clicked()), this, SLOT(newFile())); | 67 | connect(ButtonNewFile, &QToolButton::clicked, this, &ActionProperty::newFile); | ||
68 | connect(ButtonEditFile, SIGNAL(clicked()), this, SLOT(editFile())); | 68 | connect(ButtonEditFile, &QToolButton::clicked, this, &ActionProperty::editFile); | ||
69 | connect(ButtonRemoveFile, SIGNAL(clicked()), this, SLOT(removeFile())); | 69 | connect(ButtonRemoveFile, &QToolButton::clicked, this, &ActionProperty::removeFile); | ||
70 | connect(KeyButtonShortcut, SIGNAL(keySequenceChanged(QKeySequence)), this, SLOT(changedShortcut(QKeySequence))); | 70 | connect(KeyButtonShortcut, &KKeySequenceWidget::keySequenceChanged, this, &ActionProperty::changedShortcut); | ||
71 | // track modifications: | 71 | // track modifications: | ||
72 | connect(leDistinctName, SIGNAL(textChanged(QString)), SLOT(setModified())); | 72 | connect(leDistinctName, &KLineEdit::textChanged, this, [=]() { setModified(true); }); | ||
73 | connect(leTitle, SIGNAL(textChanged(QString)), SLOT(setModified())); | 73 | connect(leTitle, &KLineEdit::textChanged, this, [=]() {setModified(true); }); | ||
74 | connect(ButtonIcon, SIGNAL(iconChanged(QString)), SLOT(setModified())); | 74 | connect(ButtonIcon, &KIconButton::iconChanged, this, [=]() {setModified(true); }); | ||
75 | connect(cbCategory, SIGNAL(currentTextChanged(QString)), SLOT(setModified())); | 75 | connect(cbCategory, &KComboBox::currentTextChanged, this, [=]() {setModified(true); }); | ||
76 | connect(leTooltip, SIGNAL(textChanged(QString)), SLOT(setModified())); | 76 | connect(leTooltip, &KLineEdit::textChanged, this, [=]() {setModified(true); }); | ||
77 | connect(textDescription, SIGNAL(textChanged()), SLOT(setModified())); | 77 | connect(textDescription, &KTextEdit::textChanged, this, [=]() {setModified(true); }); | ||
78 | connect(leCommandline, SIGNAL(textChanged(QString)), SLOT(setModified())); | 78 | connect(leCommandline, &KLineEdit::textChanged, this, [=]() {setModified(true); }); | ||
79 | connect(leStartpath, SIGNAL(textChanged(QString)), SLOT(setModified())); | 79 | connect(leStartpath, &KLineEdit::textChanged, this, [=]() {setModified(true); }); | ||
80 | connect(chkSeparateStdError, SIGNAL(clicked()), SLOT(setModified())); | 80 | connect(chkSeparateStdError, &QCheckBox::clicked, this, &ActionProperty::setModified); | ||
81 | connect(radioCollectOutput, SIGNAL(clicked()), SLOT(setModified())); | 81 | connect(radioCollectOutput, &QRadioButton::clicked, this, &ActionProperty::setModified); | ||
82 | connect(radioNormal, SIGNAL(clicked()), SLOT(setModified())); | 82 | connect(radioNormal, &QRadioButton::clicked, this, &ActionProperty::setModified); | ||
83 | connect(radioTE, SIGNAL(clicked()), SLOT(setModified())); | 83 | connect(radioTE, &QRadioButton::clicked, this, &ActionProperty::setModified); | ||
84 | connect(radioTerminal, SIGNAL(clicked()), SLOT(setModified())); | 84 | connect(radioTerminal, &QRadioButton::clicked, this, &ActionProperty::setModified); | ||
85 | connect(radioLocal, SIGNAL(clicked()), SLOT(setModified())); | 85 | connect(radioLocal, &QRadioButton::clicked, this, &ActionProperty::setModified); | ||
86 | connect(radioUrl, SIGNAL(clicked()), SLOT(setModified())); | 86 | connect(radioUrl, &QRadioButton::clicked, this, &ActionProperty::setModified); | ||
87 | connect(KeyButtonShortcut, SIGNAL(keySequenceChanged(QKeySequence)), SLOT(setModified())); | 87 | connect(KeyButtonShortcut, &KKeySequenceWidget::keySequenceChanged, this, [=]() {setModified(true); }); | ||
88 | connect(chkEnabled, SIGNAL(clicked()), SLOT(setModified())); | 88 | connect(chkEnabled, &QCheckBox::clicked, this, &ActionProperty::setModified); | ||
89 | connect(leDifferentUser, SIGNAL(textChanged(QString)), SLOT(setModified())); | 89 | connect(leDifferentUser, &KLineEdit::textChanged, this, [=]() {setModified(true); }); | ||
90 | connect(chkDifferentUser, SIGNAL(clicked()), SLOT(setModified())); | 90 | connect(chkDifferentUser, &QCheckBox::clicked, this, &ActionProperty::setModified); | ||
91 | connect(chkConfirmExecution, SIGNAL(clicked()), SLOT(setModified())); | 91 | connect(chkConfirmExecution, &QCheckBox::clicked, this, &ActionProperty::setModified); | ||
92 | connect(chkSeparateStdError, SIGNAL(clicked()), SLOT(setModified())); | 92 | connect(chkSeparateStdError, &QCheckBox::clicked, this, &ActionProperty::setModified); | ||
93 | // The modified-state of the ShowOnly-lists is tracked in the access-functions below | 93 | // The modified-state of the ShowOnly-lists is tracked in the access-functions below | ||
94 | } | 94 | } | ||
95 | 95 | | |||
96 | ActionProperty::~ActionProperty() | 96 | ActionProperty::~ActionProperty() | ||
97 | { | 97 | { | ||
98 | } | 98 | } | ||
99 | 99 | | |||
100 | void ActionProperty::changedShortcut(const QKeySequence& shortcut) | 100 | void ActionProperty::changedShortcut(const QKeySequence& shortcut) | ||
▲ Show 20 Lines • Show All 418 Lines • Show Last 20 Lines |