2
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
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
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.
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
28
#include "wb_sql_editor_form.h"
30
#include <mforms/tabview.h>
34
class MYSQLWBBACKEND_PUBLIC_FUNC QuerySidePalette : public mforms::TabView, public base::trackable
37
SqlEditorForm::Ptr _owner;
39
mforms::Box* _help_box;
40
mforms::ToolBar* _help_toolbar;
41
mforms::HyperText* _help_text;
43
mforms::ScrollPanel* _snippet_box;
44
mforms::ToolBar* _snippet_toolbar;
45
SnippetList* _snippet_list;
47
void click_link(const std::string &link);
48
mforms::ToolBar* prepare_toolbar();
49
void toolbar_item_activated(mforms::ToolBarItem* item);
51
void snippet_selection_changed();
53
QuerySidePalette(const SqlEditorForm::Ref &owner);