LocationListEditor.hpp   LocationListEditor.hpp 
skipping to change at line 33 skipping to change at line 33
#include <QMainWindow> #include <QMainWindow>
#include <QList> #include <QList>
#include <QString> #include <QString>
namespace Ui { namespace Ui {
class LocationListEditor; class LocationListEditor;
} }
class LocationListModel; class LocationListModel;
class QLabel;
class QItemSelectionModel;
class QSortFilterProxyModel; class QSortFilterProxyModel;
//! Main class of the %Location List Editor. //! Main class of the %Location List Editor.
class LocationListEditor : public QMainWindow class LocationListEditor : public QMainWindow
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit LocationListEditor(QWidget *parent = 0); explicit LocationListEditor(QWidget *parent = 0);
~LocationListEditor(); ~LocationListEditor();
protected: protected:
void changeEvent(QEvent* event); void changeEvent(QEvent* event);
//! Reimplemented to prompt for saving. //! Reimplemented to prompt for saving.
void closeEvent(QCloseEvent* event); void closeEvent(QCloseEvent* event);
private: private:
Ui::LocationListEditor *ui; Ui::LocationListEditor *ui;
//! Status bar indicator showing the number of rows and filtered row
s.
QLabel* filterIndicator;
LocationListModel* locations; LocationListModel* locations;
QSortFilterProxyModel* proxyModel; QSortFilterProxyModel* proxyModel;
QItemSelectionModel* selectionModel;
//! Path to the currently opened list. //! Path to the currently opened list.
QString openFilePath; QString openFilePath;
//! Path to the /data/base_locations.txt file of the curret project. //! Path to the /data/base_locations.txt file of the curret project.
//! The "current" is the project from which's /utils the app is run. //! The "current" is the project from which's /utils the app is run.
//! Empty if not found. //! Empty if not found.
QString projectFilePath; QString projectFilePath;
//! Path to the user_locations.txt in the curren user data directory . //! Path to the user_locations.txt in the curren user data directory .
//! Empty if not found. //! Empty if not found.
QString userFilePath; QString userFilePath;
skipping to change at line 96 skipping to change at line 101
QList<int> getIndexesOfSelection(); QList<int> getIndexesOfSelection();
//! Get the row number/list index of the current item. //! Get the row number/list index of the current item.
//! @returns -1 if there's no valid current item (really unlikely). //! @returns -1 if there's no valid current item (really unlikely).
//! @warning There's a difference between "selected" and "current". See the Qt documentation. //! @warning There's a difference between "selected" and "current". See the Qt documentation.
int getIndexOfCurrentRow(); int getIndexOfCurrentRow();
//! Set the current location and open its name for editing. //! Set the current location and open its name for editing.
void setCurrentlyEditedLocation(int row); void setCurrentlyEditedLocation(int row);
//! Set the current row and scroll to the item. //! Set the current row and scroll to the item.
void goToRow(int row); void goToRow(int row);
//! Show the number of filtered rows and rows total in the status ba
r.
void updateFilterIndicator();
private slots: private slots:
//! Prompts for file location and opens that file. //! Prompts for file location and opens that file.
void open(); void open();
//! Tries to open the base location list of the current project. //! Tries to open the base location list of the current project.
//! Assumes that it is run from <project_dir>/utils/location-editor/ . //! Assumes that it is run from <project_dir>/utils/location-editor/ .
void openProjectLocations(); void openProjectLocations();
//! Tries to open the location list in the current user's data direc tory. //! Tries to open the location list in the current user's data direc tory.
void openUserLocations(); void openUserLocations();
//! Save the currently opened file. //! Save the currently opened file.
//! @returns true if the file has been saved successfully. //! @returns true if the file has been saved successfully.
skipping to change at line 136 skipping to change at line 144
void goToNextDuplicate(); void goToNextDuplicate();
//! Shows a window with author and copyright information. //! Shows a window with author and copyright information.
void showAboutWindow(); void showAboutWindow();
//! //!
void test(); void test();
//! Sets the view column affected by the search/filter field. //! Sets the view column affected by the search/filter field.
void setFilteredColumn(int column); void setFilteredColumn(int column);
//! //!
void setFilterCaseSensitivity(bool sensitive); void setFilterCaseSensitivity(bool sensitive);
//! Filters the view according to the current filter text and column
.
void filter();
//! Resets the current filtering and empties the search/filter field
.
//void clearFilter();
//! Show the number of selected rows in the status bar.
void updateSelectionCount();
}; };
#endif // LOCATIONLISTEDITOR_HPP #endif // LOCATIONLISTEDITOR_HPP
 End of changes. 5 change blocks. 
0 lines changed or deleted 19 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/