@@ -45,42 +45,124 @@ class QgsAttributeTableDialog : public QDialog, private Ui::QgsAttributeTableDia
4545 Q_OBJECT
4646
4747 public:
48+ /* *
49+ * Constructor
50+ * @param theLayer layer pointer
51+ * @param parent parent object
52+ * @param flags window flags
53+ */
4854 QgsAttributeTableDialog ( QgsVectorLayer *theLayer, QWidget *parent = 0 , Qt::WindowFlags flags = Qt::Window );
4955 ~QgsAttributeTableDialog ();
5056
5157 public slots:
58+ /* *
59+ * Toggles editing mode
60+ */
5261 void editingToggled ();
5362
5463 private slots:
64+ /* *
65+ * submits the data
66+ */
5567 void submit ();
68+ /* *
69+ * Reverts the changes
70+ */
5671 void revert ();
72+ /* *
73+ * Launches search
74+ */
5775 void search ();
76+ /* *
77+ * Launches advanced search
78+ */
5879 void on_mAdvancedSearchButton_clicked ();
80+ /* *
81+ * Updates the selection
82+ */
5983 void updateSelection ();
84+ /* *
85+ * Reads the selection from the layer
86+ */
6087 void updateSelectionFromLayer ();
88+ /* *
89+ * Updates selection of a row
90+ */
6191 void updateRowSelection ( int index );
92+ /* *
93+ * Updates selection of specifed rows
94+ * @param first first row
95+ * @param last last row
96+ * @param startNewSelection if true, then new selection is started
97+ */
6298 void updateRowSelection ( int first, int last, bool startNewSelection );
6399
100+ /* *
101+ * Toggle showing of selected line only
102+ * @param theFlag toggle on if true
103+ */
64104 void on_cbxShowSelectedOnly_toggled ( bool theFlag );
105+ /* *
106+ * Copies selected rows to the clipboard
107+ */
65108 void on_mCopySelectedRowsButton_clicked ();
66109
110+ /* *
111+ * Toggles editing mode
112+ */
67113 void on_mToggleEditingButton_toggled ();
114+ /* *
115+ * Inverts selection
116+ */
68117 void on_mInvertSelectionButton_clicked ();
118+ /* *
119+ * Clears selection
120+ */
69121 void on_mRemoveSelectionButton_clicked ();
122+ /* *
123+ * Zooms to selected features
124+ */
70125 void on_mZoomMapToSelectedRowsButton_clicked ();
126+ /* *
127+ * Moves selected lines to the top
128+ */
71129 void on_mSelectedToTopButton_clicked ();
130+ /* *
131+ * Shows advanced actions
132+ */
72133 void showAdvanced ();
134+ /* *
135+ * Starts editing mode
136+ */
73137 void startEditing ();
74138
75139 signals:
76- void editingToggled ( QgsMapLayer * );
140+ /* *
141+ * Informs that editing mode ha been toggled
142+ * @param layer layer that has been toggled
143+ */
144+ void editingToggled ( QgsMapLayer *layer );
77145
78146 protected:
147+ /* *
148+ * Handle closing of the window
149+ * @param event unused
150+ */
79151 void closeEvent ( QCloseEvent* event );
80152
81153 private:
154+ /* *
155+ * Initialize column box
156+ */
82157 void columnBoxInit ();
158+ /* *
159+ * Returns id of a column
160+ */
83161 int columnBoxColumnId ();
162+ /* *
163+ * Performs the search
164+ * @param searchString search query string
165+ */
84166 void doSearch ( QString searchString );
85167
86168 QIcon getThemeIcon ( const QString theName );
0 commit comments