This file is indexed.

/usr/include/choreonoid-1.1/cnoid/src/Base/View.h is in libcnoid-dev 1.1.0+dfsg-6.1+b4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/**
   @author Shin'ichiro Nakaoka
*/

#ifndef CNOID_GUIBASE_VIEW_H_INCLUDED
#define CNOID_GUIBASE_VIEW_H_INCLUDED

#include <cnoid/SignalProxy>
#include <QWidget>
#include "exportdecl.h"

namespace cnoid {

    class ToolBar;
    class Archive;
    class ExtensionManager;

    class CNOID_EXPORT View : public QWidget
    {
      public:
        
        View();
        virtual ~View();

        void setName(const QString& name);
        inline QString name() const { return objectName(); }

        enum LayoutArea { LEFT = 0,
                          LEFT_TOP = 0,
                          LEFT_BOTTOM = 1,
                          CENTER = 2,
                          RIGHT = 3,
                          BOTTOM = 4,
                          NUM_AREAS };

        void setDefaultLayoutArea(LayoutArea area);
        LayoutArea defaultLayoutArea() const;

        bool isActive() const;

        inline SignalProxy< boost::signal<void()> > sigActivated() {
            return sigActivated_;
        }

        inline SignalProxy< boost::signal<void()> > sigDeactivated() {
            return sigDeactivated_;
        }

        void setLayout(QLayout* layout);

        virtual QWidget* indicatorOnInfoBar();

      protected:

        virtual void onActivated();
        virtual void onDeactivated();

        virtual bool storeState(Archive& archive);
        virtual bool restoreState(const Archive& archive);


      private:

        // Qt events (make hidden)
        virtual void showEvent(QShowEvent* event);
        virtual void hideEvent(QHideEvent* event);
        
        LayoutArea defaultLayoutArea_;
        bool isManagedByMainWindow;

        bool isActive_;
        boost::signal<void()> sigActivated_;
        boost::signal<void()> sigDeactivated_;

        friend class MainWindow;
        friend class MainWindowImpl;
        friend class ProjectManagerImpl;
    };
}

#endif