/ide/classes/clsNode.vb

https://code.google.com/p/ajax-beewit-php-ide/ · Visual Basic · 126 lines · 92 code · 11 blank · 23 comment · 0 complexity · 8230fad0fcce91825b7f48c620ca024e MD5 · raw file

  1. ' <summary>
  2. ' BeeWit IDE Entorno de desarrollo Visual para php.
  3. ' BeeWitPHP IDE es el único entorno de desarrollo para PHP
  4. ' de tipo WYSIWYG (What You See Is What You Get).
  5. ' ĄAhora si!, aproveche la potencia del lenguaje PHP
  6. ' y desarrolle más rápidamente gracias a la programación
  7. ' intuitiva de BeeWit.
  8. ' Copyright Š 2010 Dewins Murillo Garcia
  9. ' EMAIL: dewinsmg@gmail.com
  10. ' EMAIL: dewins@beewitsoft.com
  11. ' Este Programa es Software Libre: usted puede redistribuirlo
  12. ' y/o modificarlo bajo los términos de la Licencia Publica General
  13. ' GNU como es publicada por la Fundacion de Software Libre;
  14. ' en la 3ra versión de la licencia.
  15. ' Este programa es distribuido con la esperanza de que sea útil,
  16. ' pero SIN GARANTÍA ALGUNA; sin siquiera la garantía implícita
  17. ' de VALOR COMERCIAL o FORMADO PARA UN PROPÓSITO EN PARTICULAR.
  18. ' Vea la Licencia Publica General GNU para mas detalles.
  19. ' Usted debe haber recibido una copia de la Licencia Publica General
  20. ' GNU junto con este programa. Si no, vaya a http://www.beewitsoft.com
  21. ' o en http://code.google.com/p/ajax-beewit-php-ide/
  22. ' </summary>
  23. ' <remarks></remarks>
  24. Public Class clsNode
  25. Inherits TreeNode
  26. Private _Path As String
  27. Private _ContentCode As String
  28. Private _ContentView As String
  29. Private _Extention As String
  30. Private _TypeCode As TypeCode
  31. Enum enumTypeCode
  32. isCLASS
  33. isCONTROL
  34. isHTML
  35. isPHP
  36. isTXT
  37. isJS
  38. isCSS
  39. isOTHER
  40. End Enum
  41. Property Path()
  42. Get
  43. Return _Path
  44. End Get
  45. Set(ByVal value)
  46. _Path = value
  47. _Extention = value.ToString.Substring(value.ToString.LastIndexOf(".") + 1).ToUpper
  48. _TypeCode = enumTypeCode.isOTHER
  49. If _Extention = "CJX" Then
  50. _TypeCode = enumTypeCode.isCONTROL
  51. End If
  52. If _Extention = "CLS" Then
  53. _TypeCode = enumTypeCode.isCLASS
  54. End If
  55. If _Extention = "PHP" Then
  56. _TypeCode = enumTypeCode.isPHP
  57. End If
  58. If _Extention = "JS" Then
  59. _TypeCode = enumTypeCode.isJS
  60. End If
  61. If _Extention = "CSS" Then
  62. _TypeCode = enumTypeCode.isCSS
  63. End If
  64. If _Extention = "TXT" Then
  65. _TypeCode = enumTypeCode.isTXT
  66. End If
  67. If _Extention = "HTM" Or _Extention = "HTML" Then
  68. _TypeCode = enumTypeCode.isHTML
  69. End If
  70. If _TypeCode <> enumTypeCode.isOTHER Then
  71. _ContentCode = Project_Interfaz.GetContentFile(_Path)
  72. If _TypeCode = enumTypeCode.isCONTROL Then
  73. _ContentView = Project_Interfaz.GetContentFile(_Path & ".view")
  74. End If
  75. If _TypeCode = enumTypeCode.isHTML Then
  76. _ContentView = _ContentCode
  77. End If
  78. End If
  79. End Set
  80. End Property
  81. Property Extention() As String
  82. Get
  83. Return _Extention
  84. End Get
  85. Set(ByVal value As String)
  86. _Extention = value
  87. End Set
  88. End Property
  89. Property TypeCode() As enumTypeCode
  90. Get
  91. Return _TypeCode
  92. End Get
  93. Set(ByVal value As enumTypeCode)
  94. _TypeCode = value
  95. End Set
  96. End Property
  97. Public Sub New()
  98. End Sub
  99. Public Property ContentCode() As String
  100. Get
  101. Return _ContentCode
  102. End Get
  103. Set(ByVal value As String)
  104. _ContentCode = value
  105. End Set
  106. End Property
  107. Public Property ContentView() As String
  108. Get
  109. Return _ContentView
  110. End Get
  111. Set(ByVal value As String)
  112. _ContentView = value
  113. End Set
  114. End Property
  115. End Class