Skip to content

Commit

Permalink
added common as a reference project
Browse files Browse the repository at this point in the history
  • Loading branch information
alekhyakommuru authored and udit3333 committed Feb 19, 2020
1 parent 9cf2926 commit 6ac70e8
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 25 deletions.
24 changes: 12 additions & 12 deletions src/modules/powerrename/lib/PowerRenameLib.rc
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,18 @@ END

STRINGTABLE
BEGIN
IDS_ROOT_PATH L"Software\\Microsoft\\PowerRename"
IDS_SEARCH_PATH L"SearchMRU"
IDS_REPLACE_PATH L"ReplaceMRU"
IDS_ENABLED L"Enabled"
IDS_SHOW_ICON L"ShowIcon"
IDS_CONTEXT_MENU L"ExtendedContextMenuOnly"
IDS_PERSIST_STATE L"PersistState"
IDS_MAX_MRU_SIZE L"MaxMRUSize"
IDS_FLAGS L"Flags"
IDS_SEARCH_TEXT L"SearchText"
IDS_REPLACE_TEXT L"ReplaceText"
IDS_MRU_ENABLED L"MRUEnabled"
IDS_ROOT_PATH L"Software\\Microsoft\\PowerRename"
IDS_SEARCH_PATH L"SearchMRU"
IDS_REPLACE_PATH L"ReplaceMRU"
IDS_ENABLED L"Enabled"
IDS_SHOW_ICON L"ShowIcon"
IDS_CONTEXT_MENU L"ExtendedContextMenuOnly"
IDS_PERSIST_STATE L"PersistState"
IDS_MAX_MRU_SIZE L"MaxMRUSize"
IDS_FLAGS L"Flags"
IDS_SEARCH_TEXT L"SearchText"
IDS_REPLACE_TEXT L"ReplaceText"
IDS_MRU_ENABLED L"MRUEnabled"
END

#ifndef APSTUDIO_INVOKED
Expand Down
27 changes: 14 additions & 13 deletions src/modules/powerrename/lib/Settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@
#include "Settings.h"
#include "PowerRenameInterfaces.h"
#include "resource.h"

const wchar_t c_rootRegPath[] = L"Software\\Microsoft\\PowerRename";
const wchar_t c_mruSearchRegPath[] = L"SearchMRU";
const wchar_t c_mruReplaceRegPath[] = L"ReplaceMRU";
const wchar_t c_enabled[] = L"Enabled";
const wchar_t c_showIconOnMenu[] = L"ShowIcon";
const wchar_t c_extendedContextMenuOnly[] = L"ExtendedContextMenuOnly";
const wchar_t c_persistState[] = L"PersistState";
const wchar_t c_maxMRUSize[] = L"MaxMRUSize";
const wchar_t c_flags[] = L"Flags";
const wchar_t c_searchText[] = L"SearchText";
const wchar_t c_replaceText[] = L"ReplaceText";
const wchar_t c_mruEnabled[] = L"MRUEnabled";
#include <common.h>

const wchar_t* c_rootRegPath = GET_RESOURCE_STRING(IDS_ROOT_PATH).c_str();
const wchar_t* c_mruSearchRegPath = GET_RESOURCE_STRING(IDS_SEARCH_PATH).c_str();
const wchar_t* c_mruReplaceRegPath = GET_RESOURCE_STRING(IDS_REPLACE_PATH).c_str();
const wchar_t* c_enabled = GET_RESOURCE_STRING(IDS_ENABLED).c_str();
const wchar_t* c_showIconOnMenu = GET_RESOURCE_STRING(IDS_SHOW_ICON).c_str();
const wchar_t* c_extendedContextMenuOnly = GET_RESOURCE_STRING(IDS_CONTEXT_MENU).c_str();
const wchar_t* c_persistState = GET_RESOURCE_STRING(IDS_PERSIST_STATE).c_str();
const wchar_t* c_maxMRUSize = GET_RESOURCE_STRING(IDS_MAX_MRU_SIZE).c_str();
const wchar_t* c_flags = GET_RESOURCE_STRING(IDS_FLAGS).c_str();
const wchar_t* c_searchText = GET_RESOURCE_STRING(IDS_SEARCH_TEXT).c_str();
const wchar_t* c_replaceText = GET_RESOURCE_STRING(IDS_REPLACE_TEXT).c_str();
const wchar_t* c_mruEnabled = GET_RESOURCE_STRING(IDS_MRU_ENABLED).c_str();

const bool c_enabledDefault = true;
const bool c_showIconOnMenuDefault = true;
Expand Down
5 changes: 5 additions & 0 deletions src/modules/powerrename/testapp/PowerRenameTest.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@
<ItemGroup>
<ResourceCompile Include="PowerRenameTest.rc" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\common\common.vcxproj">
<Project>{74485049-c722-400f-abe5-86ac52d929b3}</Project>
</ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down

0 comments on commit 6ac70e8

Please sign in to comment.