9 #include <ff7tkwidgets_export.h>
34 void locationChanged(QString);
39 void mapIdChanged(
int mapId);
40 void locIdChanged(
int locId);
41 void locationStringChanged(QString);
42 void fieldItemConnectRequest(quint8 index, QList<quint16> offset, QList<quint8>bit);
43 void fieldItemCheck(
int index);
44 void fieldItemChanged(
int index,
bool checked);
47 void setSelected(
const QString &);
48 void setRegion(
const QString ®ion);
53 void setMapId(
int mapId);
54 void setLocationId(
int locId);
55 void setLocationString(
const QString &);
56 void setHorizontalHeaderStyle(QString styleSheet);
57 void setFieldItemChecked(
int row,
bool checked);
58 void init_fieldItems(
void);
59 void setAdvancedMode(
bool advancedMode);
60 bool advancedMode(
void);
63 void itemChanged(
int currentRow,
int currentColumn,
int prevRow,
int prevColumn);
64 void sbMapIdChanged(
int mapId);
65 void sbLocIdChanged(
int locId);
66 void sbXChanged(
int x);
67 void sbYChanged(
int y);
68 void sbTChanged(
int t);
69 void sbDChanged(
int d);
70 void lineLocationNameChanged(
const QString &);
71 void setLocation(
int mapId,
int locId);
72 void filterLocations(QString filter);
73 void actionNameSearchToggled(
bool checked);
74 void actionItemSearchToggled(
bool checked);
75 void actionRegExpSearchToggled(
bool checked);
76 void actionCaseSensitiveToggled(
bool checked);
77 void fieldItemListItemChanged(QModelIndex index);
78 void btnUpdateSaveLocationClicked();
80 void resizeEvent(QResizeEvent *ev);
81 void changeEvent(QEvent *e);
84 const int COL_FNAME = 1;
85 const int COL_NAME = 2;
86 void init_display(
void);
87 void init_connections(
void);
88 void init_disconnect(
void);
90 void updateItemText(
int locID = -1,
bool currentLoc =
false);
91 QString translate(QString text);
92 void searchItem(QRegularExpression exp);
93 void searchName(QRegularExpression exp);
95 int currentStartingLocation = -1;
100 QTableWidget *locationTable;
101 QToolButton *btnSearchOptions;
102 QAction *actionNameSearch;
103 QAction *actionItemSearch;
104 QAction *actionRegExpSearch;
105 QAction *actionCaseSensitive;
106 QWidget *CoordsWidget;
107 QLabel *lblLocationPreview;
108 QLineEdit *lineTableFilter;
109 QLineEdit *lineLocationName;
116 QListWidget *fieldItemList;
117 QGroupBox *groupFieldItems;
118 QPushButton *btnUpdateSaveLocation;
120 inline static const QString _tooltip = QStringLiteral(
"<html><head/><body><p><img src=\":/locations/%1_%2\" width=\"%3\" height\"%4\" /></p></body></html>");