19#include <QApplication>
26#include <QStackedLayout>
78 central =
new QWidget;
114 QLabel *version_label;
127 mode =
R__(
"built in Qt5 mode.");
128#elif defined(FC_QT6X_MODE)
129 mode =
R__(
"built in Qt6x mode.");
131 mode =
R__(
"built in Qt6 mode.");
149 version_label =
new QLabel(
verbuf);
150 version_label->setAlignment(Qt::AlignHCenter);
151 version_label->setParent(
central);
153 rs_label =
new QLabel(QString::fromUtf8(
R__(
"Give ruleset to use as starting point.")));
154 rs_label->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed);
176 stack->addTab(
bldg, QString::fromUtf8(
R__(
"Buildings")));
180 stack->addTab(
ach, QString::fromUtf8(
R__(
"Achievements")));
184 stack->addTab(
gov, QString::fromUtf8(
R__(
"Governments")));
205 msg_dspl =
new QLabel(QString::fromUtf8(
R__(
"Welcome to freeciv-ruledit")));
208 msg_dspl->setAlignment(Qt::AlignHCenter);
297 msg_dspl->setText(QString::fromUtf8(msg));
414 if (uni !=
nullptr) {
457 const QString title = QString::fromUtf8(
R__(
"Freeciv Ruleset Editor"));
490 ask.setText(
R__(
"Are you sure you want to quit?"));
491 ask.setStandardButtons(QMessageBox::Cancel | QMessageBox::Ok);
492 ask.setDefaultButton(QMessageBox::Cancel);
493 ask.setIcon(QMessageBox::Warning);
494 ask.setWindowTitle(
R__(
"Quit?"));
498 case QMessageBox::Cancel:
501 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)
struct civ_game::@32::@36::@42 ruledit
char rulesetdir[MAX_LEN_NAME]
struct civ_game::@32::@36 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)