minor refactor

This commit is contained in:
arm64v8a
2023-05-22 11:07:14 +09:00
parent 1b050dd3fb
commit c5122b77e4
98 changed files with 1173 additions and 1142 deletions

View File

@@ -1,22 +1,20 @@
#pragma once
namespace NekoRay {
// implement in mainwindow
namespace GroupSortMethod {
enum GroupSortMethod {
Raw,
ByType,
ByAddress,
ByName,
ByLatency,
ById,
};
}
struct GroupSortAction {
GroupSortMethod::GroupSortMethod method = GroupSortMethod::Raw;
bool save_sort = false; // 保存到文件
bool descending = false; // 默认升序,开这个就是降序
bool scroll_to_started = false;
// implement in mainwindow
namespace GroupSortMethod {
enum GroupSortMethod {
Raw,
ByType,
ByAddress,
ByName,
ByLatency,
ById,
};
} // namespace NekoRay
}
struct GroupSortAction {
GroupSortMethod::GroupSortMethod method = GroupSortMethod::Raw;
bool save_sort = false; // 保存到文件
bool descending = false; // 默认升序,开这个就是降序
bool scroll_to_started = false;
};