为什么我的枚举定义在类视图中具有不同的图标?

发布于 2025-01-16 02:25:28 字数 707 浏览 2 评论 0原文

示例 enum

enum class EnumCountType { Chairman, AuxiliaryCounsellor, Treasures, Presentations, Living, Conductor, Reader };

类视图:

在此处输入图像描述

所有这些枚举都是以相同的方式创建的(在相应标题的顶部)。

然而,我在类视图中看到了几种类型的图标:

  • 勾选
  • 挂锁
  • 标志

这是为什么?我以前从未注意到这一点。

Visual Studio 2022 中的 Visual C++ MFC 对话框项目。


我查看了 类视图和对象浏览器图标,但我在那里看不到它们。

Sample enum:

enum class EnumCountType { Chairman, AuxiliaryCounsellor, Treasures, Presentations, Living, Conductor, Reader };

Class View:

enter image description here

All of these enums are created in the same way (at the top of the respective headers).

Yet, I see several types of icons in Class View:

  • Tick
  • Padlock
  • Flag

Why is this? I never noticed it before.

Visual C++ MFC Dialog project in Visual Studio 2022.


I looked Class View and Object Browser icons but I can't see them there.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

棒棒糖 2025-01-23 02:25:28

它们是源代码控制状态图标:

蓝色锁 - 文件未更改,“已签入”

红色勾号 - 文件已更改,“待编辑”

绿色加号 - 文件未添加到源代码管理,“待添加”

以前从未见过白旗图标,如果您将鼠标指针悬停在它上面,那么它应该告诉您它的含义。

对我来说,它们仅在我的解决方案资源管理器中针对文件显示,我从未在类视图中看到它们 - 也许这是 TortoiseGit 或 C++ 项目的功能(我只在 Windows 版 Git 中使用过 C# 项目)。

They are source control status icons:

blue lock - file unchanged, "Checked in"

red tick - file changed, "Pending edit"

green plus - file not added to source control, "Pending add"

Never seen the white flag icon before, if you hover your mouse pointer over it then it should tell you what it means.

For me they are only shown in my Solution Explorer against files, I have never seen them in the Class View - perhaps it's a feature of TortoiseGit or C++ projects (I have only used C# projects with Git for Windows).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文