Loading...
Searching...
No Matches
DataSetTableVerticalHeader.h
Go to the documentation of this file.
1/* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2
3 This file is part of the TerraLib - a Framework for building GIS enabled applications.
4
5 TerraLib is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version.
9
10 TerraLib is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License
16 along with TerraLib. See COPYING. If not, write to
17 TerraLib Team at <terralib-team@terralib.org>.
18 */
19
20/*!
21 \file DataSetTableVerticalHeader.h
22
23 \brief Defines a vertical header for a dataset table view.
24*/
25#ifndef __TERRALIB_QT_WIDGETS_TABLE_INTERNAL_DATASETTABLEVERTICALHEADER_H
26#define __TERRALIB_QT_WIDGETS_TABLE_INTERNAL_DATASETTABLEVERTICALHEADER_H
27
28#include <QHeaderView>
29
30namespace te
31{
32 namespace qt
33 {
34 namespace widgets
35 {
36 // Forward declarations
37 class DataSetTableView;
38
39 /*!
40 \class DataSetTableVerticalHeader
41
42 \brief A vertical header used for selecting rows at a table view.
43 */
44 class DataSetTableVerticalHeader : public QHeaderView
45 {
46 Q_OBJECT
47
48 public:
49
50 /*!
51 \brief Constructor.
52 */
54
55 /*!
56 \brief Destructor.
57 */
59
60 void mousePressEvent(QMouseEvent* evt);
61
62 signals:
63
64 /*!
65 \brief Emitted when user clicks mouse on a row.
66 */
67 void selectedRow(const int& row, const bool& add);
68
69 /*!
70 \brief Emitted when mouse clicks on row with SHIFT key button pressed.
71 */
72 void selectedRows(const int& initRow, const int& finalRow);
73
74 protected:
75
76 int m_initRow; //!< Init row.
77
78 DataSetTableView* m_view; //!< Table view.
79 };
80 }
81 }
82}
83
84#endif // __TERRALIB_QT_WIDGETS_TABLE_INTERNAL_DATASETTABLEVERTICALHEADER_H
85
A vertical header used for selecting rows at a table view.
void selectedRow(const int &row, const bool &add)
Emitted when user clicks mouse on a row.
DataSetTableVerticalHeader(DataSetTableView *view)
Constructor.
void selectedRows(const int &initRow, const int &finalRow)
Emitted when mouse clicks on row with SHIFT key button pressed.
A customized table view for te::map::AbstractLayer objects. Uses a te::qt::widgets::DataSetModel as i...
TerraLib.