Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/PluginUpdateDialog.cpp

Issue 10800092: Use libadblockplus update checker (Closed)
Patch Set: Created June 6, 2013, 3:18 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/plugin/PluginUpdateDialog.cpp
===================================================================
deleted file mode 100644
--- a/src/plugin/PluginUpdateDialog.cpp
+++ /dev/null
@@ -1,49 +0,0 @@
-#include "PluginStdAfx.h"
-
-#include "PluginUpdateDialog.h"
-#include "PluginDictionary.h"
-#include "PluginClient.h"
-
-
-void CUpdateDialog::SetVersions(CString newVersion, CString curVersion)
-{
- m_curVersion = curVersion;
- m_newVersion = newVersion;
-}
-
-
-LRESULT CUpdateDialog::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
-{
- CAxDialogImpl<CUpdateDialog>::OnInitDialog(uMsg, wParam, lParam, bHandled);
-
- bHandled = TRUE;
-
- this->CenterWindow();
-
- try
- {
- CPluginDictionary* dictionary = CPluginDictionary::GetInstance();
-
- CString text;
-
- text = dictionary->Lookup("UPDATE_TITLE");
- SetWindowText(text);
-
- text = dictionary->Lookup("UPDATE_NEW_VERSION_EXISTS");
- SetDlgItemText(IDC_UPDATETEXT, text);
-
- text = dictionary->Lookup("UPDATE_DO_YOU_WISH_TO_DOWNLOAD");
- SetDlgItemText(IDC_DOYOU, text);
-
- text = dictionary->Lookup("GENERAL_YES");
- SetDlgItemText(IDOK, text);
-
- text = dictionary->Lookup("GENERAL_NO");
- SetDlgItemText(IDNO, text);
- }
- catch (std::runtime_error&)
- {
- }
-
- return 1; // Let the system set the focus
-}

Powered by Google App Engine
This is Rietveld