Changeset View
Changeset View
Standalone View
Standalone View
krusader/Dialogs/packguibase.cpp
Show All 39 Lines | |||||
40 | #include <QSpinBox> | 40 | #include <QSpinBox> | ||
41 | #include <QHBoxLayout> | 41 | #include <QHBoxLayout> | ||
42 | #include <QGridLayout> | 42 | #include <QGridLayout> | ||
43 | #include <QFrame> | 43 | #include <QFrame> | ||
44 | #include <QVBoxLayout> | 44 | #include <QVBoxLayout> | ||
45 | 45 | | |||
46 | #include <KConfigCore/KSharedConfig> | 46 | #include <KConfigCore/KSharedConfig> | ||
47 | #include <KI18n/KLocalizedString> | 47 | #include <KI18n/KLocalizedString> | ||
48 | #include <KIconThemes/KIconLoader> | | |||
49 | #include <KCompletion/KComboBox> | 48 | #include <KCompletion/KComboBox> | ||
50 | #include <KWidgetsAddons/KMessageBox> | 49 | #include <KWidgetsAddons/KMessageBox> | ||
51 | #include <KIO/Global> | 50 | #include <KIO/Global> | ||
52 | #include <KCompletion/KHistoryComboBox> | 51 | #include <KCompletion/KHistoryComboBox> | ||
53 | #include <KWidgetsAddons/KStandardGuiItem> | 52 | #include <KWidgetsAddons/KStandardGuiItem> | ||
54 | 53 | | |||
55 | #include "../defaults.h" | 54 | #include "../defaults.h" | ||
56 | #include "../krglobal.h" | 55 | #include "../krglobal.h" | ||
56 | #include "../icon.h" | ||||
57 | 57 | | |||
58 | /* | 58 | /* | ||
59 | * Constructs a PackGUIBase which is a child of 'parent', with the | 59 | * Constructs a PackGUIBase which is a child of 'parent', with the | ||
60 | * name 'name' and widget flags set to 'f' | 60 | * name 'name' and widget flags set to 'f' | ||
61 | * | 61 | * | ||
62 | * The dialog will by default be modeless, unless you set 'modal' to | 62 | * The dialog will by default be modeless, unless you set 'modal' to | ||
63 | * TRUE to construct a modal dialog. | 63 | * TRUE to construct a modal dialog. | ||
64 | */ | 64 | */ | ||
Show All 35 Lines | 67 | { | |||
100 | TextLabel5 = new QLabel(this); | 100 | TextLabel5 = new QLabel(this); | ||
101 | TextLabel5->setText(i18n("In folder")); | 101 | TextLabel5->setText(i18n("In folder")); | ||
102 | hbox_2->addWidget(TextLabel5); | 102 | hbox_2->addWidget(TextLabel5); | ||
103 | 103 | | |||
104 | dirData = new QLineEdit(this); | 104 | dirData = new QLineEdit(this); | ||
105 | hbox_2->addWidget(dirData); | 105 | hbox_2->addWidget(dirData); | ||
106 | 106 | | |||
107 | browseButton = new QToolButton(this); | 107 | browseButton = new QToolButton(this); | ||
108 | browseButton->setIcon(SmallIcon("document-open")); | 108 | browseButton->setIcon(Icon("document-open")); | ||
109 | hbox_2->addWidget(browseButton); | 109 | hbox_2->addWidget(browseButton); | ||
110 | QSpacerItem* spacer = new QSpacerItem(48, 20, QSizePolicy::Fixed, QSizePolicy::Fixed); | 110 | QSpacerItem* spacer = new QSpacerItem(48, 20, QSizePolicy::Fixed, QSizePolicy::Fixed); | ||
111 | hbox_2->addItem(spacer); | 111 | hbox_2->addItem(spacer); | ||
112 | 112 | | |||
113 | grid->addLayout(hbox_2, 2, 0); | 113 | grid->addLayout(hbox_2, 2, 0); | ||
114 | 114 | | |||
115 | hbox_3 = new QHBoxLayout; | 115 | hbox_3 = new QHBoxLayout; | ||
116 | hbox_3->setSpacing(6); | 116 | hbox_3->setSpacing(6); | ||
117 | hbox_3->setContentsMargins(0, 0, 0, 0); | 117 | hbox_3->setContentsMargins(0, 0, 0, 0); | ||
118 | 118 | | |||
119 | PixmapLabel1 = new QLabel(this); | 119 | PixmapLabel1 = new QLabel(this); | ||
120 | PixmapLabel1->setPixmap(krLoader->loadIcon("package-x-generic", KIconLoader::Desktop, 32)); | 120 | PixmapLabel1->setPixmap(Icon("package-x-generic").pixmap(32)); | ||
121 | PixmapLabel1->setScaledContents(true); | 121 | PixmapLabel1->setScaledContents(true); | ||
122 | PixmapLabel1->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed)); | 122 | PixmapLabel1->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed)); | ||
123 | hbox_3->addWidget(PixmapLabel1); | 123 | hbox_3->addWidget(PixmapLabel1); | ||
124 | 124 | | |||
125 | TextLabel1 = new QLabel(this); | 125 | TextLabel1 = new QLabel(this); | ||
126 | TextLabel1->setText(i18n("Pack")); | 126 | TextLabel1->setText(i18n("Pack")); | ||
127 | hbox_3->addWidget(TextLabel1); | 127 | hbox_3->addWidget(TextLabel1); | ||
128 | 128 | | |||
▲ Show 20 Lines • Show All 368 Lines • Show Last 20 Lines |