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

« back to all changes in this revision

Viewing changes to backend/wbprivate/sqlide/query_side_palette.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) 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
namespace mforms {
 
21
  class Box;
 
22
  class ToolBar;
 
23
  class HyperText;
 
24
  class ScrollPanel;
 
25
  class ToolBarItem;
 
26
}
 
27
 
 
28
#include "wb_sql_editor_form.h"
 
29
 
 
30
#include <mforms/tabview.h>
 
31
 
 
32
class SnippetList;
 
33
 
 
34
class MYSQLWBBACKEND_PUBLIC_FUNC QuerySidePalette : public mforms::TabView, public base::trackable
 
35
{
 
36
private:
 
37
  SqlEditorForm::Ptr _owner;
 
38
 
 
39
  mforms::Box* _help_box;
 
40
  mforms::ToolBar* _help_toolbar;
 
41
  mforms::HyperText* _help_text;
 
42
  
 
43
  mforms::ScrollPanel* _snippet_box;
 
44
  mforms::ToolBar* _snippet_toolbar;
 
45
  SnippetList* _snippet_list;
 
46
  
 
47
  void click_link(const std::string &link);
 
48
  mforms::ToolBar* prepare_toolbar();
 
49
  void toolbar_item_activated(mforms::ToolBarItem* item);
 
50
  
 
51
  void snippet_selection_changed();
 
52
public:
 
53
  QuerySidePalette(const SqlEditorForm::Ref &owner);
 
54
  ~QuerySidePalette();
 
55
 
 
56
  void close_popover();
 
57
};
 
58