Not Logged In
|
Login
|
Register
Home
|
News
|
Projects
|
Releases
Bugs
|
RFE
|
Repositories
|
Help
projects
/
xestiaab
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
frmContactEditorRelated: Implemented priority control
[xestiaab/.git]
/
source
/
contacteditor
/
frmContactEditorRelated.cpp
diff --git
a/source/contacteditor/frmContactEditorRelated.cpp
b/source/contacteditor/frmContactEditorRelated.cpp
index
6d94ef5
..
03a2e0b
100644
(file)
--- a/
source/contacteditor/frmContactEditorRelated.cpp
+++ b/
source/contacteditor/frmContactEditorRelated.cpp
@@
-29,7
+29,8
@@
frmContactEditorRelatedADT( parent )
// Setup the window.
EditorMode = FALSE;
// Setup the window.
EditorMode = FALSE;
- sliPriority->Disable();
+ priorityCtrl = new XABPriorityCtrl(tabGeneral);
+ szrGeneral->Add(priorityCtrl, 1, wxEXPAND, 5);
// Setup the list of types for the related drop down box.
// Setup the list of types for the related drop down box.
@@
-56,19
+57,6
@@
frmContactEditorRelatedADT( parent )
}
}
-void frmContactEditorRelated::EnablePriority( wxCommandEvent& event )
-{
-
- // Enable/disable the priority setting.
-
- if (chkUsePref->IsChecked()){
- sliPriority->Enable();
- } else {
- sliPriority->Disable();
- }
-
-}
-
void frmContactEditorRelated::SetEditorMode(bool EditMode, SectionType SectType)
{
void frmContactEditorRelated::SetEditorMode(bool EditMode, SectionType SectType)
{
@@
-208,9
+196,8
@@
void frmContactEditorRelated::SetEditorMode(bool EditMode, SectionType SectType)
if (intiter->first == RelatedListIndex && intiter->second > 0 &&
intiter != RelatedListPrefPtr->end()){
if (intiter->first == RelatedListIndex && intiter->second > 0 &&
intiter != RelatedListPrefPtr->end()){
- sliPriority->SetValue(intiter->second);
- sliPriority->Enable();
- chkUsePref->SetValue(TRUE);
+ priorityCtrl->SetValue(intiter->second);
+ priorityCtrl->EnablePriority(true);
}
}
@@
-341,9
+328,9
@@
void frmContactEditorRelated::ProcessData( wxCommandEvent& event )
// Add Related Priority.
// Add Related Priority.
- if (
chkUsePref->Is
Checked()){
+ if (
priorityCtrl->IsPriority
Checked()){
- RelatedListPrefPtr->insert(std::make_pair(RelatedListIndex,
sliPriority
->GetValue()));
+ RelatedListPrefPtr->insert(std::make_pair(RelatedListIndex,
priorityCtrl
->GetValue()));
} else {
} else {
@@
-362,9
+349,9
@@
void frmContactEditorRelated::ProcessData( wxCommandEvent& event )
RelatedListCtrlPtr->SetItem(ListCtrlIndex, 1, txtRelated->GetValue());
RelatedListCtrlPtr->SetItem(ListCtrlIndex, 1, txtRelated->GetValue());
- if (
chkUsePref->Is
Checked()){
+ if (
priorityCtrl->IsPriority
Checked()){
- RelatedListCtrlPtr->SetItem(ListCtrlIndex, 2, wxString::Format(wxT("%i"),
sliPriority
->GetValue()));
+ RelatedListCtrlPtr->SetItem(ListCtrlIndex, 2, wxString::Format(wxT("%i"),
priorityCtrl
->GetValue()));
}
}
@@
-469,9
+456,9
@@
void frmContactEditorRelated::ProcessData( wxCommandEvent& event )
RelatedListPrefPtr->erase(RelatedListIndex);
RelatedListPrefPtr->erase(RelatedListIndex);
- if (
chkUsePref->Is
Checked()){
+ if (
priorityCtrl->IsPriority
Checked()){
- RelatedListPrefPtr->insert(std::make_pair(RelatedListIndex,
sliPriority
->GetValue()));
+ RelatedListPrefPtr->insert(std::make_pair(RelatedListIndex,
priorityCtrl
->GetValue()));
} else {
} else {
@@
-497,9
+484,9
@@
void frmContactEditorRelated::ProcessData( wxCommandEvent& event )
RelatedListCtrlPtr->SetItem(longSelected, 0, cmbType->GetValue());
RelatedListCtrlPtr->SetItem(longSelected, 1, txtRelated->GetValue());
RelatedListCtrlPtr->SetItem(longSelected, 0, cmbType->GetValue());
RelatedListCtrlPtr->SetItem(longSelected, 1, txtRelated->GetValue());
- if (
chkUsePref->Is
Checked()){
+ if (
priorityCtrl->IsPriority
Checked()){
- RelatedListCtrlPtr->SetItem(longSelected, 2, wxString::Format(wxT("%i"),
sliPriority
->GetValue()));
+ RelatedListCtrlPtr->SetItem(longSelected, 2, wxString::Format(wxT("%i"),
priorityCtrl
->GetValue()));
} else {
} else {
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy