~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to imagery/i.ortho.photo/i.photo.2target/defs.h

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include "orthophoto.h"
2
 
#include <grass/rowio.h>
3
 
#include <curses.h>
4
 
 
5
 
/* this is a curses structure */
6
 
typedef struct
7
 
{
8
 
    int top, left, bottom, right;
9
 
} Window;
10
 
 
11
 
/* this is a graphics structure */
12
 
typedef struct
13
 
{
14
 
    int top, bottom, left, right;
15
 
    int nrows, ncols;
16
 
    struct
17
 
    {
18
 
        int configured;
19
 
        struct Cell_head head;
20
 
        struct Colors colors;
21
 
        char name[30];
22
 
        char mapset[30];
23
 
        int top, bottom, left, right;
24
 
        double ew_res, ns_res;  /* original map resolution */
25
 
    } cell;
26
 
} View;
27
 
 
28
 
 
29
 
typedef struct
30
 
{
31
 
    int type;                   /* object type */
32
 
    int (*handler) ();          /* routine to handle the event */
33
 
    char *label;                /* label to display if MENU or OPTION */
34
 
    int binding;                /* OPTION bindings */
35
 
    int *status;                /* MENU,OPTION status */
36
 
    int top, bottom, left, right;
37
 
} Objects;
38
 
 
39
 
#define MENU_OBJECT 1
40
 
#define OPTION_OBJECT 2
41
 
#define INFO_OBJECT 3
42
 
#define OTHER_OBJECT 4
43
 
 
44
 
 
45
 
#define MENU(label,handler,status) \
46
 
        {MENU_OBJECT,handler,label,0,status,0,0,0,0}
47
 
#define OPTION(label,binding,status) \
48
 
        {OPTION_OBJECT,NULL,label,binding,status,0,0,0,0}
49
 
#define INFO(label,status) \
50
 
        {INFO_OBJECT,NULL,label,0,status,0,0,0,0}
51
 
#define OTHER(handler,status) \
52
 
        {OTHER_OBJECT,handler,NULL,0,status,0,0,0,0}