-
- // Setup the account icons.
-
- wxMemoryInputStream astream(icons_accinet_png, sizeof(icons_accinet_png));
- wxMemoryInputStream bstream(icons_acclocal_png, sizeof(icons_acclocal_png));
- wxMemoryInputStream cstream(icons_accgroup_png, sizeof(icons_accgroup_png));
- wxMemoryInputStream dstream(icons_accnone_png, sizeof(icons_accnone_png));
-
- wxImage icons_accinet_png(astream, wxBITMAP_TYPE_PNG);
- wxBitmap AccInet(icons_accinet_png, -1);
- wxIcon wxIAccInet;
- wxIAccInet.CopyFromBitmap(AccInet);
-
- wxImage icons_acclocal_png(bstream, wxBITMAP_TYPE_PNG);
- wxBitmap AccNIcon(icons_acclocal_png, -1);
- wxIcon wxIAccNIcon;
- wxIAccNIcon.CopyFromBitmap(AccNIcon);
-
- wxImage icons_accgroup_png(cstream, wxBITMAP_TYPE_PNG);
- wxBitmap AccGrp(icons_accgroup_png, -1);
- wxIcon wxIAccGrp;
- wxIAccGrp.CopyFromBitmap(AccGrp);
-
- wxImage icons_accnone_png(dstream, wxBITMAP_TYPE_PNG);
- wxBitmap AccNone(icons_accnone_png, -1);
- wxIcon wxIAccNone;
- wxIAccNone.CopyFromBitmap(AccNone);
-
- AccountID = AccImgList->Add(wxIAccNIcon);
- AccountNetID = AccImgList->Add(wxIAccInet);
- AccountGrpID = AccImgList->Add(wxIAccGrp);
- AccountNoneID = AccImgList->Add(wxIAccNone);
-
- bmpIcon->SetIcon(AccImgList->GetIcon(AccountNoneID));
-
- // Setup the status bar icons.
-
- // SSL icons.
-
- wxMemoryInputStream sslstream(icons_ssl_png, sizeof(icons_ssl_png));
- wxMemoryInputStream sslwarningstream(icons_sslwarning_png, sizeof(icons_sslwarning_png));
- wxMemoryInputStream nosslstream(icons_nossl_png, sizeof(icons_nossl_png));
-
- wxImage icons_ssl_png(sslstream, wxBITMAP_TYPE_PNG);
- imgSSL = new wxBitmap(icons_ssl_png, -1);
-
- wxImage icons_sslwarning_png(sslwarningstream, wxBITMAP_TYPE_PNG);
- imgSSLWarning = new wxBitmap(icons_sslwarning_png, -1);
-
- wxImage icons_nossl_png(nosslstream, wxBITMAP_TYPE_PNG);
- imgNoSSL = new wxBitmap(icons_nossl_png, -1);
-
- // Activity Icon.
-
- wxMemoryInputStream act1(icons_act1_png, sizeof(icons_act1_png));
- wxMemoryInputStream act2(icons_act2_png, sizeof(icons_act2_png));
- wxMemoryInputStream act3(icons_act3_png, sizeof(icons_act3_png));
- wxMemoryInputStream act4(icons_act4_png, sizeof(icons_act4_png));
- wxMemoryInputStream actsleep(icons_actsleep_png, sizeof(icons_actsleep_png));
-
- wxImage icons_actsleep_png(actsleep, wxBITMAP_TYPE_PNG);
- imgActIconSleep = new wxBitmap (icons_actsleep_png, -1);
-
- wxImage icons_act1_png(act1, wxBITMAP_TYPE_PNG);
- imgActIcon1 = new wxBitmap (icons_act1_png, -1);
- wxIcon wxIAct1icon;
- wxIAct1icon.CopyFromBitmap(*imgActIcon1);
-
- wxImage icons_act2_png(act2, wxBITMAP_TYPE_PNG);
- imgActIcon2 = new wxBitmap (icons_act2_png, -1);
- wxIcon wxIAct2icon;
- wxIAct2icon.CopyFromBitmap(*imgActIcon2);
-
- wxImage icons_act3_png(act3, wxBITMAP_TYPE_PNG);
- imgActIcon3 = new wxBitmap (icons_act3_png, -1);
- wxIcon wxIAct3icon;
- wxIAct3icon.CopyFromBitmap(*imgActIcon3);
-
- wxImage icons_act4_png(act4, wxBITMAP_TYPE_PNG);
- imgActIcon4 = new wxBitmap (icons_act4_png, -1);
- wxIcon wxIAct4icon;
- wxIAct4icon.CopyFromBitmap(*imgActIcon4);
-
- // Online/Offline icons.
-
- wxMemoryInputStream onlinestream(icons_online_png, sizeof(icons_online_png));
- wxMemoryInputStream offlinestream(icons_offline_png, sizeof(icons_offline_png));
-
- wxImage icons_online_png(onlinestream, wxBITMAP_TYPE_PNG);
- imgOnline = new wxBitmap(icons_online_png, -1);
-
- wxImage icons_offline_png(offlinestream, wxBITMAP_TYPE_PNG);
- imgOffline = new wxBitmap(icons_offline_png, -1);
-
- // Setup the account view.
-
- AccCtrl->SetPopupControl(treAccounts);
- AccCtrl->SetPopupMaxHeight(175);
- AccCtrl->SetPopupMinWidth(250);
- treAccounts->AssignImageList(AccImgList);
- //bmpIcon->Hide();
- wxRect AccTextCtrlSize = AccCtrl->GetTextRect();
-
- /*wxStaticBitmap* BeepBoop = new wxStaticBitmap(AccCtrl, wxID_ANY, wxNullBitmap, wxPoint(AccTextCtrlSize.GetX() + 3, AccTextCtrlSize.GetY() + 2), wxDefaultSize, 0);
-
- icons_accgroup_png.SetMask(new wxMask(icons_accgroup_png, wxSystemSettings::GetColour(wxSYS_COLOUR_BACKGROUND)));
-
- BeepBoop->SetBackgroundColour(AccCtrl->GetBackgroundColour());
- BeepBoop->SetBitmap(icons_accgroup_png);*/
-
- //szrContactList->Insert(0, XABV2, 1, wxEXPAND | wxALL, 0);
-
- /*AccControl->UseAltPopupWindow();
- AccControl->SetPopupControl(treAccounts);
- AccControl->SetPopupMaxHeight(175);
-
- treAccounts->AssignImageList(AccImgList);
- szrContactList->Insert(0, AccControl, 1, wxEXPAND|wxALL, 0);
- szrAccList->Add(AccIcon, 0, wxLEFT|wxTOP|wxEXPAND, 3);
-
- */
-
- //szrContactList->Layout();
- //szrContactList->RecalcSizes();
-
- wxListItem ColumnData;
- ColumnData.SetId(0);
- ColumnData.SetText(wxT("Name0"));
- ColumnData.SetWidth(320);
- lstContacts->InsertColumn(0, ColumnData);
-
- //Connect(wxID_ANY, ContactConflictCmdEnv,
- // ContactConflictEventHandler(frmMain::ConflictResolution), NULL, this);
-
- //Connect(wxID_ANY, MyFooCommandEvent,
- // MyFooEventHandler(frmMain::DoSomething), NULL, this);
-
- //Bind(ContactConflictCmdEnv, ContactConflictEventHandler(frmMain::ConflictResolution), this, wxID_ANY);
-
- treAccounts->Connect(wxEVT_LEFT_DCLICK, wxTreeEventHandler(frmMain::LoadContactList), NULL, this);
- treAccounts->Connect(wxEVT_TREE_SEL_CHANGED, wxTreeEventHandler(frmMain::LoadContactList), NULL, this);
-
+
+ // Setup the account icons.
+
+ wxMemoryInputStream astream(icons_accinet_png, sizeof(icons_accinet_png));
+ wxMemoryInputStream bstream(icons_acclocal_png, sizeof(icons_acclocal_png));
+ wxMemoryInputStream cstream(icons_accgroup_png, sizeof(icons_accgroup_png));
+ wxMemoryInputStream dstream(icons_accnone_png, sizeof(icons_accnone_png));
+
+ wxImage icons_accinet_png(astream, wxBITMAP_TYPE_PNG);
+ wxBitmap AccInet(icons_accinet_png, -1);
+ wxIcon wxIAccInet;
+ wxIAccInet.CopyFromBitmap(AccInet);
+
+ wxImage icons_acclocal_png(bstream, wxBITMAP_TYPE_PNG);
+ wxBitmap AccNIcon(icons_acclocal_png, -1);
+ wxIcon wxIAccNIcon;
+ wxIAccNIcon.CopyFromBitmap(AccNIcon);
+
+ wxImage icons_accgroup_png(cstream, wxBITMAP_TYPE_PNG);
+ wxBitmap AccGrp(icons_accgroup_png, -1);
+ wxIcon wxIAccGrp;
+ wxIAccGrp.CopyFromBitmap(AccGrp);
+
+ wxImage icons_accnone_png(dstream, wxBITMAP_TYPE_PNG);
+ wxBitmap AccNone(icons_accnone_png, -1);
+ wxIcon wxIAccNone;
+ wxIAccNone.CopyFromBitmap(AccNone);
+
+ AccountID = AccImgList->Add(wxIAccNIcon);
+ AccountNetID = AccImgList->Add(wxIAccInet);
+ AccountGrpID = AccImgList->Add(wxIAccGrp);
+ AccountNoneID = AccImgList->Add(wxIAccNone);
+
+ bmpIcon->SetIcon(AccImgList->GetIcon(AccountNoneID));
+
+ // Setup the status bar icons.
+
+ // SSL icons.
+
+ wxMemoryInputStream sslstream(icons_ssl_png, sizeof(icons_ssl_png));
+ wxMemoryInputStream sslwarningstream(icons_sslwarning_png, sizeof(icons_sslwarning_png));
+ wxMemoryInputStream nosslstream(icons_nossl_png, sizeof(icons_nossl_png));
+
+ wxImage icons_ssl_png(sslstream, wxBITMAP_TYPE_PNG);
+ imgSSL = new wxBitmap(icons_ssl_png, -1);
+
+ wxImage icons_sslwarning_png(sslwarningstream, wxBITMAP_TYPE_PNG);
+ imgSSLWarning = new wxBitmap(icons_sslwarning_png, -1);
+
+ wxImage icons_nossl_png(nosslstream, wxBITMAP_TYPE_PNG);
+ imgNoSSL = new wxBitmap(icons_nossl_png, -1);
+
+ // Activity Icon.
+
+ wxMemoryInputStream act1(icons_act1_png, sizeof(icons_act1_png));
+ wxMemoryInputStream act2(icons_act2_png, sizeof(icons_act2_png));
+ wxMemoryInputStream act3(icons_act3_png, sizeof(icons_act3_png));
+ wxMemoryInputStream act4(icons_act4_png, sizeof(icons_act4_png));
+ wxMemoryInputStream actsleep(icons_actsleep_png, sizeof(icons_actsleep_png));
+
+ wxImage icons_actsleep_png(actsleep, wxBITMAP_TYPE_PNG);
+ imgActIconSleep = new wxBitmap (icons_actsleep_png, -1);
+
+ wxImage icons_act1_png(act1, wxBITMAP_TYPE_PNG);
+ imgActIcon1 = new wxBitmap (icons_act1_png, -1);
+ wxIcon wxIAct1icon;
+ wxIAct1icon.CopyFromBitmap(*imgActIcon1);
+
+ wxImage icons_act2_png(act2, wxBITMAP_TYPE_PNG);
+ imgActIcon2 = new wxBitmap (icons_act2_png, -1);
+ wxIcon wxIAct2icon;
+ wxIAct2icon.CopyFromBitmap(*imgActIcon2);
+
+ wxImage icons_act3_png(act3, wxBITMAP_TYPE_PNG);
+ imgActIcon3 = new wxBitmap (icons_act3_png, -1);
+ wxIcon wxIAct3icon;
+ wxIAct3icon.CopyFromBitmap(*imgActIcon3);
+
+ wxImage icons_act4_png(act4, wxBITMAP_TYPE_PNG);
+ imgActIcon4 = new wxBitmap (icons_act4_png, -1);
+ wxIcon wxIAct4icon;
+ wxIAct4icon.CopyFromBitmap(*imgActIcon4);
+
+ // Online/Offline icons.
+
+ wxMemoryInputStream onlinestream(icons_online_png, sizeof(icons_online_png));
+ wxMemoryInputStream offlinestream(icons_offline_png, sizeof(icons_offline_png));
+
+ wxImage icons_online_png(onlinestream, wxBITMAP_TYPE_PNG);
+ imgOnline = new wxBitmap(icons_online_png, -1);
+
+ wxImage icons_offline_png(offlinestream, wxBITMAP_TYPE_PNG);
+ imgOffline = new wxBitmap(icons_offline_png, -1);
+
+ // Setup the account view.
+
+ AccCtrl->SetPopupControl(treAccounts);
+ AccCtrl->SetPopupMaxHeight(175);
+ AccCtrl->SetPopupMinWidth(250);
+ treAccounts->AssignImageList(AccImgList);
+ //bmpIcon->Hide();
+
+ /*wxStaticBitmap* BeepBoop = new wxStaticBitmap(AccCtrl, wxID_ANY, wxNullBitmap, wxPoint(AccTextCtrlSize.GetX() + 3, AccTextCtrlSize.GetY() + 2), wxDefaultSize, 0);
+
+ icons_accgroup_png.SetMask(new wxMask(icons_accgroup_png, wxSystemSettings::GetColour(wxSYS_COLOUR_BACKGROUND)));
+
+ BeepBoop->SetBackgroundColour(AccCtrl->GetBackgroundColour());
+ BeepBoop->SetBitmap(icons_accgroup_png);*/
+
+ //szrContactList->Insert(0, XABV2, 1, wxEXPAND | wxALL, 0);
+
+ /*AccControl->UseAltPopupWindow();
+ AccControl->SetPopupControl(treAccounts);
+ AccControl->SetPopupMaxHeight(175);
+
+ treAccounts->AssignImageList(AccImgList);
+ szrContactList->Insert(0, AccControl, 1, wxEXPAND|wxALL, 0);
+ szrAccList->Add(AccIcon, 0, wxLEFT|wxTOP|wxEXPAND, 3);
+
+ */
+
+ //szrContactList->Layout();
+ //szrContactList->RecalcSizes();
+
+ wxListItem ColumnData;
+ ColumnData.SetId(0);
+ ColumnData.SetText(wxT("Name0"));
+ ColumnData.SetWidth(320);
+ lstContacts->InsertColumn(0, ColumnData);
+
+ //Connect(wxID_ANY, ContactConflictCmdEnv,
+ // ContactConflictEventHandler(frmMain::ConflictResolution), NULL, this);
+
+ //Connect(wxID_ANY, MyFooCommandEvent,
+ // MyFooEventHandler(frmMain::DoSomething), NULL, this);
+
+ //Bind(ContactConflictCmdEnv, ContactConflictEventHandler(frmMain::ConflictResolution), this, wxID_ANY);
+
+ treAccounts->Connect(wxEVT_LEFT_DCLICK, wxTreeEventHandler(frmMain::LoadContactList), NULL, this);
+ treAccounts->Connect(wxEVT_TREE_SEL_CHANGED, wxTreeEventHandler(frmMain::LoadContactList), NULL, this);
+