~ubuntu-branches/ubuntu/utopic/mysql-workbench/utopic

« back to all changes in this revision

Viewing changes to library/forms/mforms/form.h

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2014-05-31 12:03:58 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20140531120358-cjik5ofkmj0fxsn8
Tags: 6.1.6+dfsg-1
* New upstream release [May 2014].
* Dropped "prtcl.patch".
* "debian/clean": better clean-up.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* 
2
 
 * Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
 
2
 * Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved.
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or
5
5
 * modify it under the terms of the GNU General Public License as
75
75
    View *_content;
76
76
    bool _fixed_size;
77
77
    bool _release_on_close;
 
78
    bool _active;
78
79
 
79
80
    boost::signals2::signal<void ()> _closed_signal;
 
81
    boost::signals2::signal<void ()> _activated_signal;
 
82
    boost::signals2::signal<void ()> _deactivated_signal;
80
83
  protected:
81
84
    Form();
 
85
 
82
86
  public:
83
87
    /** Constructor.
84
88
     
143
147
     In Python use add_closed_callback()
144
148
     */
145
149
    boost::signals2::signal<void ()>* signal_closed() { return &_closed_signal; }
 
150
 
 
151
    /** Signal sent when the window becomes the active window.
 
152
     */
 
153
    boost::signals2::signal<void ()>* signal_activated() { return &_activated_signal; }
 
154
    boost::signals2::signal<void ()>* signal_deactivated() { return &_deactivated_signal; }
 
155
 
 
156
    void activated();
 
157
    void deactivated();
146
158
#endif
147
159
 
 
160
    bool is_active();
 
161
 
148
162
    void was_closed()
149
163
    {
150
164
      _closed_signal();