diff options
author | René Schümann <white06tiger@gmail.com> | 2014-04-03 02:39:49 +0000 |
---|---|---|
committer | René Schümann <white06tiger@gmail.com> | 2014-04-03 02:39:49 +0000 |
commit | 0719417f2521293437b4e4b205985dc16479bcc0 (patch) | |
tree | 0fa80bc069a7c28402e4c8f5dd657fb1b3186713 /plugins/SendScreenshotPlus/src/UMainForm.cpp | |
parent | cf2713fd362cfeeeda946ead18e6b88abdff9c93 (diff) |
SendSS
+ Dropbox support (by Wishmaster)
git-svn-id: http://svn.miranda-ng.org/main/trunk@8836 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus/src/UMainForm.cpp')
-rw-r--r-- | plugins/SendScreenshotPlus/src/UMainForm.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/SendScreenshotPlus/src/UMainForm.cpp b/plugins/SendScreenshotPlus/src/UMainForm.cpp index da7ca17cb6..0356361da0 100644 --- a/plugins/SendScreenshotPlus/src/UMainForm.cpp +++ b/plugins/SendScreenshotPlus/src/UMainForm.cpp @@ -311,6 +311,11 @@ void TfrmMain::wmInitdialog(WPARAM wParam, LPARAM lParam) { }else if(m_opt_cboxSendBy == SS_FILESEND || m_opt_cboxSendBy == SS_EMAIL || m_opt_cboxSendBy == SS_HTTPSERVER || m_opt_cboxSendBy == SS_FTPFILE) { m_opt_cboxSendBy = SS_IMAGESHACK; } + if (myGlobals.PluginDropboxExist) { + ComboBox_SetItemData(hCtrl, ComboBox_AddString(hCtrl, TranslateT("Dropbox")), SS_DROPBOX); + }else if(m_opt_cboxSendBy == SS_DROPBOX) { + m_opt_cboxSendBy = SS_IMAGESHACK; + } ComboBox_SetItemData(hCtrl, ComboBox_AddString(hCtrl, TranslateT("ImageShack")), SS_IMAGESHACK); ComboBox_SelectItemData (hCtrl, -1, m_opt_cboxSendBy); //use Workaround for MS bug ComboBox_SelectItemData } @@ -828,6 +833,9 @@ void TfrmMain::cboxSendByChange() { case SS_FTPFILE: //"FTP File" m_cSend = new CSendFTPFile(m_hWnd, m_hContact, true); break; + case SS_DROPBOX: //"Dropbox" + m_cSend = new CSendDropbox(m_hWnd, m_hContact, false); + break; case SS_IMAGESHACK: //"ImageShack" m_cSend = new CSendImageShack(m_hWnd, m_hContact, true); break; |