~ubuntu-branches/ubuntu/utopic/gnome-chemistry-utils/utopic-proposed

« back to all changes in this revision

Viewing changes to programs/crystal/view.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-05-10 21:30:51 UTC
  • mfrom: (1.1.15) (2.1.25 sid)
  • Revision ID: package-import@ubuntu.com-20130510213051-mswxsp3vitsgqspm
Tags: 0.14.2-1ubuntu1
* Sync with Debian. Remaining change:
  - Build-depend on firefox-dev instead of xulrunner-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// -*- C++ -*-
2
2
 
3
 
/* 
 
3
/*
4
4
 * Gnome Crystal
5
 
 * view.h 
6
 
 *
7
 
 * Copyright (C) 2000-2007 Jean Bréfort <jean.brefort@normalesup.org>
8
 
 *
9
 
 * This program is free software; you can redistribute it and/or 
10
 
 * modify it under the terms of the GNU General Public License as 
11
 
 * published by the Free Software Foundation; either version 2 of the
 
5
 * view.h
 
6
 *
 
7
 * Copyright (C) 2000-2010 Jean Bréfort <jean.brefort@normalesup.org>
 
8
 *
 
9
 * This program is free software; you can redistribute it and/or
 
10
 * modify it under the terms of the GNU General Public License as
 
11
 * published by the Free Software Foundation; either version 3 of the
12
12
 * License, or (at your option) any later version.
13
13
 *
14
14
 * This program is distributed in the hope that it will be useful,
27
27
 
28
28
#include <libxml/parser.h>
29
29
#include <list>
30
 
#include <gcu/crystalview.h>
 
30
#include <gcr/view.h>
31
31
#include <gcu/matrix.h>
32
32
#include <gcu/dialog.h>
33
33
#include <gcu/dialog-owner.h>
36
36
class gcApplication;
37
37
class gcWindow;
38
38
 
39
 
using namespace gcu;
40
 
 
41
 
class gcView: public CrystalView
 
39
class gcView: public gcr::View
42
40
{
43
41
public:
44
42
        gcView (gcDocument *pDoc);
45
43
        gcView (gcView *pView);
46
44
        ~gcView ();
47
 
        
48
 
        void SetBackgroundColor (float red, float green, float blue, float alpha);
49
 
        void GetBackgroundColor (double *red, double *green, double *blue, double *alpha);
50
 
        gdouble& GetFoV () {return GetRefAngle ();}
51
 
        gdouble& GetPos () {return m_Radius;}
52
 
        void GetRotation (double *psi, double *theta, double *phi);
 
45
 
53
46
        bool LoadOld (xmlNodePtr node);
54
 
        gcWindow *GetWindow () {return m_Window;}
55
 
        void SetWindow (gcWindow *window) {m_Window = window;}
56
 
        
 
47
 
57
48
private:
58
49
 
59
50
        GtkMenuItem* m_pMenu;
60
 
        std::list <Dialog *> m_Dialogs;
61
 
        gcWindow *m_Window;
62
51
};
63
52
 
64
53
#endif //GCRYSTAL_VIEW_H