]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/wxCDMProjectsTreeCtrl.cxx
Feature #1711 CreaDevManager application implementation
[crea.git] / lib / creaDevManagerLib / wxCDMProjectsTreeCtrl.cxx
index 653397d83945c412c45a3eb8e3ed9fca755768b0..6007d9434e23ecb5fdaed1a530c366e0338bdabd 100755 (executable)
@@ -44,6 +44,7 @@
 #include "images/AIcon20.xpm"
 #include "images/ApIcon20.xpm"
 #include "images/BBIcon20.xpm"
+#include "images/BBSIcon20.xpm"
 #include "images/CIcon20.xpm"
 #include "images/CFIcon20.xpm"
 #include "images/CMIcon20.xpm"
@@ -89,6 +90,7 @@ bool wxCDMProjectsTreeCtrl::Create(
   this->ID_AIcon = images->Add(wxIcon(AIcon20));
   this->ID_ApIcon = images->Add(wxIcon(ApIcon20));
   this->ID_BBIcon = images->Add(wxIcon(BBIcon20));
+  this->ID_BBSIcon = images->Add(wxIcon(BBSIcon20));
   this->ID_Cicon = images->Add(wxIcon(CIcon20));
   this->ID_CMIcon = images->Add(wxIcon(CMIcon20));
   this->ID_FdIcon = images->Add(wxIcon(FdIcon20));
@@ -219,21 +221,29 @@ int wxCDMProjectsTreeCtrl::GetIconId(modelCDMIProjectTreeNode* node)
                                     }
                                   else
                                     {
-                                      element = dynamic_cast<modelCDMFolder*>(node);
+                                      element = dynamic_cast<modelCDMBBSFile*>(node);
                                       if(element != NULL)
                                         {
-                                          return this->ID_FdIcon;
+                                          return this->ID_BBSIcon;
                                         }
                                       else
                                         {
-                                          element = dynamic_cast<modelCDMFile*>(node);
+                                          element = dynamic_cast<modelCDMFolder*>(node);
                                           if(element != NULL)
                                             {
-                                              return this->ID_FlIcon;
+                                              return this->ID_FdIcon;
                                             }
                                           else
                                             {
-                                              return this->ID_Cicon;
+                                              element = dynamic_cast<modelCDMFile*>(node);
+                                              if(element != NULL)
+                                                {
+                                                  return this->ID_FlIcon;
+                                                }
+                                              else
+                                                {
+                                                  return this->ID_Cicon;
+                                                }
                                             }
                                         }
                                     }