OpenStructure
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
stage
include
ost
gui
scene_menu.hh
Go to the documentation of this file.
1
//------------------------------------------------------------------------------
2
// This file is part of the OpenStructure project <www.openstructure.org>
3
//
4
// Copyright (C) 2008-2011 by the OpenStructure authors
5
//
6
// This library is free software; you can redistribute it and/or modify it under
7
// the terms of the GNU Lesser General Public License as published by the Free
8
// Software Foundation; either version 3.0 of the License, or (at your option)
9
// any later version.
10
// This library is distributed in the hope that it will be useful, but WITHOUT
11
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13
// details.
14
//
15
// You should have received a copy of the GNU Lesser General Public License
16
// along with this library; if not, write to the Free Software Foundation, Inc.,
17
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
//------------------------------------------------------------------------------
19
#ifndef OST_GUI_SCENE_MENU_HH
20
#define OST_GUI_SCENE_MENU_HH
21
22
23
#include <
ost/mol/atom_handle.hh
>
24
#include <
ost/gfx/gfx_object_fw.hh
>
25
26
#include <QObject>
27
#include <QPoint>
28
#include <QMenu>
29
#include <QString>
30
namespace
ost {
namespace
gui {
31
32
class
SceneMenu
:
public
QObject{
33
Q_OBJECT
34
public
:
35
SceneMenu
();
36
virtual
~SceneMenu
();
37
void
SetPickPoint
(
const
QPoint& pos);
38
39
public
slots:
40
void
ShowMenu
(
const
QPoint& pos);
41
void
SelectBackbone
();
42
void
SelectSidechains
();
43
void
SelectLigands
();
44
void
SelectAroundAtom
();
45
void
SelectAroundResidue
();
46
void
SelectAtom
();
47
void
SelectResidue
();
48
void
Select
(
const
String
& str);
49
void
UnSelect
();
50
void
CenterOnAtom
();
51
void
CenterOnResidue
();
52
void
CenterOnChain
();
53
void
CenterOnView
();
54
void
CenterOnSelection
();
55
56
private
:
57
void
PrepareContextMenu(
const
QPoint& pos);
58
std::pair<gfx::GfxObjP, mol::AtomHandle> picked_;
59
QMenu* context_menu_;
60
QMenu* select_menu_;
61
QMenu* center_menu_;
62
};
63
64
}}
// ns
65
#endif //OST_GUI_SCENE_MENU_HH
ost::gui::SceneMenu::SelectAtom
void SelectAtom()
ost::gui::SceneMenu::CenterOnSelection
void CenterOnSelection()
ost::gui::SceneMenu::SetPickPoint
void SetPickPoint(const QPoint &pos)
ost::gui::SceneMenu::CenterOnResidue
void CenterOnResidue()
String
std::string String
Definition:
base.hh:54
ost::gui::SceneMenu::UnSelect
void UnSelect()
ost::gui::SceneMenu
Definition:
scene_menu.hh:32
ost::gui::SceneMenu::Select
void Select(const String &str)
ost::gui::SceneMenu::SelectAroundResidue
void SelectAroundResidue()
atom_handle.hh
ost::gui::SceneMenu::CenterOnView
void CenterOnView()
ost::gui::SceneMenu::CenterOnAtom
void CenterOnAtom()
ost::gui::SceneMenu::SelectResidue
void SelectResidue()
ost::gui::SceneMenu::SelectAroundAtom
void SelectAroundAtom()
ost::gui::SceneMenu::SelectBackbone
void SelectBackbone()
ost::gui::SceneMenu::SelectLigands
void SelectLigands()
gfx_object_fw.hh
ost::gui::SceneMenu::ShowMenu
void ShowMenu(const QPoint &pos)
ost::gui::SceneMenu::CenterOnChain
void CenterOnChain()
ost::gui::SceneMenu::~SceneMenu
virtual ~SceneMenu()
ost::gui::SceneMenu::SelectSidechains
void SelectSidechains()
ost::gui::SceneMenu::SceneMenu
SceneMenu()
Generated by
1.8.5