ff7tk  0.02
Toolkit for making FF7 Tools
LocationViewer Class Reference

Set Saves Location or View Field Locations and Toggle the items picked up from them. More...

#include <LocationViewer.h>

Inheritance diagram for LocationViewer:

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
 
FF7LocationLocations
 
FF7FieldItemListfieldItems
 
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
 

Detailed Description

Set Saves Location or View Field Locations and Toggle the items picked up from them.

Todo:
Support Progression within this widget

Definition at line 33 of file LocationViewer.h.

Member Enumeration Documentation

Enumerator
NAME 
ITEM 

Definition at line 37 of file LocationViewer.h.

Constructor & Destructor Documentation

LocationViewer::LocationViewer ( qreal  Scale = 1,
QWidget *  parent = 0 
)
explicit

Member Function Documentation

void LocationViewer::actionCaseSensitiveToggled ( bool  checked)
privateslot

Definition at line 458 of file LocationViewer.cpp.

References caseSensitive, filterLocations(), and lineTableFilter.

Referenced by init_connections(), and init_disconnect().

void LocationViewer::actionItemSearchToggled ( bool  checked)
privateslot
void LocationViewer::actionNameSearchToggled ( bool  checked)
privateslot
void LocationViewer::actionRegExpSearchToggled ( bool  checked)
privateslot

Definition at line 453 of file LocationViewer.cpp.

References filterLocations(), lineTableFilter, and regExpSearch.

Referenced by init_connections(), and init_disconnect().

bool LocationViewer::advancedMode ( void  )
slot

Definition at line 566 of file LocationViewer.cpp.

References _advancedMode.

Referenced by init_display(), and setAdvancedMode().

void LocationViewer::btnSearchOptionsClicked ( void  )
privateslot

Definition at line 426 of file LocationViewer.cpp.

References lineTableFilter.

Referenced by init_connections().

void LocationViewer::chkAutoUpdateChanged ( bool  checked)
privateslot

Definition at line 380 of file LocationViewer.cpp.

References autoUpdate, FF7Location::fileName(), locationChanged(), Locations, sbLocID, and sbMapID.

Referenced by init_display().

void LocationViewer::dChanged ( int  d)
signal

Referenced by sbDChanged().

void LocationViewer::fieldItemChanged ( int  index,
bool  checked 
)
signal
void LocationViewer::fieldItemCheck ( int  index)
signal

Referenced by init_fieldItems().

void LocationViewer::fieldItemConnectRequest ( quint8  index,
QList< quint16 >  offset,
QList< quint8 >  bit 
)
signal

Referenced by init_fieldItems().

void LocationViewer::fieldItemListItemChanged ( QModelIndex  index)
privateslot

Definition at line 503 of file LocationViewer.cpp.

References fieldItemChanged(), and fieldItemList.

Referenced by init_connections(), and init_disconnect().

void LocationViewer::filterLocations ( QString  filter)
privateslot
void LocationViewer::itemChanged ( int  currentRow,
int  currentColumn,
int  prevRow,
int  prevColumn 
)
privateslot
void LocationViewer::lineLocationNameChanged ( QString  locName)
privateslot

Definition at line 361 of file LocationViewer.cpp.

References locationStringChanged().

Referenced by init_connections(), and init_disconnect().

void LocationViewer::locationChanged ( QString  )
signal
bool LocationViewer::locationChangesSaved ( void  )
slot

Definition at line 34 of file LocationViewer.cpp.

References autoUpdate.

void LocationViewer::locationStringChanged ( QString  )
signal
void LocationViewer::locIdChanged ( int  locId)
signal

Referenced by sbLocIdChanged().

void LocationViewer::mapIdChanged ( int  mapId)
signal

Referenced by sbMapIdChanged().

void LocationViewer::resizeEvent ( QResizeEvent *  ev)
protected

Definition at line 35 of file LocationViewer.cpp.

References lblLocationPreview, sbLocID, and sbMapID.

void LocationViewer::sbDChanged ( int  d)
privateslot

Definition at line 332 of file LocationViewer.cpp.

References dChanged().

Referenced by init_connections(), and init_disconnect().

void LocationViewer::sbLocIdChanged ( int  locId)
privateslot
void LocationViewer::sbMapIdChanged ( int  mapId)
privateslot
void LocationViewer::sbTChanged ( int  t)
privateslot

Definition at line 331 of file LocationViewer.cpp.

References tChanged().

Referenced by init_connections(), and init_disconnect().

void LocationViewer::sbXChanged ( int  x)
privateslot

Definition at line 329 of file LocationViewer.cpp.

References xChanged().

Referenced by init_connections(), and init_disconnect().

void LocationViewer::sbYChanged ( int  y)
privateslot

Definition at line 330 of file LocationViewer.cpp.

References yChanged().

Referenced by init_connections(), and init_disconnect().

void LocationViewer::searchItem ( QRegExp  exp)
private
void LocationViewer::searchName ( QRegExp  exp)
private

Definition at line 521 of file LocationViewer.cpp.

References locationTable.

Referenced by filterLocations().

void LocationViewer::setAdvancedMode ( bool  advancedMode)
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().

