15#include <QButtonGroup>
18#include <QListWidgetItem>
21#include <QRadioButton>
22#include <QStackedLayout>
39 QWidget *
in =
item->listWidget();
46 item->setIcon(
in->style()->standardIcon(QStyle::SP_MessageBoxWarning));
49 item->setIcon(
in->style()->standardIcon(QStyle::SP_MessageBoxCritical));
72 description =
new QLabel();
80 description->setText(
R__(
"No problem found"));
85 if (
problem->num_suggested_solutions == 0) {
93 R__(
"Don't know how to fix %s: %s"),
96 description->setText(
buf);
105 description->setText(QString::fromUtf8(
problem->description_translated));
109 for (
i = 0;
i <
problem->num_suggested_solutions;
i++) {
121 accept =
new QPushButton(
R__(
"Accept selected solution"));
169 abort =
new QPushButton(
R__(
"Undo all"));
172 abort->setToolTip(
R__(
"Undo all accepted solutions since you started or"
173 " since last time you ordered all accepted changes"
184 " to the ruleset item. You can then fix the"
185 " current issue by hand and come back here"
186 " to find the next issue."));
191 close =
new QPushButton(
R__(
"Close"));
277 QMessageBox *box =
new QMessageBox();
279 box->setWindowTitle(
R__(
"Unable to apply solution"));
283 QString(
R__(
"Failed to apply solution %1 for %2 to %3."))
287 box->setStandardButtons(QMessageBox::Ok);
virtual requirement_vector_by_number vector_getter()=0
virtual requirement_vector_namer vector_namer()=0
virtual void undo_accepted_changes()=0
virtual void apply_accepted_changes()=0
virtual bool vector_in_item(const struct requirement_vector *vec)=0
virtual int num_vectors()=0
virtual const char * name()=0
virtual struct req_vec_problem * find_next_problem()=0
virtual void * item_working_copy()=0
virtual const void * item()=0
req_vec_fix_problem(const struct req_vec_problem *problem, req_vec_fix_item *item_info)
void solution_accepted(int selected_solution)
struct req_vec_problem * current_problem
void accept_applied_solutions()
void incoming_req_vec_change(const requirement_vector *vec)
req_vec_fix_problem * current_problem_viewer
QStackedLayout * current_problem_area
void reject_applied_solutions()
void req_vec_may_have_changed(const requirement_vector *vec)
void apply_solution(int selected_solution)
req_vec_fix(ruledit_gui *ui_in, req_vec_fix_item *item_info)
req_vec_fix_item * item_info
bool did_apply_a_solution
QPushButton * apply_changes
void unregister_req_vec_fix(req_vec_fix *fixer)
#define fc_assert_ret(condition)
void mark_item(QListWidgetItem *item, enum req_vec_problem_seriousness problem_level)
req_vec_problem_seriousness
bool req_vec_change_apply(const struct req_vec_change *modification, requirement_vector_by_number getter, const void *parent_item)
const char * req_vec_change_translation(const struct req_vec_change *change, const requirement_vector_namer namer)
void req_vec_problem_free(struct req_vec_problem *issue)
int num_suggested_solutions
struct req_vec_change * suggested_solutions
int fc_snprintf(char *str, size_t n, const char *format,...)