GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
BaseControl.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_BaseControl_h)
27 #define octave_BaseControl_h 1
28 
29 #include "Object.h"
30 
31 class QEvent;
32 class QObject;
33 
35 
36 class base_qobject;
37 class interpreter;
38 
39 class BaseControl : public Object
40 {
41 public:
42  BaseControl (octave::base_qobject& oct_qobj, octave::interpreter& interp,
43  const graphics_object& go, QWidget *w);
44  ~BaseControl (void);
45 
46  Container * innerContainer (void) { return nullptr; }
47 
48  bool eventFilter (QObject *watched, QEvent *e);
49 
50 protected:
51  void init (QWidget *w, bool callBase = false);
52  void redraw (void);
53  void update (int pId);
54 
55 private:
58 };
59 
61 
62 #endif
OCTAVE_END_NAMESPACE(octave)
Container * innerContainer(void)
Definition: BaseControl.h:46
void redraw(void)
Definition: BaseControl.cc:158
~BaseControl(void)
Definition: BaseControl.cc:154
bool eventFilter(QObject *watched, QEvent *e)
Definition: BaseControl.cc:236
bool m_keyPressHandlerDefined
Definition: BaseControl.h:57
BaseControl(octave::base_qobject &oct_qobj, octave::interpreter &interp, const graphics_object &go, QWidget *w)
Definition: BaseControl.cc:118
void init(QWidget *w, bool callBase=false)
Definition: BaseControl.cc:129
void update(int pId)
Definition: BaseControl.cc:164
bool m_normalizedFont
Definition: BaseControl.h:56
Definition: Object.h:47
Base class for Octave interfaces that use Qt.
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
std::complex< double > w(std::complex< double > z, double relerr=0)