File: VisibleSectionsModel.h

package info (click to toggle)
tulip 3.7.0dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 39,428 kB
  • sloc: cpp: 231,403; php: 11,023; python: 1,128; sh: 671; yacc: 522; makefile: 315; xml: 63; lex: 55
file content (27 lines) | stat: -rwxr-xr-x 915 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef VISIBLESECTIONMSODEL_H
#define VISIBLESECTIONSMODEL_H

#include <QtGui/QComboBox>

class TulipTableWidgetColumnSelectionModel;

class VisibleSectionsModel : public QComboBox {
  Q_OBJECT
public:
  VisibleSectionsModel(QWidget* parent= NULL);

  void setColumnModel(TulipTableWidgetColumnSelectionModel* columModel);

private slots:
  void propertiesInserted ( const QModelIndex & parent, int start, int end );
  void propertiesMoved ( const QModelIndex & sourceParent, int sourceStart, int sourceEnd, const QModelIndex & destinationParent, int destinationColumn );
  void propertiesRemoved ( const QModelIndex & parent, int start, int end );
  void propertiesDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight);
  void propertiesReset();
private:

  void initModel(int selectedColumnIndex = -1);
  TulipTableWidgetColumnSelectionModel* _columnModel;
};

#endif // VISIBLESECTIONSMODEL_H