* \param path path to a file or a folder\r
*/\r
BOOL ReadProps(CTGitPath path);\r
- BOOL GetStringProps(CString &prop,TCHAR *key,bool bRemoveCR=true);\r
- BOOL GetBOOLProps(BOOL &b, TCHAR*key);\r
+ static BOOL GetStringProps(CString &prop,TCHAR *key,bool bRemoveCR=true);\r
+ static BOOL GetBOOLProps(BOOL &b, TCHAR*key);\r
/**\r
* Reads the properties from all paths found in a path list.\r
* This method calls ReadProps() for each path .\r
m_pTBlamePage = new CSettingsTBlame();\r
m_pGitConfig = new CSettingGitConfig();\r
m_pGitRemote = new CSettingGitRemote(m_CmdPath.GetWinPath());\r
+ m_pBugtraqConfig = new CSettingsBugtraqConfig(m_CmdPath.GetWinPath());\r
\r
\r
SetPageIcon(m_pMainPage, m_pMainPage->GetIconID());\r
SetPageIcon(m_pGitConfig, m_pGitConfig->GetIconID());\r
SetPageIcon(m_pGitRemote, m_pGitRemote->GetIconID());\r
SetPageIcon(m_pBugTraqPage, m_pBugTraqPage->GetIconID());\r
+ SetPageIcon(m_pBugtraqConfig, m_pBugtraqConfig->GetIconID());\r
SetPageIcon(m_pTBlamePage, m_pTBlamePage->GetIconID());\r
\r
AddPage(m_pMainPage);\r
// AddPage(m_pLogCacheListPage);\r
// AddPage(m_pHooksPage);\r
AddPage(m_pBugTraqPage);\r
+ if( g_GitAdminDir.HasAdminDir(this->m_CmdPath.GetWinPath()) )\r
+ {\r
+ AddPage(m_pBugtraqConfig);\r
+ }\r
AddPage(m_pTBlamePage);\r
}\r
\r
\r
delete m_pGitConfig;\r
delete m_pGitRemote;\r
+ delete m_pBugtraqConfig;\r
\r
}\r
\r
\r
restart |= m_pGitConfig->GetRestart();\r
restart |= m_pGitRemote->GetRestart();\r
+ restart |= m_pBugTraqPage->GetRestart();\r
\r
if (restart & ISettingsPropPage::Restart_System)\r
{\r
#include "TreePropSheet/TreePropSheet.h"\r
#include "SettingGitConfig.h"\r
#include "SettingGitRemote.h"\r
+#include "SettingsBugtraqConfig.h"\r
\r
using namespace TreePropSheet;\r
\r
CSettingsTBlame * m_pTBlamePage;\r
CSettingGitConfig * m_pGitConfig;\r
CSettingGitRemote * m_pGitRemote;\r
+ CSettingsBugtraqConfig * m_pBugtraqConfig;\r
\r
HICON m_hIcon;\r
public:\r
>\r
</File>\r
<File\r
- RelativePath="..\Resources\copy.ico"\r
+ RelativePath=".\copy.ico"\r
>\r
</File>\r
<File\r
- RelativePath=".\copy.ico"\r
+ RelativePath="..\Resources\copy.ico"\r
>\r
</File>\r
<File\r
>\r
</File>\r
<File\r
- RelativePath=".\explorer.ico"\r
+ RelativePath="..\Resources\explorer.ico"\r
>\r
</File>\r
<File\r
- RelativePath="..\Resources\explorer.ico"\r
+ RelativePath=".\explorer.ico"\r
>\r
</File>\r
<File\r
>\r
</File>\r
<File\r
- RelativePath="..\Resources\newfolder.ico"\r
+ RelativePath=".\newfolder.ico"\r
>\r
</File>\r
<File\r
- RelativePath=".\newfolder.ico"\r
+ RelativePath="..\Resources\newfolder.ico"\r
>\r
</File>\r
<File\r
>\r
</File>\r
<File\r
- RelativePath="..\Resources\refresh.ico"\r
+ RelativePath=".\refresh.ico"\r
>\r
</File>\r
<File\r
- RelativePath=".\refresh.ico"\r
+ RelativePath="..\Resources\refresh.ico"\r
>\r
</File>\r
<File\r
>\r
</File>\r
<File\r
- RelativePath=".\save.ico"\r
+ RelativePath="..\Resources\save.ico"\r
>\r
</File>\r
<File\r
- RelativePath="..\Resources\save.ico"\r
+ RelativePath=".\save.ico"\r
>\r
</File>\r
<File\r
>\r
</File>\r
<File\r
- RelativePath="..\Resources\up.ico"\r
+ RelativePath=".\up.ico"\r
>\r
</File>\r
<File\r
- RelativePath=".\up.ico"\r
+ RelativePath="..\Resources\up.ico"\r
>\r
</File>\r
<File\r
>\r
</File>\r
<File\r
+ RelativePath=".\Settings\SettingsBugtraqConfig.cpp"\r
+ >\r
+ </File>\r
+ <File\r
+ RelativePath=".\Settings\SettingsBugtraqConfig.h"\r
+ >\r
+ </File>\r
+ <File\r
RelativePath=".\Settings\SettingsColors.cpp"\r
>\r
</File>\r