Choreonoid  1.8
Splitter.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_BASE_SPLITTER_H
6 #define CNOID_BASE_SPLITTER_H
7 
8 #include <cnoid/Signal>
9 #include <QSplitter>
10 #include "exportdecl.h"
11 
12 namespace cnoid {
13 
14 class CNOID_EXPORT Splitter : public QSplitter
15 {
16  Q_OBJECT
17 
18 public:
19  Splitter(QWidget* parent = 0);
20  Splitter(Qt::Orientation orientation, QWidget* parent = 0);
21 
22  SignalProxy<void(int pos, int index)> sigSplitterMoved() {
23  return sigSplitterMoved_;
24  }
25 
26 private Q_SLOTS:
27  void onSplitterMoved(int pos, int index);
28 
29 private:
30  Signal<void(int pos, int index)> sigSplitterMoved_;
31 
32  void initialize();
33 };
34 
35 }
36 
37 #endif
cnoid::Splitter::sigSplitterMoved
SignalProxy< void(int pos, int index)> sigSplitterMoved()
Definition: Splitter.h:22
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::Signal
Definition: Signal.h:165
cnoid::Splitter
Definition: Splitter.h:14
cnoid::SignalProxy
Definition: Signal.h:470