This file is indexed.

/usr/include/choreonoid-1.1/cnoid/src/Base/MenuManager.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
82
83
84
85
86
87
88
89
90
91
92
/**
   @author Shin'ichiro NAKAOKA
*/

#ifndef CNOID_GUIBASE_MENU_MANAGER_H_INCLUDED
#define CNOID_GUIBASE_MENU_MANAGER_H_INCLUDED

#include "Action.h"
#include <cnoid/ExtensionManager>
#include <QMenu>
#include <QMenuBar>
#include "exportdecl.h"

namespace cnoid {

    class MenuManagerImpl;

    class CNOID_EXPORT Menu : public QMenu
    {
        Q_OBJECT

      public:
        Menu(QWidget* parent = 0);
        Menu(const QString& title, QWidget* parent = 0);

        inline SignalProxy< boost::signal<void(QAction*)> > sigTriggered() {
            return sigTriggered_;
        }
        inline SignalProxy< boost::signal<void()> > sigAboutToHide() {
            return sigAboutToHide_;
        }

      private Q_SLOTS:
        void onTriggered(QAction* action);
        void onAboutToHide();

      private:
        boost::signal<void(QAction*)> sigTriggered_;
        boost::signal<void()> sigAboutToHide_;

        void initialize();
    };

    
    /**
       @if jp
       メニューを簡単に管理するためのクラス。   
       @endif
    */
    class CNOID_EXPORT MenuManager : public QObject
    {
        Q_OBJECT

      public:

        MenuManager();
        MenuManager(QWidget* topMenu);
        virtual ~MenuManager();

        void bindTextDomain(const std::string& domain);

        void setTopMenu(QWidget* topMenu);

        QAction* findItem(const QString& path);
        MenuManager& setPath(const QString& path);
        
        MenuManager& setBackwardMode();

        void addAction(QAction* action);

        Action* addItem(const QString& text);
        Action* addCheckItem(const QString& text);
        Action* addRadioItem(QActionGroup* group, const QString& text);

        MenuManager& addSeparator();

        void removeItem(QAction* item);

        void releaseAllItems();

      private:

        MenuManager(const MenuManager* org);

        MenuManagerImpl* impl;

      public Q_SLOTS:
        void onItemDestroyed();
    };
}

#endif