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

« back to all changes in this revision

Viewing changes to library/forms/popover.cpp

  • 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) 2011, 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
 
 
20
#include "stdafx.h"
 
21
 
 
22
using namespace mforms;
 
23
 
 
24
Popover::Popover()
 
25
{
 
26
  _popover_impl= &ControlFactory::get_instance()->_popover_impl;
 
27
  _popover_impl->create(this);
 
28
}
 
29
 
 
30
void Popover::set_content(View* content)
 
31
{
 
32
  _popover_impl->set_content(this, content);
 
33
}
 
34
 
 
35
void Popover::show(int x, int y, StartPosition position)
 
36
{
 
37
  _popover_impl->show(this, x, y, position);
 
38
}
 
39
 
 
40
void Popover::set_size(int width, int height)
 
41
{
 
42
  _popover_impl->set_size(this, width, height);
 
43
}
 
44
 
 
45
void Popover::close()
 
46
{
 
47
  _popover_impl->close(this);
 
48
}
 
49
 
 
50