]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/wxCDMProjectsTreeCtrl.cxx
Feature #1711 CreaDevManager application implementation
[crea.git] / lib / creaDevManagerLib / wxCDMProjectsTreeCtrl.cxx
index 2d217184e0f71524b8e139156454f2b908a2b266..d0bbafb67534d17273a5a9bced6ca492631de45e 100755 (executable)
 #include "images/AIcon20.xpm"
 #include "images/ApIcon20.xpm"
 #include "images/BBIcon20.xpm"
+#include "images/BBSIcon20.xpm"
+#include "images/BBGIcon20.xpm"
 #include "images/CIcon20.xpm"
+#include "images/CFIcon20.xpm"
 #include "images/CMIcon20.xpm"
 #include "images/FdIcon20.xpm"
 #include "images/FlIcon20.xpm"
@@ -88,10 +91,13 @@ 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_BBGIcon = images->Add(wxIcon(BBGIcon20));
+  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));
   this->ID_FlIcon = images->Add(wxIcon(FlIcon20));
+  this->ID_CFIcon = images->Add(wxIcon(CFIcon20));
   this->ID_LbIcon = images->Add(wxIcon(LbIcon20));
   this->ID_LIcon = images->Add(wxIcon(LIcon20));
   this->ID_PrIcon = images->Add(wxIcon(PrIcon20));
@@ -210,21 +216,45 @@ int wxCDMProjectsTreeCtrl::GetIconId(modelCDMIProjectTreeNode* node)
                                 }
                               else
                                 {
-                                  element = dynamic_cast<modelCDMFolder*>(node);
+                                  element = dynamic_cast<modelCDMCodeFile*>(node);
                                   if(element != NULL)
                                     {
-                                      return this->ID_FdIcon;
+                                      return this->ID_CFIcon;
                                     }
                                   else
                                     {
-                                      element = dynamic_cast<modelCDMFile*>(node);
+                                      element = dynamic_cast<modelCDMBBSFile*>(node);
                                       if(element != NULL)
                                         {
-                                          return this->ID_FlIcon;
+                                          return this->ID_BBSIcon;
                                         }
                                       else
                                         {
-                                          return this->ID_Cicon;
+                                          element = dynamic_cast<modelCDMBBGFile*>(node);
+                                          if(element != NULL)
+                                            {
+                                              return this->ID_BBGIcon;
+                                            }
+                                          else
+                                            {
+                                              element = dynamic_cast<modelCDMFolder*>(node);
+                                              if(element != NULL)
+                                                {
+                                                  return this->ID_FdIcon;
+                                                }
+                                              else
+                                                {
+                                                  element = dynamic_cast<modelCDMFile*>(node);
+                                                  if(element != NULL)
+                                                    {
+                                                      return this->ID_FlIcon;
+                                                    }
+                                                  else
+                                                    {
+                                                      return this->ID_Cicon;
+                                                    }
+                                                }
+                                            }
                                         }
                                     }
                                 }