Changeset View
Changeset View
Standalone View
Standalone View
krusader/ActionMan/addplaceholderpopup.cpp
Show All 18 Lines | |||||
19 | * You should have received a copy of the GNU General Public License * | 19 | * You should have received a copy of the GNU General Public License * | ||
20 | * along with Krusader. If not, see [http://www.gnu.org/licenses/]. * | 20 | * along with Krusader. If not, see [http://www.gnu.org/licenses/]. * | ||
21 | *****************************************************************************/ | 21 | *****************************************************************************/ | ||
22 | 22 | | |||
23 | #include "addplaceholderpopup.h" | 23 | #include "addplaceholderpopup.h" | ||
24 | 24 | | |||
25 | // for ParameterDialog | 25 | // for ParameterDialog | ||
26 | #include "../krglobal.h" // for konfig-access | 26 | #include "../krglobal.h" // for konfig-access | ||
27 | #include "../icon.h" | ||||
27 | #include "../BookMan/krbookmarkbutton.h" | 28 | #include "../BookMan/krbookmarkbutton.h" | ||
28 | #include "../GUI/profilemanager.h" | 29 | #include "../GUI/profilemanager.h" | ||
29 | 30 | | |||
30 | // QtWidgets | 31 | // QtWidgets | ||
31 | #include <QCheckBox> | 32 | #include <QCheckBox> | ||
32 | #include <QDialogButtonBox> | 33 | #include <QDialogButtonBox> | ||
33 | #include <QFileDialog> | 34 | #include <QFileDialog> | ||
34 | #include <QFrame> | 35 | #include <QFrame> | ||
▲ Show 20 Lines • Show All 266 Lines • ▼ Show 20 Line(s) | 295 | { | |||
301 | layout->addWidget(hboxWidget); | 302 | layout->addWidget(hboxWidget); | ||
302 | QHBoxLayout * hbox = new QHBoxLayout(hboxWidget); | 303 | QHBoxLayout * hbox = new QHBoxLayout(hboxWidget); | ||
303 | 304 | | |||
304 | hbox->setContentsMargins(0, 0, 0, 0); | 305 | hbox->setContentsMargins(0, 0, 0, 0); | ||
305 | hbox->setSpacing(6); | 306 | hbox->setSpacing(6); | ||
306 | _lineEdit = new KLineEdit(hboxWidget); | 307 | _lineEdit = new KLineEdit(hboxWidget); | ||
307 | hbox->addWidget(_lineEdit); | 308 | hbox->addWidget(_lineEdit); | ||
308 | _button = new QToolButton(hboxWidget); | 309 | _button = new QToolButton(hboxWidget); | ||
309 | _button->setIcon(QIcon::fromTheme("list-add")); | 310 | _button->setIcon(Icon("list-add")); | ||
310 | hbox->addWidget(_button); | 311 | hbox->addWidget(_button); | ||
311 | connect(_button, SIGNAL(clicked()), this, SLOT(addPlaceholder())); | 312 | connect(_button, SIGNAL(clicked()), this, SLOT(addPlaceholder())); | ||
312 | } | 313 | } | ||
313 | 314 | | |||
314 | QString ParameterPlaceholder::text() | 315 | QString ParameterPlaceholder::text() | ||
315 | { | 316 | { | ||
316 | return _lineEdit->text(); | 317 | return _lineEdit->text(); | ||
317 | } | 318 | } | ||
▲ Show 20 Lines • Show All 96 Lines • ▼ Show 20 Line(s) | 406 | { | |||
414 | QHBoxLayout * hbox = new QHBoxLayout(hboxWidget); | 415 | QHBoxLayout * hbox = new QHBoxLayout(hboxWidget); | ||
415 | 416 | | |||
416 | hbox->setContentsMargins(0, 0, 0, 0); | 417 | hbox->setContentsMargins(0, 0, 0, 0); | ||
417 | hbox->setSpacing(6); | 418 | hbox->setSpacing(6); | ||
418 | _lineEdit = new KLineEdit(hboxWidget); | 419 | _lineEdit = new KLineEdit(hboxWidget); | ||
419 | hbox->addWidget(_lineEdit); | 420 | hbox->addWidget(_lineEdit); | ||
420 | _button = new QToolButton(hboxWidget); | 421 | _button = new QToolButton(hboxWidget); | ||
421 | hbox->addWidget(_button); | 422 | hbox->addWidget(_button); | ||
422 | _button->setIcon(QIcon::fromTheme("document-open")); | 423 | _button->setIcon(Icon("document-open")); | ||
423 | connect(_button, SIGNAL(clicked()), this, SLOT(addFile())); | 424 | connect(_button, SIGNAL(clicked()), this, SLOT(addFile())); | ||
424 | } | 425 | } | ||
425 | 426 | | |||
426 | QString ParameterFile::text() | 427 | QString ParameterFile::text() | ||
427 | { | 428 | { | ||
428 | return _lineEdit->text(); | 429 | return _lineEdit->text(); | ||
429 | } | 430 | } | ||
430 | QString ParameterFile::preset() | 431 | QString ParameterFile::preset() | ||
▲ Show 20 Lines • Show All 96 Lines • ▼ Show 20 Line(s) | 519 | { | |||
527 | 528 | | |||
528 | hbox->setContentsMargins(0, 0, 0, 0); | 529 | hbox->setContentsMargins(0, 0, 0, 0); | ||
529 | hbox->setSpacing(6); | 530 | hbox->setSpacing(6); | ||
530 | _lineEdit = new KLineEdit(hboxWidget); | 531 | _lineEdit = new KLineEdit(hboxWidget); | ||
531 | _lineEdit->setCompletionObject(new KUrlCompletion(KUrlCompletion::DirCompletion)); | 532 | _lineEdit->setCompletionObject(new KUrlCompletion(KUrlCompletion::DirCompletion)); | ||
532 | hbox->addWidget(_lineEdit); | 533 | hbox->addWidget(_lineEdit); | ||
533 | _dirButton = new QToolButton(hboxWidget); | 534 | _dirButton = new QToolButton(hboxWidget); | ||
534 | hbox->addWidget(_dirButton); | 535 | hbox->addWidget(_dirButton); | ||
535 | _dirButton->setIcon(QIcon::fromTheme("document-open")); | 536 | _dirButton->setIcon(Icon("document-open")); | ||
536 | connect(_dirButton, SIGNAL(clicked()), this, SLOT(setDir())); | 537 | connect(_dirButton, SIGNAL(clicked()), this, SLOT(setDir())); | ||
537 | _placeholderButton = new QToolButton(hboxWidget); | 538 | _placeholderButton = new QToolButton(hboxWidget); | ||
538 | _placeholderButton->setIcon(QIcon::fromTheme("list-add")); | 539 | _placeholderButton->setIcon(Icon("list-add")); | ||
539 | hbox->addWidget(_placeholderButton); | 540 | hbox->addWidget(_placeholderButton); | ||
540 | connect(_placeholderButton, SIGNAL(clicked()), this, SLOT(addPlaceholder())); | 541 | connect(_placeholderButton, SIGNAL(clicked()), this, SLOT(addPlaceholder())); | ||
541 | 542 | | |||
542 | layout->addWidget(hboxWidget); | 543 | layout->addWidget(hboxWidget); | ||
543 | } | 544 | } | ||
544 | 545 | | |||
545 | QString ParameterGoto::text() | 546 | QString ParameterGoto::text() | ||
546 | { | 547 | { | ||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |