Skip to content

Commit

Permalink
Unique class names
Browse files Browse the repository at this point in the history
  • Loading branch information
vanjac committed Sep 25, 2022
1 parent 0fcda78 commit 437a056
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/FolderWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

namespace chromafiler {

const wchar_t FOLDER_WINDOW_CLASS[] = L"Folder Window";
const wchar_t FOLDER_WINDOW_CLASS[] = L"ChromaFile Folder";

const wchar_t PROP_VISITED[] = L"Visited";
const wchar_t PROP_SIZE[] = L"Size";
Expand Down
2 changes: 1 addition & 1 deletion src/ItemWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

namespace chromafiler {

const wchar_t CHAIN_OWNER_CLASS[] = L"Chain";
const wchar_t CHAIN_OWNER_CLASS[] = L"ChromaFile Chain";
const wchar_t WINDOW_THEME[] = L"CompositedWindow::Window";

// dimensions
Expand Down
4 changes: 2 additions & 2 deletions src/PreviewWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ struct std::hash<CLSID> {

namespace chromafiler {

const wchar_t PREVIEW_WINDOW_CLASS[] = L"Preview Window";
const wchar_t PREVIEW_CONTAINER_CLASS[] = L"Preview Container";
const wchar_t PREVIEW_WINDOW_CLASS[] = L"ChromaFile Preview";
const wchar_t PREVIEW_CONTAINER_CLASS[] = L"ChromaFile Preview Container";

enum WorkerUserMessage {
MSG_INIT_PREVIEW_REQUEST = WM_USER,
Expand Down
2 changes: 1 addition & 1 deletion src/TextWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace chromafiler {

const wchar_t TEXT_WINDOW_CLASS[] = L"Text Window";
const wchar_t TEXT_WINDOW_CLASS[] = L"ChromaFile Text";

const ULONG MAX_FILE_SIZE = 50'000'000;

Expand Down
2 changes: 1 addition & 1 deletion src/ThumbnailWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace chromafiler {

const wchar_t THUMBNAIL_WINDOW_CLASS[] = L"Thumbnail Window";
const wchar_t THUMBNAIL_WINDOW_CLASS[] = L"ChromaFile Thumbnail";

void ThumbnailWindow::init() {
WNDCLASS wndClass = createWindowClass(THUMBNAIL_WINDOW_CLASS);
Expand Down
4 changes: 2 additions & 2 deletions src/TrayWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

namespace chromafiler {

const wchar_t TRAY_WINDOW_CLASS[] = L"Tray";
const wchar_t MOVE_GRIP_CLASS[] = L"Move Grip";
const wchar_t TRAY_WINDOW_CLASS[] = L"ChromaFile Tray";
const wchar_t MOVE_GRIP_CLASS[] = L"ChromaFile Move Grip";

const int HOTKEY_FOCUS_TRAY = 1;

Expand Down

0 comments on commit 437a056

Please sign in to comment.