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
win32/odthelpbrowser: Created odthelpbrowser VS2015 Express project
[xestiaab/.git]
/
source
/
contacteditor
/
frmContactEditor.cpp
diff --git
a/source/contacteditor/frmContactEditor.cpp
b/source/contacteditor/frmContactEditor.cpp
index
4acb350
..
ad16901
100644
(file)
--- a/
source/contacteditor/frmContactEditor.cpp
+++ b/
source/contacteditor/frmContactEditor.cpp
@@
-65,11
+65,6
@@
#include "../common/uuid.h"
#include "../common/dirs.h"
#include "../common/uuid.h"
#include "../common/dirs.h"
-// TODO: Investigate problems with SFML & PulseAudio - CPU usage problems when
-// not being used.
-
-// Replace intResult with intValueSeek.
-
BEGIN_EVENT_TABLE(frmContactEditor, wxFrame)
EVT_COMMAND(wxID_ANY, wxEVT_COMMAND_BUTTON_CLICKED, frmContactEditor::ContactFileChanged)
END_EVENT_TABLE()
BEGIN_EVENT_TABLE(frmContactEditor, wxFrame)
EVT_COMMAND(wxID_ANY, wxEVT_COMMAND_BUTTON_CLICKED, frmContactEditor::ContactFileChanged)
END_EVENT_TABLE()
@@
-105,6
+100,19
@@
frmContactEditorADT( parent )
}
}
+frmContactEditor::~frmContactEditor()
+{
+
+ if (AudioStreamPlaybackPointer != nullptr)
+ {
+
+ delete AudioStreamPlaybackPointer;
+ AudioStreamPlaybackPointer = nullptr;
+
+ }
+
+}
+
void frmContactEditor::CloseContact( wxCommandEvent& event )
{
void frmContactEditor::CloseContact( wxCommandEvent& event )
{
@@
-159,20
+167,14
@@
void frmContactEditor::SetupContact( wxString AccountName )
}
}
+void frmContactEditor::SetupAccountData(bool UnsupportedAccount){
+
+ boolUnsupportedAccount = UnsupportedAccount;
+
+}
+
int frmContactEditor::GetLastInt(std::map<int, wxString> *MapData){
int frmContactEditor::GetLastInt(std::map<int, wxString> *MapData){
- /*
- int intResult = 0;
-
- std::map<int,wxString>::iterator iwxsit;
-
- for( iwxsit=(*MapData).begin(); iwxsit != (*MapData).end(); iwxsit++){
- intResult = (*iwxsit).first;
- }
-
- return intResult;
- */
-
intValueSeek++;
return intValueSeek;
intValueSeek++;
return intValueSeek;
@@
-180,14
+182,6
@@
int frmContactEditor::GetLastInt(std::map<int, wxString> *MapData){
int frmContactEditor::GetLastInt(std::map<int, std::string> *MapData){
int frmContactEditor::GetLastInt(std::map<int, std::string> *MapData){
- /* int intResult = 0;
-
- std::map<int,std::string>::iterator iwxsit;
-
- for( iwxsit=(*MapData).begin(); iwxsit != (*MapData).end(); iwxsit++){
- intResult = (*iwxsit).first;
- }*/
-
intValueSeek++;
return intValueSeek;
intValueSeek++;
return intValueSeek;
@@
-204,14
+198,14
@@
bool frmContactEditor::GetSelectedItem(wxListCtrl *ListCtrlPtr,
wxLIST_NEXT_ALL,
wxLIST_STATE_SELECTED);
wxLIST_NEXT_ALL,
wxLIST_STATE_SELECTED);
- *intSelectedData = (int)ListCtrlPtr->GetItemData(*longSelected);
-
if (*longSelected == -1){
return FALSE;
if (*longSelected == -1){
return FALSE;
- } else {
- return TRUE;
}
}
+ *intSelectedData = (int)ListCtrlPtr->GetItemData(*longSelected);
+
+ return TRUE;
+
}
void frmContactEditor::DeleteMapDataProcess(int IndexNum, std::map<int, std::string>* MapData){
}
void frmContactEditor::DeleteMapDataProcess(int IndexNum, std::map<int, std::string>* MapData){
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy