Changeset View
Changeset View
Standalone View
Standalone View
krusader/Dialogs/krspwidgets.cpp
Show All 15 Lines | |||||
16 | * GNU General Public License for more details. * | 16 | * GNU General Public License for more details. * | ||
17 | * * | 17 | * * | ||
18 | * You should have received a copy of the GNU General Public License * | 18 | * You should have received a copy of the GNU General Public License * | ||
19 | * along with Krusader. If not, see [http://www.gnu.org/licenses/]. * | 19 | * along with Krusader. If not, see [http://www.gnu.org/licenses/]. * | ||
20 | *****************************************************************************/ | 20 | *****************************************************************************/ | ||
21 | 21 | | |||
22 | #include "krspwidgets.h" | 22 | #include "krspwidgets.h" | ||
23 | #include "../krglobal.h" | 23 | #include "../krglobal.h" | ||
24 | #include "../kicons.h" | 24 | #include "../icon.h" | ||
25 | #include "../Filter/filtertabs.h" | 25 | #include "../Filter/filtertabs.h" | ||
26 | #include "../GUI/krlistwidget.h" | 26 | #include "../GUI/krlistwidget.h" | ||
27 | 27 | | |||
28 | // QtCore | 28 | // QtCore | ||
29 | #include <QEvent> | 29 | #include <QEvent> | ||
30 | // QtGui | 30 | // QtGui | ||
31 | #include <QBitmap> | 31 | #include <QBitmap> | ||
32 | // QtWidgets | 32 | // QtWidgets | ||
33 | #include <QComboBox> | 33 | #include <QComboBox> | ||
34 | #include <QLabel> | 34 | #include <QLabel> | ||
35 | #include <QLineEdit> | 35 | #include <QLineEdit> | ||
36 | #include <QCheckBox> | 36 | #include <QCheckBox> | ||
37 | #include <QSpinBox> | 37 | #include <QSpinBox> | ||
38 | #include <qnamespace.h> // missing ? | 38 | #include <qnamespace.h> // missing ? | ||
39 | 39 | | |||
40 | #include <KCompletion/KComboBox> | 40 | #include <KCompletion/KComboBox> | ||
41 | #include <KCompletion/KHistoryComboBox> | 41 | #include <KCompletion/KHistoryComboBox> | ||
42 | #include <KConfigCore/KSharedConfig> | 42 | #include <KConfigCore/KSharedConfig> | ||
43 | #include <KI18n/KLocalizedString> | 43 | #include <KI18n/KLocalizedString> | ||
44 | #include <KIconThemes/KIconLoader> | | |||
45 | #include <KWidgetsAddons/KCursor> | 44 | #include <KWidgetsAddons/KCursor> | ||
46 | 45 | | |||
47 | ///////////////////// initiation of the static members //////////////////////// | 46 | ///////////////////// initiation of the static members //////////////////////// | ||
48 | QStringList KRSpWidgets::maskList; | 47 | QStringList KRSpWidgets::maskList; | ||
49 | 48 | | |||
50 | /////////////////////////////////////////////////////////////////////////////// | 49 | /////////////////////////////////////////////////////////////////////////////// | ||
51 | 50 | | |||
52 | KRSpWidgets::KRSpWidgets() | 51 | KRSpWidgets::KRSpWidgets() | ||
▲ Show 20 Lines • Show All 110 Lines • ▼ Show 20 Line(s) | |||||
163 | { | 162 | { | ||
164 | url->lineEdit()->setText(""); | 163 | url->lineEdit()->setText(""); | ||
165 | newFTPGUI::reject(); | 164 | newFTPGUI::reject(); | ||
166 | } | 165 | } | ||
167 | 166 | | |||
168 | /////////////////////////// KRMaskChoiceSub /////////////////////////////// | 167 | /////////////////////////// KRMaskChoiceSub /////////////////////////////// | ||
169 | KRMaskChoiceSub::KRMaskChoiceSub(QWidget * parent) : KRMaskChoice(parent) | 168 | KRMaskChoiceSub::KRMaskChoiceSub(QWidget * parent) : KRMaskChoice(parent) | ||
170 | { | 169 | { | ||
171 | PixmapLabel1->setPixmap(krLoader->loadIcon("edit-select", KIconLoader::Desktop, 32)); | 170 | PixmapLabel1->setPixmap(Icon("edit-select").pixmap(32)); | ||
172 | label->setText(i18n("Enter a selection:")); | 171 | label->setText(i18n("Enter a selection:")); | ||
173 | // the predefined selections list | 172 | // the predefined selections list | ||
174 | KConfigGroup group(krConfig, "Private"); | 173 | KConfigGroup group(krConfig, "Private"); | ||
175 | QStringList lst = group.readEntry("Predefined Selections", QStringList()); | 174 | QStringList lst = group.readEntry("Predefined Selections", QStringList()); | ||
176 | if (lst.size() > 0) preSelections->addItems(lst); | 175 | if (lst.size() > 0) preSelections->addItems(lst); | ||
177 | // the combo-box tweaks | 176 | // the combo-box tweaks | ||
178 | selection->setDuplicatesEnabled(false); | 177 | selection->setDuplicatesEnabled(false); | ||
179 | selection->addItems(KRSpWidgets::maskList); | 178 | selection->addItems(KRSpWidgets::maskList); | ||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |