19#include <QApplication>
26#include <QStackedLayout>
78 central =
new QWidget;
114 QLabel *version_label;
127 mode =
R__(
"built in Qt6 mode.");
129 mode =
R__(
"built in Qt5 mode.");
147 version_label =
new QLabel(
verbuf);
148 version_label->setAlignment(Qt::AlignHCenter);
149 version_label->setParent(
central);
151 rs_label =
new QLabel(QString::fromUtf8(
R__(
"Give ruleset to use as starting point.")));
152 rs_label->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed);
174 stack->addTab(
bldg, QString::fromUtf8(
R__(
"Buildings")));
178 stack->addTab(
ach, QString::fromUtf8(
R__(
"Achievements")));
182 stack->addTab(
gov, QString::fromUtf8(
R__(
"Governments")));
203 msg_dspl =
new QLabel(QString::fromUtf8(
R__(
"Welcome to freeciv-ruledit")));
206 msg_dspl->setAlignment(Qt::AlignHCenter);
295 msg_dspl->setText(QString::fromUtf8(msg));
412 if (uni !=
nullptr) {
455 const QString title = QString::fromUtf8(
R__(
"Freeciv Ruleset Editor"));
488 ask.setText(
R__(
"Are you sure you want to quit?"));
489 ask.setStandardButtons(QMessageBox::Cancel | QMessageBox::Ok);
490 ask.setDefaultButton(QMessageBox::Cancel);
491 ask.setIcon(QMessageBox::Warning);
492 ask.setWindowTitle(
R__(
"Quit?"));
496 case QMessageBox::Cancel:
499 case QMessageBox::Ok:
struct canvas int int struct sprite int int int int height
struct canvas int int struct sprite int int int width
void add(const char *msg)
virtual const void * item()=0
void req_vec_may_have_changed(const requirement_vector *vec)
void open_req_vec_fix(req_vec_fix_item *item_info)
void unregister_effect_edit(class effect_edit *e_edit)
tab_multiplier * multipliers
QStackedLayout * main_layout
struct effect_edit_list * effect_edits
void incoming_req_vec_change(const requirement_vector *vec)
void display_msg(const char *msg)
void refresh_effect_edits()
void setup(QWidget *central_in)
void open_req_edit(QString target, struct requirement_vector *preqs)
void unregister_req_vec_fix(req_vec_fix *fixer)
requirers_dlg * create_requirers(const char *title)
struct req_edit_list * req_edits
struct req_vec_fix_list * req_vec_fixers
void show_required(requirers_dlg *requirers, const char *msg)
void open_effect_edit(QString target, struct universal *uni, enum effect_filter_main_class efmc)
QLineEdit * ruleset_select
void unregister_req_edit(class req_edit *redit)
ruledit_main(QApplication *qapp_in, QWidget *central_in)
void closeEvent(QCloseEvent *cevent)
#define GAME_DEFAULT_RULESETDIR
bool are_universals_equal(const struct universal *psource1, const struct universal *psource2)
struct ruledit_arguments reargs
void ruledit_qt_display_requirers(const char *msg, void *data)
static QApplication * qapp
int ruledit_qt_run(int argc, char **argv)
static void conversion_log_cb(const char *msg)
static conversion_log * convlog
#define RULEDIT_WINHEIGHT
#define effect_edit_list_iterate_end
#define req_edit_list_iterate(reqeditlist, preqedit)
#define req_vec_fix_list_iterate(reqvecfixlist, preqvecfix)
#define effect_edit_list_iterate(effecteditlist, peffectedit)
#define req_edit_list_iterate_end
#define req_vec_fix_list_iterate_end
bool load_rulesets(const char *restore, const char *alt, bool compat_mode, rs_conversion_logger logger, bool act, bool buffer_script, bool load_luadata)
const char * fileinfoname(const struct strvec *dirs, const char *filename)
const struct strvec * get_data_dirs(void)
char rulesetdir[MAX_LEN_NAME]
struct civ_game::@31::@35::@40 ruledit
struct civ_game::@31::@35 server
int fc_snprintf(char *str, size_t n, const char *format,...)
#define sz_strlcpy(dest, src)
const char * fc_git_revision(void)
const char * word_version(void)