MySQL Workbench  6.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
tabview_dock.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013, 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 #ifndef _TABVIEW_DOCK_H_
21 #define _TABVIEW_DOCK_H_
22 
23 #include "mforms/dockingpoint.h"
24 #include "mforms/tabview.h"
25 
26 namespace mforms {
27 
28 class MFORMS_EXPORT TabViewDockingPoint : public mforms::DockingPointDelegate
29 {
31  std::string _type;
32 
33  void close_page(mforms::AppView *page);
34 public:
35  TabViewDockingPoint(TabView *tv, const std::string &type)
36  : _tabview(tv), _type(type) {}
37 
38  virtual std::string get_type() { return _type; }
39 
40  virtual void dock_view(mforms::AppView *view, const std::string &arg1, int arg2);
41  virtual bool select_view(mforms::AppView *view);
42  virtual void undock_view(mforms::AppView *view);
43  virtual void set_view_title(mforms::AppView *view, const std::string &title);
44  virtual std::pair<int, int> get_size();
45 };
46 
47 };
48 
49 #endif
A view that is dockable into the host application window.
Definition: appview.h:53
virtual std::string get_type()
Definition: tabview_dock.h:38
#define MFORMS_EXPORT
Definition: base.h:33
TabViewDockingPoint(TabView *tv, const std::string &type)
Definition: tabview_dock.h:35
A Notebook/Tabbed view.
Definition: tabview.h:58
MySQL Workbench 6.1 documentation