~ubuntu-branches/ubuntu/trusty/ginkgocadx/trusty

« back to all changes in this revision

Viewing changes to src/cadxcore/main/controllers/hangingprotocolcontroller.h

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-07-21 11:58:53 UTC
  • mfrom: (7.2.1 sid)
  • Revision ID: package-import@ubuntu.com-20130721115853-44e7n1xujqglu78e
Tags: 3.4.0.928.29+dfsg-1
* New upstream release [July 2013]
  + new B-D: "libjsoncpp-dev".
  + new patch "unbundle-libjsoncpp.patch" to avoid building bundled
    "libjsoncpp-dev".
  + new patch "fix-wx.patch" to avoid FTBFS due to missing
    "-lwx_gtk2u_html-2.8".
* Removed unnecessary versioned Build-Depends.
* Removed obsolete lintian override.
* Reference get-orig-source implementation for orig.tar clean-up and
  DFSG-repackaging.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
namespace GNC {
25
25
        namespace GCS {
 
26
                class IVista;
26
27
                class Matcher;
27
28
                /**
28
29
                if series viewers implements this interface, getLayoutForSizer
70
71
                        std::map<std::string, std::string> matchingCriteria;
71
72
                };
72
73
 
 
74
                class HangingProtocol;
73
75
                /**
74
76
                Defines a specific layout, is recursive to allow splitted cells
75
77
                */
110
112
                        void setMatcher(const GNC::GCS::Ptr<Matcher>& matcher);
111
113
                        std::map<std::string, std::string>& getProperties();
112
114
                        void setProperties(const std::map<std::string, std::string>& properties);
 
115
                        GNC::GCS::HangingProtocol* getParent();
 
116
                        void setParent(GNC::GCS::HangingProtocol* pH);
 
117
                        void setDefaultPosition();
 
118
                        void setWindowProperties(bool isMaximized, int xPos, int yPos, int width, int height);
 
119
                        void copyWindowProperties(const GNC::GCS::Layout& other);
 
120
                        void applyWindowProperties(wxWindow* pWindow);
 
121
                        void applyWindowProperties(GNC::GCS::IVista* pView);
113
122
                protected:
114
123
                        int rows;
115
124
                        int columns;
116
125
                        /**
 
126
                        pointer to parent
 
127
                        */
 
128
                        GNC::GCS::HangingProtocol* pParent;
 
129
                        /**
117
130
                        left to right and top down list of cells
118
131
                        */
119
132
                        std::list<GNC::GCS::Ptr<Layout> > cellList;
125
138
                        here modules can insert key/value properies as zoom level, window/level...
126
139
                        */
127
140
                        std::map<std::string, std::string> properties;
 
141
                        /**
 
142
                        if it's detached or not
 
143
                        */
 
144
                        bool isDetached;
 
145
                        /**
 
146
                        Window details
 
147
                        */
 
148
                        bool isMaximized;
 
149
                        int xPos, yPos, width, height;
128
150
                };
129
151
 
130
152
                /**
132
154
                */
133
155
                class HangingProtocol {
134
156
                public:
 
157
                        typedef std::list<GNC::GCS::Ptr<Layout> > TListOfLayouts;
135
158
                        HangingProtocol();
136
159
                        /**
137
160
                        deserialize from xml
161
184
                        void setOpeningMode(int mode);
162
185
                        const GNC::GCS::Ptr<Matcher>& getStudyMatcher();
163
186
                        void setStudyMatcher(const GNC::GCS::Ptr<Matcher>& matcher);
164
 
                        const GNC::GCS::Ptr<Layout>& getLayout();
165
 
                        void setLayout(const GNC::GCS::Ptr<Layout>& layout);
 
187
                        const TListOfLayouts& getLayouts();
 
188
                        void addLayout(const GNC::GCS::Ptr<Layout>& layout);
 
189
                        void clearLayouts();
166
190
                        std::map<std::string, std::string>& getProperties();
167
191
                        void setProperties(const std::map<std::string, std::string>& properties);
168
192
                        bool isActive();
190
214
                        /**
191
215
                        layout of the protocol
192
216
                        */
193
 
                        GNC::GCS::Ptr<Layout> layout;
 
217
                        TListOfLayouts layouts;
194
218
                        /*
195
219
                        here modules can insert key/value properies
196
220
                        */