/usr/lib/bouml/GlobalChange/143362.bodies is in bouml-plugouts-src 4.21-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 | class Dialog
!!!188546.cpp!!! Dialog()
QVBoxLayout * vbox = new QVBoxLayout(this);
QVGroupBox * gbox;
QHButtonGroup * bg;
QHBox * htab;
vbox->setMargin(5);
gbox = new QVGroupBox("Filters" , this);
vbox->addWidget(gbox);
htab = new QHBox(gbox);
//htab->setMargin(5);
new QLabel("filter 1 : ", htab);
filter1_le = new LineEdit(htab);
new QLabel(" ", htab);
bg = new QHButtonGroup(htab);
bg->setRadioButtonExclusive(TRUE);
with1_rb = new QRadioButton("with", bg);
new QRadioButton("without", bg);
with1_rb->setChecked(TRUE);
//
htab = new QHBox(gbox);
//htab->setMargin(5);
new QLabel("", htab);
bg = new QHButtonGroup(htab);
bg->setRadioButtonExclusive(TRUE);
and12_rb = new QRadioButton("and", bg);
new QRadioButton("or", bg);
and12_rb->setChecked(TRUE);
new QLabel("", htab);
//
htab = new QHBox(gbox);
//htab->setMargin(5);
new QLabel("filter 2 : ", htab);
filter2_le = new LineEdit(htab);
new QLabel(" ", htab);
bg = new QHButtonGroup(htab);
bg->setRadioButtonExclusive(TRUE);
with2_rb = new QRadioButton("with", bg);
new QRadioButton("without", bg);
with2_rb->setChecked(TRUE);
//
htab = new QHBox(gbox);
//htab->setMargin(5);
new QLabel("", htab);
bg = new QHButtonGroup(htab);
bg->setRadioButtonExclusive(TRUE);
and23_rb = new QRadioButton("and", bg);
new QRadioButton("or", bg);
and23_rb->setChecked(TRUE);
new QLabel("", htab);
//
htab = new QHBox(gbox);
//htab->setMargin(5);
new QLabel("filter 3 : ", htab);
filter3_le = new LineEdit(htab);
new QLabel(" ", htab);
bg = new QHButtonGroup(htab);
bg->setRadioButtonExclusive(TRUE);
with3_rb = new QRadioButton("with", bg);
new QRadioButton("without", bg);
with3_rb->setChecked(TRUE);
//
//
gbox = new QVGroupBox("Stereotype" , this);
vbox->addWidget(gbox);
htab = new QHBox(gbox);
//htab->setMargin(5);
bg = new QHButtonGroup(htab);
bg->setRadioButtonExclusive(TRUE);
any_rb = new QRadioButton("any", bg);
is_rb = new QRadioButton("is", bg);
isnot_rb = new QRadioButton("is not", bg);
any_rb->setChecked(TRUE);
stereotype_le = new QLineEdit(htab);
//
//
gbox = new QVGroupBox("Targets" , this);
vbox->addWidget(gbox);
htab = new QHBox(gbox);
//htab->setMargin(5);
artifact_cb = new QCheckBox("artifact", htab);
class_cb = new QCheckBox("class", htab);
operation_cb = new QCheckBox("operation", htab);
attribute_cb = new QCheckBox("attribute", htab);
relation_cb = new QCheckBox("relation", htab);
//
//
gbox = new QVGroupBox("Languages" , this);
vbox->addWidget(gbox);
htab = new QHBox(gbox);
//htab->setMargin(5);
cpp_cb = new QCheckBox("C++", htab);
java_cb = new QCheckBox("Java", htab);
php_cb = new QCheckBox("Php", htab);
python_cb = new QCheckBox("Python", htab);
idl_cb = new QCheckBox("Idl", htab);
//
//
QGrid * grid = new QGrid(2, this);
vbox->addWidget(grid);
grid->setMargin(5);
grid->setSpacing(5);
new QLabel("current : ", grid);
current_le = new LineEdit(grid);
new QLabel("new : ", grid);
new_le = new LineEdit(grid);
//
//
htab = new QHBox(this);
htab->setMargin(5);
vbox->addWidget(htab);
new QLabel(htab);
QPushButton * replace = new QPushButton("Replace", htab);
new QLabel(htab);
QPushButton * quit = new QPushButton("Quit", htab);
new QLabel(htab);
QSize bs(replace->sizeHint());
quit->setFixedSize(bs);
connect(replace, SIGNAL(clicked()), this, SLOT(do_replace()));
connect(quit, SIGNAL(clicked()), this, SLOT(reject()));
!!!188802.cpp!!! do_replace() : void
Context ctx(digest(current_le->text()), digest(new_le->text()));
const char * err =
ctx.set_filters(digest(filter1_le->text()), digest(filter2_le->text()), digest(filter3_le->text()),
with1_rb->isChecked(), with2_rb->isChecked(), with3_rb->isChecked(),
and12_rb->isChecked(), and23_rb->isChecked());
if (err != 0)
QMessageBox::critical(this, "Global change", err);
else {
ctx.set_stereotype(QCString(stereotype_le->text()), is_rb->isChecked(), isnot_rb->isChecked());
ctx.set_targets(artifact_cb->isChecked(), class_cb->isChecked(),
operation_cb->isChecked(), attribute_cb->isChecked(), relation_cb->isChecked());
ctx.set_language(cpp_cb->isChecked(), java_cb->isChecked(), php_cb->isChecked(),
python_cb->isChecked(), idl_cb->isChecked());
UmlCom::targetItem()->change(ctx);
QString msg;
int n_match = ctx.n_match();
int n_err = ctx.n_err();
if (n_match == 0)
msg = "Not found !";
else if (n_err == 0)
msg.sprintf("%d replacements done", n_match);
else
msg.sprintf("%d replacements done,\n%d not done on read-only elements",
n_match - n_err, n_err);
QMessageBox::information(this, "Global change", msg);
}
!!!189186.cpp!!! digest(in s : QString) : QCString
QCString c = (const char *) s;
int index;
index = 0;
while ((index = c.find("\\n", index)) != -1) {
c.replace(index, 2, "\n");
index += 1;
}
index = 0;
while ((index = c.find("\\t", index)) != -1) {
c.replace(index, 2, "\t");
index += 1;
}
index = 0;
while ((index = c.find("\r", index)) != -1) {
c.remove(index, 1);
}
return c;
!!!193410.cpp!!! polish() : void
QSize sz = size();
// width = height
resize(sz.height(), sz.height());
|