Changeset View
Changeset View
Standalone View
Standalone View
krusader/GUI/kcmdline.cpp
Show All 33 Lines | |||||
34 | // QtWidgets | 34 | // QtWidgets | ||
35 | #include <QSizePolicy> | 35 | #include <QSizePolicy> | ||
36 | #include <QGridLayout> | 36 | #include <QGridLayout> | ||
37 | #include <QFrame> | 37 | #include <QFrame> | ||
38 | #include <QLabel> | 38 | #include <QLabel> | ||
39 | 39 | | |||
40 | #include <KConfigCore/KSharedConfig> | 40 | #include <KConfigCore/KSharedConfig> | ||
41 | #include <KI18n/KLocalizedString> | 41 | #include <KI18n/KLocalizedString> | ||
42 | #include <KIconThemes/KIconLoader> | | |||
43 | 42 | | |||
44 | #include "../krglobal.h" | 43 | #include "../krglobal.h" | ||
45 | #include "../kicons.h" | 44 | #include "../icon.h" | ||
46 | #include "../krslots.h" | 45 | #include "../krslots.h" | ||
47 | #include "../defaults.h" | 46 | #include "../defaults.h" | ||
48 | #include "../krusaderview.h" | 47 | #include "../krusaderview.h" | ||
49 | #include "../krservices.h" | 48 | #include "../krservices.h" | ||
50 | #include "../ActionMan/addplaceholderpopup.h" | 49 | #include "../ActionMan/addplaceholderpopup.h" | ||
51 | #include "kcmdmodebutton.h" | 50 | #include "kcmdmodebutton.h" | ||
52 | 51 | | |||
53 | 52 | | |||
▲ Show 20 Lines • Show All 129 Lines • ▼ Show 20 Line(s) | 159 | { | |||
183 | connect(cmdLine, SIGNAL(returnPressed(QString)), cmdLine->lineEdit(), SLOT(clear())); | 182 | connect(cmdLine, SIGNAL(returnPressed(QString)), cmdLine->lineEdit(), SLOT(clear())); | ||
184 | connect(cmdLine, SIGNAL(returnToPanel()), this, SLOT(slotReturnFocus())); | 183 | connect(cmdLine, SIGNAL(returnToPanel()), this, SLOT(slotReturnFocus())); | ||
185 | 184 | | |||
186 | cmdLine->setWhatsThis(i18n("<qt><p>Well, it is actually quite simple: you type your command here and Krusader obeys.</p><p><b>Tip</b>: move within command line history with <Up> and <Down> arrows.</p></qt>")); | 185 | cmdLine->setWhatsThis(i18n("<qt><p>Well, it is actually quite simple: you type your command here and Krusader obeys.</p><p><b>Tip</b>: move within command line history with <Up> and <Down> arrows.</p></qt>")); | ||
187 | layout->addWidget(cmdLine, 0, 1); | 186 | layout->addWidget(cmdLine, 0, 1); | ||
188 | 187 | | |||
189 | buttonAddPlaceholder = new QToolButton(this); | 188 | buttonAddPlaceholder = new QToolButton(this); | ||
190 | buttonAddPlaceholder->setAutoRaise(true); | 189 | buttonAddPlaceholder->setAutoRaise(true); | ||
191 | buttonAddPlaceholder->setIcon(SmallIcon("list-add")); | 190 | buttonAddPlaceholder->setIcon(Icon("list-add")); | ||
192 | connect(buttonAddPlaceholder, SIGNAL(clicked()), this, SLOT(addPlaceholder())); | 191 | connect(buttonAddPlaceholder, SIGNAL(clicked()), this, SLOT(addPlaceholder())); | ||
193 | buttonAddPlaceholder->setWhatsThis(i18n("Add <b>Placeholders</b> for the selected files in the panel.")); | 192 | buttonAddPlaceholder->setWhatsThis(i18n("Add <b>Placeholders</b> for the selected files in the panel.")); | ||
194 | 193 | | |||
195 | layout->addWidget(buttonAddPlaceholder, 0, 2); | 194 | layout->addWidget(buttonAddPlaceholder, 0, 2); | ||
196 | 195 | | |||
197 | // a run in terminal button | 196 | // a run in terminal button | ||
198 | terminal = new KCMDModeButton(this); | 197 | terminal = new KCMDModeButton(this); | ||
199 | terminal->setAutoRaise(true); | 198 | terminal->setAutoRaise(true); | ||
▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines |