~ubuntu-branches/ubuntu/quantal/mysql-workbench/quantal

« back to all changes in this revision

Viewing changes to library/forms/gtk/lf_scrollpanel.h

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2012-03-01 21:57:30 UTC
  • Revision ID: package-import@ubuntu.com-20120301215730-o7y8av8y38n162ro
Tags: upstream-5.2.38+dfsg
ImportĀ upstreamĀ versionĀ 5.2.38+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 
 
2
 * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU General Public License as
 
6
 * published by the Free Software Foundation; version 2 of the
 
7
 * License.
 
8
 * 
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
12
 * GNU General Public License for more details.
 
13
 * 
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software
 
16
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 
17
 * 02110-1301  USA
 
18
 */
 
19
#ifndef _LF_SCROLL_PANEL_H_
 
20
#define _LF_SCROLL_PANEL_H_
 
21
 
 
22
 
 
23
#include "mforms/scrollpanel.h"
 
24
 
 
25
#include "lfi_bin.h"
 
26
 
 
27
namespace mforms
 
28
{
 
29
namespace gtk
 
30
{
 
31
 
 
32
class ScrollPanelImpl : public ViewImpl, public BinImpl
 
33
{
 
34
  Gtk::ScrolledWindow *_swin;
 
35
  bool _vertical, _horizontal;
 
36
  bool _autohide;
 
37
 
 
38
  virtual Gtk::Widget *get_outer() const { return _swin; }
 
39
  virtual Gtk::Widget *get_inner() const { return _swin; }
 
40
  
 
41
protected:
 
42
  ScrollPanelImpl(::mforms::ScrollPanel *self, mforms::ScrollPanelFlags flags);
 
43
 
 
44
  static bool create(::mforms::ScrollPanel *self, mforms::ScrollPanelFlags flags);
 
45
  static void add(::mforms::ScrollPanel *self, ::mforms::View *child);
 
46
  static void remove(::mforms::ScrollPanel *self);
 
47
  static void set_visible_scrollers(::mforms::ScrollPanel *self, bool vertical, bool horizontal);
 
48
  static void set_autohide_scrollers(::mforms::ScrollPanel *self, bool flag);
 
49
  static void scroll_to_view(mforms::ScrollPanel*, mforms::View*);
 
50
  virtual void set_padding_impl(int left, int top, int right, int bottom);
 
51
 
 
52
 public:
 
53
  static void init();
 
54
};
 
55
 
 
56
};
 
57
};
 
58
 
 
59
 
 
60
#endif