diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/NotesAndReminders/res/resource.rc | 6 | ||||
-rw-r--r-- | plugins/NotesAndReminders/src/reminders.cpp | 36 | ||||
-rw-r--r-- | plugins/NotesAndReminders/src/resource.h | 5 |
3 files changed, 20 insertions, 27 deletions
diff --git a/plugins/NotesAndReminders/res/resource.rc b/plugins/NotesAndReminders/res/resource.rc index 0d492b5352..86a4060828 100644 --- a/plugins/NotesAndReminders/res/resource.rc +++ b/plugins/NotesAndReminders/res/resource.rc @@ -99,10 +99,6 @@ BEGIN GROUPBOX "Reminder Note:",1006,4,58,230,99
EDITTEXT IDC_REMINDER,9,70,220,81,ES_MULTILINE | ES_AUTOVSCROLL | ES_WANTRETURN | WS_VSCROLL
GROUPBOX "",IDC_STATIC,4,157,228,22,NOT WS_VISIBLE
- CONTROL "None",IDC_NONE,"Button",BS_AUTORADIOBUTTON | NOT WS_VISIBLE | WS_TABSTOP,13,167,45,8
- CONTROL "Daily",IDC_DAILY,"Button",BS_AUTORADIOBUTTON | NOT WS_VISIBLE | WS_TABSTOP,68,167,45,8
- CONTROL "Weekly",IDC_WEEKLY,"Button",BS_AUTORADIOBUTTON | NOT WS_VISIBLE | WS_TABSTOP,124,167,45,8
- CONTROL "Monthly",IDC_MONTHLY,"Button",BS_AUTORADIOBUTTON | NOT WS_VISIBLE | WS_TABSTOP,178,167,45,8
LTEXT "Repeat Alert Sound",IDC_STATIC,31,166,90,8,0,WS_EX_RIGHT
COMBOBOX IDC_COMBO_REPEATSND,126,163,107,81,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
LTEXT "Use Sound",IDC_STATIC,31,185,90,8,0,WS_EX_RIGHT
@@ -129,7 +125,7 @@ BEGIN LTEXT "Time",IDC_STATIC_TIME,10,125,24,8
COMBOBOX IDC_TIMECOMBO,39,123,107,198,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
DEFPUSHBUTTON "&Remind Again",IDC_REMINDAGAIN,161,92,75,14
- PUSHBUTTON "&Create Note",IDC_NONE,161,111,75,14
+ PUSHBUTTON "&Create Note",IDC_CREATE_NOTE,161,111,75,14
PUSHBUTTON "&Dismiss",IDC_DISMISS,161,129,75,14
END
diff --git a/plugins/NotesAndReminders/src/reminders.cpp b/plugins/NotesAndReminders/src/reminders.cpp index 358ffae815..caec286b2e 100644 --- a/plugins/NotesAndReminders/src/reminders.cpp +++ b/plugins/NotesAndReminders/src/reminders.cpp @@ -1073,14 +1073,14 @@ class CReminderNotifyDlg : public CReminderBaseDlg CCtrlEdit edtText;
CCtrlCheck chkAfter, chkOnDate;
CCtrlCombo cmbRemindAgainIn;
- CCtrlButton btnDismiss, btnNone, btnRemindAgain;
+ CCtrlButton btnDismiss, btnCreateNote, btnRemindAgain;
public:
CReminderNotifyDlg(REMINDERDATA *pReminder) :
CSuper(IDD_NOTIFYREMINDER),
m_pReminder(pReminder),
- btnNone(this, IDC_NONE),
btnDismiss(this, IDC_DISMISS),
+ btnCreateNote(this, IDC_CREATE_NOTE),
btnRemindAgain(this, IDC_REMINDAGAIN),
edtText(this, IDC_REMDATA),
chkAfter(this, IDC_AFTER),
@@ -1094,8 +1094,8 @@ public: cmbRemindAgainIn.OnKillFocus = Callback(this, &CReminderNotifyDlg::onKillFocus_RemindAgain);
- btnNone.OnClick = Callback(this, &CReminderNotifyDlg::onClick_None);
btnDismiss.OnClick = Callback(this, &CReminderNotifyDlg::onClick_Dismiss);
+ btnCreateNote.OnClick = Callback(this, &CReminderNotifyDlg::onClick_None);
btnRemindAgain.OnClick = Callback(this, &CReminderNotifyDlg::onClick_RemindAgain);
}
@@ -1289,7 +1289,7 @@ class CReminderFormDlg : public CReminderBaseDlg CCtrlEdit edtText;
CCtrlCheck chkRepeat;
- CCtrlCombo cmbSound, cmbRepeat;
+ CCtrlCombo cmbSound, cmbRepeatSnd;
CCtrlButton btnAdd, btnView, btnPlaySound;
public:
@@ -1302,7 +1302,7 @@ public: edtText(this, IDC_REMINDER),
chkRepeat(this, IDC_CHECK_REPEAT),
cmbSound(this, IDC_COMBO_SOUND),
- cmbRepeat(this, IDC_COMBO_REPEATSND)
+ cmbRepeatSnd(this, IDC_COMBO_REPEATSND)
{
btnAdd.OnClick = Callback(this, &CReminderFormDlg::onClick_Add);
btnView.OnClick = Callback(this, &CReminderFormDlg::onClick_View);
@@ -1356,32 +1356,32 @@ public: wchar_t *lpszSeconds = TranslateT("Seconds");
// NOTE: use multiples of REMINDER_UPDATE_INTERVAL_SHORT (currently 5 seconds)
- cmbRepeat.AddString(TranslateT("Never"), 0);
+ cmbRepeatSnd.AddString(TranslateT("Never"), 0);
mir_snwprintf(s, L"%s 5 %s", lpszEvery, lpszSeconds);
- cmbRepeat.AddString(s, 5);
+ cmbRepeatSnd.AddString(s, 5);
mir_snwprintf(s, L"%s 10 %s", lpszEvery, lpszSeconds);
- cmbRepeat.AddString(s, 10);
+ cmbRepeatSnd.AddString(s, 10);
mir_snwprintf(s, L"%s 15 %s", lpszEvery, lpszSeconds);
- cmbRepeat.AddString(s, 15);
+ cmbRepeatSnd.AddString(s, 15);
mir_snwprintf(s, L"%s 20 %s", lpszEvery, lpszSeconds);
- cmbRepeat.AddString(s, 20);
+ cmbRepeatSnd.AddString(s, 20);
mir_snwprintf(s, L"%s 30 %s", lpszEvery, lpszSeconds);
- cmbRepeat.AddString(s, 30);
+ cmbRepeatSnd.AddString(s, 30);
mir_snwprintf(s, L"%s 60 %s", lpszEvery, lpszSeconds);
- cmbRepeat.AddString(s, 60);
+ cmbRepeatSnd.AddString(s, 60);
if (m_pReminder && m_pReminder->RepeatSound) {
mir_snwprintf(s, L"%s %d %s", lpszEvery, m_pReminder->RepeatSound, lpszSeconds);
- cmbRepeat.SetText(s);
- cmbRepeat.SetCurSel(cmbRepeat.FindString(s, -1, true));
+ cmbRepeatSnd.SetText(s);
+ cmbRepeatSnd.SetCurSel(cmbRepeatSnd.FindString(s, -1, true));
}
- else cmbRepeat.SetCurSel(0);
+ else cmbRepeatSnd.SetCurSel(0);
// populate sound selection combo
cmbSound.AddString(TranslateT("Default"), 0);
@@ -1400,7 +1400,7 @@ public: if (m_pReminder && m_pReminder->SoundSel) {
btnPlaySound.Enable(m_pReminder->SoundSel >= 0);
- cmbRepeat.Enable(m_pReminder->SoundSel >= 0);
+ cmbRepeatSnd.Enable(m_pReminder->SoundSel >= 0);
}
if (m_pReminder)
@@ -1424,7 +1424,7 @@ public: if (!GetTriggerTime(m_savedLi, Date))
return;
- int RepeatSound = cmbRepeat.GetCurData();
+ int RepeatSound = cmbRepeatSnd.GetCurData();
if (RepeatSound == -1)
RepeatSound = 0;
@@ -1489,7 +1489,7 @@ public: {
int n = cmbSound.GetCurData();
btnPlaySound.Enable(n >= 0);
- cmbRepeat.Enable(n >= 0);
+ cmbRepeatSnd.Enable(n >= 0);
}
};
diff --git a/plugins/NotesAndReminders/src/resource.h b/plugins/NotesAndReminders/src/resource.h index a30504b4ae..851851b473 100644 --- a/plugins/NotesAndReminders/src/resource.h +++ b/plugins/NotesAndReminders/src/resource.h @@ -29,13 +29,10 @@ #define IDC_REMINDAGAININ 1003
#define IDC_AFTER 1004
#define IDC_ONDATE 1005
+#define IDC_CREATE_NOTE 1006
#define IDC_BUTTON_RESET 1007
#define IDC_VIEWREMINDERS 1007
-#define IDC_NONE 1008
-#define IDC_DAILY 1009
#define IDC_CHECK_HIDENOTES 1010
-#define IDC_WEEKLY 1010
-#define IDC_MONTHLY 1011
#define IDC_EDIT_WIDTH 1012
#define IDC_EDIT_HEIGHT 1013
#define IDC_SLIDER_TRANSPARENCY 1014
|