ff7tk
0.02
Toolkit for making FF7 Tools
|
Set Saves Location or View Field Locations and Toggle the items picked up from them. More...
#include <LocationViewer.h>
Public Types | |
enum | filterMode { NAME, ITEM } |
Public Slots | |
void | setSelected (QString) |
void | setLocationChangesSaved (bool saveChanges) |
bool | locationChangesSaved (void) |
void | setRegion (QString region) |
void | setTranslationBaseFile (QString) |
void | setX (int x) |
void | setY (int y) |
void | setT (int t) |
void | setD (int d) |
void | setMapId (int mapId) |
void | setLocationId (int locId) |
void | setLocationString (QString) |
void | setHorizontalHeaderStyle (QString styleSheet) |
void | setFieldItemChecked (int row, bool checked) |
void | init_fieldItems (void) |
void | setAdvancedMode (bool advancedMode) |
bool | advancedMode (void) |
Signals | |
void | locationChanged (QString) |
void | xChanged (int x) |
void | yChanged (int y) |
void | tChanged (int t) |
void | dChanged (int d) |
void | mapIdChanged (int mapId) |
void | locIdChanged (int locId) |
void | locationStringChanged (QString) |
void | fieldItemConnectRequest (quint8 index, QList< quint16 > offset, QList< quint8 >bit) |
void | fieldItemCheck (int index) |
void | fieldItemChanged (int index, bool checked) |
Public Member Functions | |
LocationViewer (qreal Scale=1, QWidget *parent=0) | |
void | setFilterString (QString filter="", LocationViewer::filterMode mode=LocationViewer::NAME) |
Protected Member Functions | |
void | resizeEvent (QResizeEvent *ev) |
Private Slots | |
void | itemChanged (int currentRow, int currentColumn, int prevRow, int prevColumn) |
void | sbMapIdChanged (int mapId) |
void | sbLocIdChanged (int locId) |
void | sbXChanged (int x) |
void | sbYChanged (int y) |
void | sbTChanged (int t) |
void | sbDChanged (int d) |
void | lineLocationNameChanged (QString) |
void | setLocation (int mapId, int locId) |
void | filterLocations (QString filter) |
void | actionNameSearchToggled (bool checked) |
void | actionItemSearchToggled (bool checked) |
void | actionRegExpSearchToggled (bool checked) |
void | actionCaseSensitiveToggled (bool checked) |
void | btnSearchOptionsClicked (void) |
void | fieldItemListItemChanged (QModelIndex index) |
void | chkAutoUpdateChanged (bool checked) |
Private Member Functions | |
void | init_display (void) |
void | init_connections (void) |
void | init_disconnect (void) |
QString | translate (QString text) |
void | searchItem (QRegExp exp) |
void | searchName (QRegExp exp) |
Private Attributes | |
QTableWidget * | locationTable |
QLineEdit * | lineTableFilter |
QAction * | actionNameSearch |
QAction * | actionItemSearch |
QAction * | actionRegExpSearch |
QAction * | actionCaseSensitive |
QToolButton * | btnSearchOptions |
FF7Location * | Locations |
FF7FieldItemList * | fieldItems |
QLabel * | lblLocationPreview |
QWidget * | CoordsWidget |
QLineEdit * | lineLocationName |
QSpinBox * | sbMapID |
QSpinBox * | sbLocID |
QSpinBox * | sbX |
QSpinBox * | sbY |
QSpinBox * | sbT |
QSpinBox * | sbD |
QString | region |
QString | transBasePath |
QListWidget * | fieldItemList |
QGroupBox * | groupFieldItems |
QCheckBox * | chkAutoUpdate |
quint8 | searchMode |
bool | regExpSearch |
bool | caseSensitive |
bool | autoUpdate |
bool | _advancedMode |
qreal | scale |
Set Saves Location or View Field Locations and Toggle the items picked up from them.
Definition at line 33 of file LocationViewer.h.
Enumerator | |
---|---|
NAME | |
ITEM |
Definition at line 37 of file LocationViewer.h.
|
explicit |
Definition at line 18 of file LocationViewer.cpp.
References _advancedMode, actionNameSearch, autoUpdate, caseSensitive, fieldItems, init_connections(), init_display(), Locations, regExpSearch, region, scale, and transBasePath.
|
privateslot |
Definition at line 458 of file LocationViewer.cpp.
References caseSensitive, filterLocations(), and lineTableFilter.
Referenced by init_connections(), and init_disconnect().
|
privateslot |
Definition at line 441 of file LocationViewer.cpp.
References actionItemSearch, actionNameSearchToggled(), filterLocations(), ITEM, lineTableFilter, and searchMode.
Referenced by actionNameSearchToggled(), init_connections(), and init_disconnect().
|
privateslot |
Definition at line 428 of file LocationViewer.cpp.
References actionItemSearchToggled(), actionNameSearch, filterLocations(), lineTableFilter, NAME, and searchMode.
Referenced by actionItemSearchToggled(), init_connections(), and init_disconnect().
|
privateslot |
Definition at line 453 of file LocationViewer.cpp.
References filterLocations(), lineTableFilter, and regExpSearch.
Referenced by init_connections(), and init_disconnect().
|
slot |
Definition at line 566 of file LocationViewer.cpp.
References _advancedMode.
Referenced by init_display(), and setAdvancedMode().
|
privateslot |
Definition at line 426 of file LocationViewer.cpp.
References lineTableFilter.
Referenced by init_connections().
|
privateslot |
Definition at line 380 of file LocationViewer.cpp.
References autoUpdate, FF7Location::fileName(), locationChanged(), Locations, sbLocID, and sbMapID.
Referenced by init_display().
|
signal |
Referenced by sbDChanged().
|
signal |
Referenced by fieldItemListItemChanged().
|
signal |
Referenced by init_fieldItems().
|
signal |
Referenced by init_fieldItems().
|
privateslot |
Definition at line 503 of file LocationViewer.cpp.
References fieldItemChanged(), and fieldItemList.
Referenced by init_connections(), and init_disconnect().
|
privateslot |
Definition at line 410 of file LocationViewer.cpp.
References caseSensitive, NAME, regExpSearch, searchItem(), searchMode, and searchName().
Referenced by actionCaseSensitiveToggled(), actionItemSearchToggled(), actionNameSearchToggled(), actionRegExpSearchToggled(), init_connections(), and init_disconnect().
|
private |
Definition at line 249 of file LocationViewer.cpp.
References actionCaseSensitive, actionCaseSensitiveToggled(), actionItemSearch, actionItemSearchToggled(), actionNameSearch, actionNameSearchToggled(), actionRegExpSearch, actionRegExpSearchToggled(), btnSearchOptions, btnSearchOptionsClicked(), fieldItemList, fieldItemListItemChanged(), filterLocations(), itemChanged(), lineLocationName, lineLocationNameChanged(), lineTableFilter, locationTable, sbD, sbDChanged(), sbLocID, sbLocIdChanged(), sbMapID, sbMapIdChanged(), sbT, sbTChanged(), sbX, sbXChanged(), sbY, and sbYChanged().
Referenced by LocationViewer(), setD(), setFieldItemChecked(), setLocation(), setLocationString(), setT(), setX(), and setY().
|
private |
Definition at line 267 of file LocationViewer.cpp.
References actionCaseSensitive, actionCaseSensitiveToggled(), actionItemSearch, actionItemSearchToggled(), actionNameSearch, actionNameSearchToggled(), actionRegExpSearch, actionRegExpSearchToggled(), fieldItemList, fieldItemListItemChanged(), filterLocations(), itemChanged(), lineLocationName, lineLocationNameChanged(), lineTableFilter, locationTable, sbD, sbDChanged(), sbLocID, sbLocIdChanged(), sbMapID, sbMapIdChanged(), sbT, sbTChanged(), sbX, sbXChanged(), sbY, and sbYChanged().
Referenced by setD(), setFieldItemChecked(), setLocation(), setLocationString(), setT(), setX(), and setY().
|
private |
Definition at line 48 of file LocationViewer.cpp.
References actionCaseSensitive, actionItemSearch, actionNameSearch, actionRegExpSearch, advancedMode(), btnSearchOptions, chkAutoUpdate, chkAutoUpdateChanged(), fieldItemList, FF7Location::fileName(), groupFieldItems, lblLocationPreview, FF7Location::len(), lineLocationName, lineTableFilter, FF7Location::locationID(), Locations, FF7Location::locationString(), locationTable, FF7Location::mapID(), sbD, sbLocID, sbMapID, sbT, sbX, sbY, scale, and setAdvancedMode().
Referenced by LocationViewer().
|
slot |
Definition at line 465 of file LocationViewer.cpp.
References FF7FieldItemList::bit(), FF7FieldItemList::count(), fieldItemCheck(), fieldItemConnectRequest(), fieldItemList, fieldItems, FF7Location::fileName(), groupFieldItems, Locations, FF7FieldItemList::maps(), FF7FieldItemList::offset(), sbLocID, sbMapID, and FF7FieldItemList::text().
Referenced by setLocation().
|
privateslot |
Definition at line 285 of file LocationViewer.cpp.
References autoUpdate, FF7Location::fileName(), locationChanged(), FF7Location::locationID(), Locations, locationTable, FF7Location::mapID(), and setLocation().
Referenced by init_connections(), and init_disconnect().
|
privateslot |
Definition at line 361 of file LocationViewer.cpp.
References locationStringChanged().
Referenced by init_connections(), and init_disconnect().
|
signal |
Referenced by chkAutoUpdateChanged(), itemChanged(), sbLocIdChanged(), and sbMapIdChanged().
|
slot |
Definition at line 34 of file LocationViewer.cpp.
References autoUpdate.
|
signal |
Referenced by lineLocationNameChanged(), setLocation(), and setLocationString().
|
signal |
Referenced by sbLocIdChanged().
|
signal |
Referenced by sbMapIdChanged().
|
protected |
Definition at line 35 of file LocationViewer.cpp.
References lblLocationPreview, sbLocID, and sbMapID.
|
privateslot |
Definition at line 332 of file LocationViewer.cpp.
References dChanged().
Referenced by init_connections(), and init_disconnect().
|
privateslot |
Definition at line 322 of file LocationViewer.cpp.
References FF7Location::fileName(), locationChanged(), Locations, locIdChanged(), sbMapID, and setLocation().
Referenced by init_connections(), and init_disconnect().
|
privateslot |
Definition at line 315 of file LocationViewer.cpp.
References FF7Location::fileName(), locationChanged(), Locations, mapIdChanged(), sbLocID, and setLocation().
Referenced by init_connections(), and init_disconnect().
|
privateslot |
Definition at line 331 of file LocationViewer.cpp.
References tChanged().
Referenced by init_connections(), and init_disconnect().
|
privateslot |
Definition at line 329 of file LocationViewer.cpp.
References xChanged().
Referenced by init_connections(), and init_disconnect().
|
privateslot |
Definition at line 330 of file LocationViewer.cpp.
References yChanged().
Referenced by init_connections(), and init_disconnect().
|
private |
Definition at line 533 of file LocationViewer.cpp.
References FF7FieldItemList::count(), fieldItems, locationTable, FF7FieldItemList::maps(), and FF7FieldItemList::text().
Referenced by filterLocations().
|
private |
Definition at line 521 of file LocationViewer.cpp.
References locationTable.
Referenced by filterLocations().
|
slot |
Definition at line 556 of file LocationViewer.cpp.
References _advancedMode, advancedMode(), sbD, sbLocID, sbMapID, sbT, sbX, and sbY.
Referenced by init_display(), and MainWindow::on_checkBox_2_toggled().
|
slot |
Definition at line 365 of file LocationViewer.cpp.
References init_connections(), init_disconnect(), and sbD.
|
slot |
Definition at line 511 of file LocationViewer.cpp.
References fieldItemList, init_connections(), and init_disconnect().
void LocationViewer::setFilterString | ( | QString | filter = "" , |
LocationViewer::filterMode | mode = LocationViewer::NAME |
||
) |
Definition at line 567 of file LocationViewer.cpp.
References actionItemSearch, actionNameSearch, lineTableFilter, locationTable, NAME, and setLocationChangesSaved().
|
slot |
Definition at line 385 of file LocationViewer.cpp.
References locationTable.
|
privateslot |
Definition at line 333 of file LocationViewer.cpp.
References autoUpdate, FF7Location::d(), FF7Location::fileName(), init_connections(), init_disconnect(), init_fieldItems(), lblLocationPreview, lineLocationName, FF7Location::locationID(), Locations, FF7Location::locationString(), locationStringChanged(), FF7Location::mapID(), sbD, sbLocID, sbMapID, sbT, sbX, sbY, setSelected(), FF7Location::t(), translate(), FF7Location::x(), and FF7Location::y().
Referenced by itemChanged(), sbLocIdChanged(), sbMapIdChanged(), and setRegion().
|
slot |
Definition at line 33 of file LocationViewer.cpp.
References chkAutoUpdate.
Referenced by setFilterString().
|
slot |
Definition at line 367 of file LocationViewer.cpp.
References sbLocID.
|
slot |
Definition at line 368 of file LocationViewer.cpp.
References autoUpdate, init_connections(), init_disconnect(), lineLocationName, locationStringChanged(), and translate().
|
slot |
Definition at line 366 of file LocationViewer.cpp.
References sbMapID.
|
slot |
Definition at line 386 of file LocationViewer.cpp.
References region, sbLocID, sbMapID, and setLocation().
|
slot |
Definition at line 300 of file LocationViewer.cpp.
References autoUpdate, FF7Location::len(), Locations, and locationTable.
Referenced by MainWindow::on_lineEdit_editingFinished(), and setLocation().
|
slot |
Definition at line 364 of file LocationViewer.cpp.
References init_connections(), init_disconnect(), and sbT.
|
slot |
Definition at line 387 of file LocationViewer.cpp.
References transBasePath.
|
slot |
Definition at line 362 of file LocationViewer.cpp.
References init_connections(), init_disconnect(), and sbX.
|
slot |
Definition at line 363 of file LocationViewer.cpp.
References init_connections(), init_disconnect(), and sbY.
|
signal |
Referenced by sbTChanged().
|
private |
Definition at line 388 of file LocationViewer.cpp.
References region, and transBasePath.
Referenced by setLocation(), and setLocationString().
|
signal |
Referenced by sbXChanged().
|
signal |
Referenced by sbYChanged().
|
private |
Definition at line 126 of file LocationViewer.h.
Referenced by advancedMode(), LocationViewer(), and setAdvancedMode().
|
private |
Definition at line 104 of file LocationViewer.h.
Referenced by init_connections(), init_disconnect(), and init_display().
|
private |
Definition at line 102 of file LocationViewer.h.
Referenced by actionItemSearchToggled(), init_connections(), init_disconnect(), init_display(), and setFilterString().
|
private |
Definition at line 101 of file LocationViewer.h.
Referenced by actionNameSearchToggled(), init_connections(), init_disconnect(), init_display(), LocationViewer(), and setFilterString().
|
private |
Definition at line 103 of file LocationViewer.h.
Referenced by init_connections(), init_disconnect(), and init_display().
|
private |
Definition at line 125 of file LocationViewer.h.
Referenced by chkAutoUpdateChanged(), itemChanged(), locationChangesSaved(), LocationViewer(), setLocation(), setLocationString(), and setSelected().
|
private |
Definition at line 105 of file LocationViewer.h.
Referenced by init_connections(), and init_display().
|
private |
Definition at line 124 of file LocationViewer.h.
Referenced by actionCaseSensitiveToggled(), filterLocations(), and LocationViewer().
|
private |
Definition at line 121 of file LocationViewer.h.
Referenced by init_display(), and setLocationChangesSaved().
|
private |
Definition at line 109 of file LocationViewer.h.
|
private |
Definition at line 119 of file LocationViewer.h.
Referenced by fieldItemListItemChanged(), init_connections(), init_disconnect(), init_display(), init_fieldItems(), and setFieldItemChecked().
|
private |
Definition at line 107 of file LocationViewer.h.
Referenced by init_fieldItems(), LocationViewer(), and searchItem().
|
private |
Definition at line 120 of file LocationViewer.h.
Referenced by init_display(), and init_fieldItems().
|
private |
Definition at line 108 of file LocationViewer.h.
Referenced by init_display(), resizeEvent(), and setLocation().
|
private |
Definition at line 110 of file LocationViewer.h.
Referenced by init_connections(), init_disconnect(), init_display(), setLocation(), and setLocationString().
|
private |
Definition at line 100 of file LocationViewer.h.
Referenced by actionCaseSensitiveToggled(), actionItemSearchToggled(), actionNameSearchToggled(), actionRegExpSearchToggled(), btnSearchOptionsClicked(), init_connections(), init_disconnect(), init_display(), and setFilterString().
|
private |
Definition at line 106 of file LocationViewer.h.
Referenced by chkAutoUpdateChanged(), init_display(), init_fieldItems(), itemChanged(), LocationViewer(), sbLocIdChanged(), sbMapIdChanged(), setLocation(), and setSelected().
|
private |
Definition at line 99 of file LocationViewer.h.
Referenced by init_connections(), init_disconnect(), init_display(), itemChanged(), searchItem(), searchName(), setFilterString(), setHorizontalHeaderStyle(), and setSelected().
|
private |
Definition at line 123 of file LocationViewer.h.
Referenced by actionRegExpSearchToggled(), filterLocations(), and LocationViewer().
|
private |
Definition at line 117 of file LocationViewer.h.
Referenced by LocationViewer(), setRegion(), and translate().
|
private |
Definition at line 116 of file LocationViewer.h.
Referenced by init_connections(), init_disconnect(), init_display(), setAdvancedMode(), setD(), and setLocation().
|
private |
Definition at line 112 of file LocationViewer.h.
Referenced by chkAutoUpdateChanged(), init_connections(), init_disconnect(), init_display(), init_fieldItems(), resizeEvent(), sbMapIdChanged(), setAdvancedMode(), setLocation(), setLocationId(), and setRegion().
|
private |
Definition at line 111 of file LocationViewer.h.
Referenced by chkAutoUpdateChanged(), init_connections(), init_disconnect(), init_display(), init_fieldItems(), resizeEvent(), sbLocIdChanged(), setAdvancedMode(), setLocation(), setMapId(), and setRegion().
|
private |
Definition at line 115 of file LocationViewer.h.
Referenced by init_connections(), init_disconnect(), init_display(), setAdvancedMode(), setLocation(), and setT().
|
private |
Definition at line 113 of file LocationViewer.h.
Referenced by init_connections(), init_disconnect(), init_display(), setAdvancedMode(), setLocation(), and setX().
|
private |
Definition at line 114 of file LocationViewer.h.
Referenced by init_connections(), init_disconnect(), init_display(), setAdvancedMode(), setLocation(), and setY().
|
private |
Definition at line 127 of file LocationViewer.h.
Referenced by init_display(), and LocationViewer().
|
private |
Definition at line 122 of file LocationViewer.h.
Referenced by actionItemSearchToggled(), actionNameSearchToggled(), and filterLocations().
|
private |
Definition at line 118 of file LocationViewer.h.
Referenced by LocationViewer(), setTranslationBaseFile(), and translate().