GNU Octave 7.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Panel.h
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 2011-2022 The Octave Project Developers
4//
5// See the file COPYRIGHT.md in the top-level directory of this
6// distribution or <https://octave.org/copyright/>.
7//
8// This file is part of Octave.
9//
10// Octave is free software: you can redistribute it and/or modify it
11// under the terms of the GNU General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14//
15// Octave is distributed in the hope that it will be useful, but
16// WITHOUT ANY WARRANTY; without even the implied warranty of
17// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18// GNU General Public License for more details.
19//
20// You should have received a copy of the GNU General Public License
21// along with Octave; see the file COPYING. If not, see
22// <https://www.gnu.org/licenses/>.
23//
24////////////////////////////////////////////////////////////////////////
25
26#if ! defined (octave_Panel_h)
27#define octave_Panel_h 1
28
29#include "Object.h"
30
31class QFrame;
32class QLabel;
33
34namespace octave
35{
36 class base_qobject;
37 class interpreter;
38}
39
40namespace octave
41{
42
43 class Container;
44
45 class Panel : public Object
46 {
47 public:
48 Panel (octave::base_qobject& oct_qobj, octave::interpreter& interp,
49 const graphics_object& go, QFrame *frame);
50 ~Panel (void);
51
53
54 bool eventFilter (QObject *watched, QEvent *event);
55
56 static Panel *
57 create (octave::base_qobject& oct_qobj, octave::interpreter& interp,
58 const graphics_object& go);
59
60 void do_connections (const QObject *receiver,
61 const QObject *emitter = nullptr);
62
63 protected:
64 void update (int pId);
65 void redraw (void);
66
67 private:
68 void updateLayout (void);
69
70 private:
75 };
76
77}
78
79#endif
Definition: dMatrix.h:42
void redraw(void)
Definition: Panel.cc:372
~Panel(void)
Definition: Panel.cc:172
Container * innerContainer(void)
Definition: Panel.h:52
Panel(octave::base_qobject &oct_qobj, octave::interpreter &interp, const graphics_object &go, QFrame *frame)
Definition: Panel.cc:112
QLabel * m_title
Definition: Panel.h:72
void do_connections(const QObject *receiver, const QObject *emitter=nullptr)
Definition: Panel.cc:424
void update(int pId)
Definition: Panel.cc:261
Container * m_container
Definition: Panel.h:71
Matrix m_previous_bbox
Definition: Panel.h:74
static Panel * create(octave::base_qobject &oct_qobj, octave::interpreter &interp, const graphics_object &go)
Definition: Panel.cc:96
bool m_blockUpdates
Definition: Panel.h:73
void updateLayout(void)
Definition: Panel.cc:383
bool eventFilter(QObject *watched, QEvent *event)
Definition: Panel.cc:176
Base class for Octave interfaces that use Qt.