Changeset View
Changeset View
Standalone View
Standalone View
krusader/Dialogs/krmaskchoice.cpp
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | |||||
46 | */ | 46 | */ | ||
47 | KRMaskChoice::KRMaskChoice(QWidget* parent) | 47 | KRMaskChoice::KRMaskChoice(QWidget* parent) | ||
48 | : QDialog(parent) | 48 | : QDialog(parent) | ||
49 | { | 49 | { | ||
50 | setModal(true); | 50 | setModal(true); | ||
51 | resize(401, 314); | 51 | resize(401, 314); | ||
52 | setWindowTitle(i18n("Choose Files")); | 52 | setWindowTitle(i18n("Choose Files")); | ||
53 | 53 | | |||
54 | QVBoxLayout* MainLayout = new QVBoxLayout(this); | 54 | auto* MainLayout = new QVBoxLayout(this); | ||
55 | 55 | | |||
56 | QHBoxLayout* HeaderLayout = new QHBoxLayout(); | 56 | auto* HeaderLayout = new QHBoxLayout(); | ||
57 | MainLayout->addLayout(HeaderLayout); | 57 | MainLayout->addLayout(HeaderLayout); | ||
58 | 58 | | |||
59 | PixmapLabel1 = new QLabel(this); | 59 | PixmapLabel1 = new QLabel(this); | ||
60 | PixmapLabel1->setScaledContents(true); | 60 | PixmapLabel1->setScaledContents(true); | ||
61 | PixmapLabel1->setMaximumSize(QSize(31, 31)); | 61 | PixmapLabel1->setMaximumSize(QSize(31, 31)); | ||
62 | HeaderLayout->addWidget(PixmapLabel1); | 62 | HeaderLayout->addWidget(PixmapLabel1); | ||
63 | 63 | | |||
64 | label = new QLabel(this); | 64 | label = new QLabel(this); | ||
65 | label->setText(i18n("Select the following files:")); | 65 | label->setText(i18n("Select the following files:")); | ||
66 | HeaderLayout->addWidget(label); | 66 | HeaderLayout->addWidget(label); | ||
67 | 67 | | |||
68 | selection = new KComboBox(this); | 68 | selection = new KComboBox(this); | ||
69 | selection->setEditable(true); | 69 | selection->setEditable(true); | ||
70 | selection->setInsertPolicy(QComboBox::InsertAtTop); | 70 | selection->setInsertPolicy(QComboBox::InsertAtTop); | ||
71 | selection->setAutoCompletion(true); | 71 | selection->setAutoCompletion(true); | ||
72 | MainLayout->addWidget(selection); | 72 | MainLayout->addWidget(selection); | ||
73 | 73 | | |||
74 | QGroupBox* GroupBox1 = new QGroupBox(this); | 74 | auto* GroupBox1 = new QGroupBox(this); | ||
75 | GroupBox1->setTitle(i18n("Predefined Selections")); | 75 | GroupBox1->setTitle(i18n("Predefined Selections")); | ||
76 | MainLayout->addWidget(GroupBox1); | 76 | MainLayout->addWidget(GroupBox1); | ||
77 | 77 | | |||
78 | QHBoxLayout* gbLayout = new QHBoxLayout(GroupBox1); | 78 | auto* gbLayout = new QHBoxLayout(GroupBox1); | ||
79 | 79 | | |||
80 | preSelections = new KrListWidget(GroupBox1); | 80 | preSelections = new KrListWidget(GroupBox1); | ||
81 | preSelections->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn); | 81 | preSelections->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn); | ||
82 | preSelections->setWhatsThis(i18n("A predefined selection is a file-mask which you often use.\nSome examples are: \"*.c, *.h\", \"*.c, *.o\", etc.\nYou can add these masks to the list by typing them and pressing the Add button.\nDelete removes a predefined selection and Clear removes all of them.\nNotice that the line in which you edit the mask has its own history, you can scroll it, if needed.")); | 82 | preSelections->setWhatsThis(i18n("A predefined selection is a file-mask which you often use.\nSome examples are: \"*.c, *.h\", \"*.c, *.o\", etc.\nYou can add these masks to the list by typing them and pressing the Add button.\nDelete removes a predefined selection and Clear removes all of them.\nNotice that the line in which you edit the mask has its own history, you can scroll it, if needed.")); | ||
83 | gbLayout->addWidget(preSelections); | 83 | gbLayout->addWidget(preSelections); | ||
84 | 84 | | |||
85 | QVBoxLayout* vbox = new QVBoxLayout(); | 85 | auto* vbox = new QVBoxLayout(); | ||
86 | gbLayout->addLayout(vbox); | 86 | gbLayout->addLayout(vbox); | ||
87 | 87 | | |||
88 | PushButton7 = new QPushButton(GroupBox1); | 88 | PushButton7 = new QPushButton(GroupBox1); | ||
89 | PushButton7->setText(i18n("Add")); | 89 | PushButton7->setText(i18n("Add")); | ||
90 | PushButton7->setToolTip(i18n("Adds the selection in the line-edit to the list")); | 90 | PushButton7->setToolTip(i18n("Adds the selection in the line-edit to the list")); | ||
91 | vbox->addWidget(PushButton7); | 91 | vbox->addWidget(PushButton7); | ||
92 | 92 | | |||
93 | PushButton7_2 = new QPushButton(GroupBox1); | 93 | PushButton7_2 = new QPushButton(GroupBox1); | ||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |