~ubuntu-branches/ubuntu/maverick/freecad/maverick

« back to all changes in this revision

Viewing changes to src/Gui/Placement.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV
  • Date: 2010-01-11 08:48:33 UTC
  • mfrom: (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100111084833-4g9vgdqbkw8u34zb
Tags: 0.9.2646.5-1
* New upstream version (closes: #561696).
* Added swig to Build-Depends (closes: #563523, #563772).
* Removed python-opencv from Build-Depends and Recommends (closes: #560768).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/***************************************************************************
2
 
 *   Copyright (c) 2008 Werner Mayer <wmayer@users.sourceforge.net>        *
 
2
 *   Copyright (c) 2008 Werner Mayer <wmayer[at]users.sourceforge.net>     *
3
3
 *                                                                         *
4
4
 *   This file is part of the FreeCAD CAx development system.              *
5
5
 *                                                                         *
23
23
#ifndef GUI_PLACEMENT_H
24
24
#define GUI_PLACEMENT_H
25
25
 
26
 
#include "InputVector.h"
 
26
#include <Gui/InputVector.h>
27
27
#include <Base/Placement.h>
28
28
 
29
29
namespace Gui {
32
32
class Ui_Placement;
33
33
class GuiExport Placement : public Gui::LocationDialog
34
34
{
 
35
    Q_OBJECT
 
36
 
35
37
public:
36
38
    Placement(QWidget* parent = 0, Qt::WFlags fl = 0);
37
39
    ~Placement();
41
43
    void setPlacement(const Base::Placement&);
42
44
    Base::Placement getPlacement() const;
43
45
 
 
46
protected:
 
47
    void changeEvent(QEvent *e);
 
48
 
 
49
private Q_SLOTS:
 
50
    void on_applyButton_clicked();
 
51
    void on_applyPlacementChange_toggled(bool);
 
52
    void on_applyIncrementalPlacement_toggled(bool);
 
53
    void onPlacementChanged(int);
 
54
    void on_resetButton_clicked();
 
55
 
44
56
private:
 
57
    void setPlacementData(const Base::Placement&);
 
58
    Base::Placement getPlacementData() const;
45
59
    void directionActivated(int);
46
60
 
 
61
Q_SIGNALS:
 
62
    void placementChanged(const QVariant &);
 
63
    void directionChanged();
 
64
 
47
65
private:
48
66
    typedef Gui::LocationInterfaceComp<Ui_Placement> Ui_PlacementComp;
49
67
    Ui_PlacementComp* ui;
 
68
    Base::Placement pm;
50
69
};
51
70
 
52
71
} // namespace Dialog