GNU Octave  6.2.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-2021 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 
34 namespace octave
35 {
36  class base_qobject;
37  class interpreter;
38 }
39 
40 namespace QtHandles
41 {
42 
43  class Container;
44 
45  class Panel : public Object
46  {
47  public:
49  const graphics_object& go, QFrame *frame);
50  ~Panel (void);
51 
52  Container * innerContainer (void) { return m_container; }
53 
54  bool eventFilter (QObject *watched, QEvent *event);
55 
56  static Panel *
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:
72  QLabel *m_title;
75  };
76 
77 }
78 
79 #endif
Definition: dMatrix.h:42
Container * innerContainer(void)
Definition: Panel.h:52
Matrix m_previous_bbox
Definition: Panel.h:74
void redraw(void)
Definition: Panel.cc:372
void do_connections(const QObject *receiver, const QObject *emitter=nullptr)
Definition: Panel.cc:424
void updateLayout(void)
Definition: Panel.cc:383
Panel(octave::base_qobject &oct_qobj, octave::interpreter &interp, const graphics_object &go, QFrame *frame)
Definition: Panel.cc:112
~Panel(void)
Definition: Panel.cc:172
Container * m_container
Definition: Panel.h:71
void update(int pId)
Definition: Panel.cc:261
QLabel * m_title
Definition: Panel.h:72
bool m_blockUpdates
Definition: Panel.h:73
bool eventFilter(QObject *watched, QEvent *event)
Definition: Panel.cc:176
static Panel * create(octave::base_qobject &oct_qobj, octave::interpreter &interp, const graphics_object &go)
Definition: Panel.cc:96
Base class for Octave interfaces that use Qt.