void LocationViewer::setD ( int  d)
slot

Definition at line 365 of file LocationViewer.cpp.

References init_connections(), init_disconnect(), and sbD.

void LocationViewer::setFieldItemChecked ( int  row,
bool  checked 
)
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 
)
void LocationViewer::setHorizontalHeaderStyle ( QString  styleSheet)
slot

Definition at line 385 of file LocationViewer.cpp.

References locationTable.

void LocationViewer::setLocationChangesSaved ( bool  saveChanges)
slot

Definition at line 33 of file LocationViewer.cpp.

References chkAutoUpdate.

Referenced by setFilterString().

void LocationViewer::setLocationId ( int  locId)
slot

Definition at line 367 of file LocationViewer.cpp.

References sbLocID.

void LocationViewer::setLocationString ( QString  locString)
slot
void LocationViewer::setMapId ( int  mapId)
slot

Definition at line 366 of file LocationViewer.cpp.

References sbMapID.

void LocationViewer::setRegion ( QString  region)
slot

Definition at line 386 of file LocationViewer.cpp.

References region, sbLocID, sbMapID, and setLocation().

void LocationViewer::setSelected ( QString  locFilename)
slot
void LocationViewer::setT ( int  t)
slot

Definition at line 364 of file LocationViewer.cpp.

References init_connections(), init_disconnect(), and sbT.

void LocationViewer::setTranslationBaseFile ( QString  basePathName)
slot

Definition at line 387 of file LocationViewer.cpp.

References transBasePath.

void LocationViewer::setX ( int  x)
slot

Definition at line 362 of file LocationViewer.cpp.

References init_connections(), init_disconnect(), and sbX.

void LocationViewer::setY ( int  y)
slot

Definition at line 363 of file LocationViewer.cpp.

References init_connections(), init_disconnect(), and sbY.

void LocationViewer::tChanged ( int  t)
signal

Referenced by sbTChanged().

QString LocationViewer::translate ( QString  text)
private

Definition at line 388 of file LocationViewer.cpp.

References region, and transBasePath.

Referenced by setLocation(), and setLocationString().

void LocationViewer::xChanged ( int  x)
signal

Referenced by sbXChanged().

void LocationViewer::yChanged ( int  y)
signal

Referenced by sbYChanged().

Member Data Documentation

bool LocationViewer::_advancedMode
private

Definition at line 126 of file LocationViewer.h.

Referenced by advancedMode(), LocationViewer(), and setAdvancedMode().

QAction* LocationViewer::actionCaseSensitive
private

Definition at line 104 of file LocationViewer.h.

Referenced by init_connections(), init_disconnect(), and init_display().

QAction* LocationViewer::actionItemSearch
private
QAction* LocationViewer::actionNameSearch
private
QAction* LocationViewer::actionRegExpSearch
private

Definition at line 103 of file LocationViewer.h.

Referenced by init_connections(), init_disconnect(), and init_display().

bool LocationViewer::autoUpdate
private
QToolButton* LocationViewer::btnSearchOptions
private

Definition at line 105 of file LocationViewer.h.

Referenced by init_connections(), and init_display().

bool LocationViewer::caseSensitive
private

Definition at line 124 of file LocationViewer.h.

Referenced by actionCaseSensitiveToggled(), filterLocations(), and LocationViewer().

QCheckBox* LocationViewer::chkAutoUpdate
private

Definition at line 121 of file LocationViewer.h.

Referenced by init_display(), and setLocationChangesSaved().

QWidget* LocationViewer::CoordsWidget
private

Definition at line 109 of file LocationViewer.h.

QListWidget* LocationViewer::fieldItemList
private
FF7FieldItemList* LocationViewer::fieldItems
private

Definition at line 107 of file LocationViewer.h.

Referenced by init_fieldItems(), LocationViewer(), and searchItem().

QGroupBox* LocationViewer::groupFieldItems
private

Definition at line 120 of file LocationViewer.h.

Referenced by init_display(), and init_fieldItems().

QLabel* LocationViewer::lblLocationPreview
private

Definition at line 108 of file LocationViewer.h.

Referenced by init_display(), resizeEvent(), and setLocation().

QLineEdit* LocationViewer::lineLocationName
private
QTableWidget* LocationViewer::locationTable
private
bool LocationViewer::regExpSearch
private

Definition at line 123 of file LocationViewer.h.

Referenced by actionRegExpSearchToggled(), filterLocations(), and LocationViewer().

QString LocationViewer::region
private

Definition at line 117 of file LocationViewer.h.

Referenced by LocationViewer(), setRegion(), and translate().

QSpinBox* LocationViewer::sbD
private
QSpinBox* LocationViewer::sbT
private
QSpinBox* LocationViewer::sbX
private
QSpinBox* LocationViewer::sbY
private
qreal LocationViewer::scale
private

Definition at line 127 of file LocationViewer.h.

Referenced by init_display(), and LocationViewer().

quint8 LocationViewer::searchMode
private
QString LocationViewer::transBasePath
private

Definition at line 118 of file LocationViewer.h.

Referenced by LocationViewer(), setTranslationBaseFile(), and translate().


The documentation for this class was generated from the following files: