~ubuntu-branches/ubuntu/quantal/mysql-workbench/quantal

« back to all changes in this revision

Viewing changes to library/canvas/src/mdc_grid.h

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2012-03-01 21:57:30 UTC
  • Revision ID: package-import@ubuntu.com-20120301215730-o7y8av8y38n162ro
Tags: upstream-5.2.38+dfsg
ImportĀ upstreamĀ versionĀ 5.2.38+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _MDC_GRID_H_
 
2
#define _MDC_GRID_H_
 
3
 
 
4
#if 0
 
5
 
 
6
#include "mdc_common.h"
 
7
#include "mdc_layouter.h"
 
8
 
 
9
namespace mdc {
 
10
 
 
11
typedef unsigned short GridIndex;
 
12
  
 
13
class Grid : public Layouter {
 
14
public:
 
15
  Grid(CanvasView *canvas, GridIndex rows, GridIndex cols);
 
16
 
 
17
  virtual void add(CanvasItem *item, GridIndex row, GridIndex col, GridIndex rspan=1, GridIndex cspan=1);
 
18
  
 
19
  virtual void relayout();
 
20
 
 
21
protected:
 
22
  struct GridCell {
 
23
    CanvasItem *item;
 
24
    GridIndex row;
 
25
    GridIndex col;
 
26
    GridIndex rspan;
 
27
    GridIndex cspan;
 
28
  };
 
29
  
 
30
  int _row_num;
 
31
  int _column_num;
 
32
 
 
33
  std::vector<GridRow> _rows;
 
34
};
 
35
 
 
36
};
 
37
 
 
38
#endif
 
39
 
 
40
#endif /* _MDC_GRID_H_ */