GNU Octave  8.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-2023 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 
31 class QFrame;
32 class QLabel;
33 
35 
36 class base_qobject;
37 class interpreter;
38 
39 class Container;
40 
41 class Panel : public Object
42 {
43 public:
44  Panel (octave::base_qobject& oct_qobj, octave::interpreter& interp,
45  const graphics_object& go, QFrame *frame);
46  ~Panel (void);
47 
48  Container * innerContainer (void) { return m_container; }
49 
50  bool eventFilter (QObject *watched, QEvent *event);
51 
52  static Panel *
53  create (octave::base_qobject& oct_qobj, octave::interpreter& interp,
54  const graphics_object& go);
55 
56  void do_connections (const QObject *receiver,
57  const QObject *emitter = nullptr);
58 
59 protected:
60  void update (int pId);
61  void redraw (void);
62 
63 private:
64  void updateLayout (void);
65 
66 private:
71 };
72 
74 
75 #endif
OCTAVE_END_NAMESPACE(octave)
Definition: dMatrix.h:42
Definition: Object.h:47
Definition: Panel.h:42
void update(int pId)
Definition: Panel.cc:260
void do_connections(const QObject *receiver, const QObject *emitter=nullptr)
Definition: Panel.cc:423
static Panel * create(octave::base_qobject &oct_qobj, octave::interpreter &interp, const graphics_object &go)
Definition: Panel.cc:95
void redraw(void)
Definition: Panel.cc:371
bool eventFilter(QObject *watched, QEvent *event)
Definition: Panel.cc:175
QLabel * m_title
Definition: Panel.h:68
Container * m_container
Definition: Panel.h:67
bool m_blockUpdates
Definition: Panel.h:69
Panel(octave::base_qobject &oct_qobj, octave::interpreter &interp, const graphics_object &go, QFrame *frame)
Definition: Panel.cc:111
~Panel(void)
Definition: Panel.cc:171
void updateLayout(void)
Definition: Panel.cc:382
Matrix m_previous_bbox
Definition: Panel.h:70
Container * innerContainer(void)
Definition: Panel.h:48
Base class for Octave interfaces that use Qt.
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn