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

« back to all changes in this revision

Viewing changes to plugins/paint/bonds/newman.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
// -*- C++ -*-
 
2
 
 
3
/*
 
4
 * GChemPaint bonds plugin
 
5
 * newman.h
 
6
 *
 
7
 * Copyright (C) 2012 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
 * License, or (at your option) any later version.
 
13
 *
 
14
 * This program is distributed in the hope that it will be useful,
 
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
 * GNU General Public License for more details.
 
18
 *
 
19
 * You should have received a copy of the GNU General Public License
 
20
 * along with this program; if not, write to the Free Software
 
21
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
 
22
 * USA
 
23
 */
 
24
 
 
25
#ifndef GCHEMPAINT_NEWMAN_TOOL_H
 
26
#define GCHEMPAINT_NEWMAN_TOOL_H
 
27
 
 
28
#include <gcp/tool.h>
 
29
 
 
30
class gcpNewmanTool: public gcp::Tool
 
31
{
 
32
friend class gcpNewmanToolPrivate;
 
33
public:
 
34
        gcpNewmanTool (gcp::Application *App);
 
35
        virtual ~gcpNewmanTool ();
 
36
 
 
37
        bool OnClicked ();
 
38
        void OnDrag ();
 
39
        void OnRelease ();
 
40
        GtkWidget *GetPropertyPage ();
 
41
        void Activate ();
 
42
        char const *GetHelpTag () {return "newman";}
 
43
 
 
44
private:
 
45
        GtkSpinButton *m_LengthBtn, *m_OrderBtn, *m_ForeBondsBtn, *m_RearBondsBtn,
 
46
                                  *m_ForeFirstAngleBtn, *m_RearFirstAngleBtn,
 
47
                                  *m_ForeBondAngleBtn, *m_RearBondAngleBtn;
 
48
        double m_ForeFirstAngle, m_RearFirstAngle, m_ForeBondAngle, m_RearBondAngle;
 
49
        int m_ForeBonds, m_RearBonds, m_Order;
 
50
};
 
51
 
 
52
#endif  //      GCHEMPAINT_NEWMAN_TOOL_H