Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
camelCase: Converted remaining code that was missed
[xestiacalendar/.git] / source / forms / eventeditor / frmEventEditor.cpp
index 1130c31..79f5831 100644 (file)
@@ -1,3 +1,21 @@
+// frmEventEditor.cpp - frmEventEditor form functions.
+//
+// (c) 2016-2017 Xestia Software Development.
+//
+// This file is part of Xestia Calendar.
+//
+// Xestia Calendar is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by the
+// Free Software Foundation, version 3 of the license.
+//
+// Xestia Calendar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with Xestia Calendar. If not, see <http://www.gnu.org/licenses/>
+
 #include "frmEventEditor.h"
 
 using namespace std;
@@ -188,11 +206,11 @@ void frmEventEditor::SaveContact(){
        
        // Set the data into the calendar event object.
                
-       eventData.SummaryData = txtEventName->GetValue().ToStdString();
-       eventData.DescriptionList.push_back(txtEventDescription->GetValue().ToStdString());
-       eventData.DescriptionListAltRep.push_back("");
-       eventData.DescriptionListLanguage.push_back("");
-       eventData.DescriptionListTokens.push_back("");
+       eventData.summaryData = txtEventName->GetValue().ToStdString();
+       eventData.descriptionList.push_back(txtEventDescription->GetValue().ToStdString());
+       eventData.descriptionListAltRep.push_back("");
+       eventData.descriptionListLanguage.push_back("");
+       eventData.descriptionListTokens.push_back("");
                
        stringstream stringData;
                
@@ -204,8 +222,8 @@ void frmEventEditor::SaveContact(){
        stringData << txtStartTime->GetValue().ToStdString().substr(3, 2).c_str();
        stringData << "00Z";
 
-       eventData.DateTimeStartData = stringData.str();
-       eventData.DateTimeStampData = stringData.str();
+       eventData.dateTimeStartData = stringData.str();
+       eventData.dateTimeStampData = stringData.str();
                
        stringData.str("");
                
@@ -217,7 +235,7 @@ void frmEventEditor::SaveContact(){
        stringData << txtEndTime->GetValue().ToStdString().substr(3, 2).c_str();
        stringData << "00Z";    
 
-       eventData.DateTimeEndData = stringData.str();
+       eventData.dateTimeEndData = stringData.str();
        
        // TODO: Implement Duration.
        
@@ -246,7 +264,7 @@ void frmEventEditor::SaveContact(){
                eventFile += NewUUID;
                eventFile += ".ics";
 
-               eventData.UniqueID = NewUUID;
+               eventData.uniqueID = NewUUID;
 
                // Write the file.
 
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy