Documentos de Académico
Documentos de Profesional
Documentos de Cultura
GRÁFICO
TESIS DE GRADO
2013
I
REPOSITORIO NACIONAL EN CIENCIAS Y TECNOLOGÍA
TÍTULO “interfaces gráficas para desarrollo de aplicaciones java en BlackBerry, complejidad del desarrollo y
propuesta de ambiente de desarrollo grafico.”
REVISORES:
PALABRAS CLAVES: desarrollo móvil, complejidad de desarrollo , lenguaje java, IDE gráfico, optimización de programación
RESUMEN: Para el desarrollo de aplicaciones móviles se generó la aplicación que facilita una interface gráfica que permitirá
manipular los diferentes elementos de la aplicación móvil y facilitando el desarrollo de los mismos, permite generar una solución
que se importa en el ambiente de eclipse, y una vez en este ambiente se facilita la publicación.
N° DE REGISTRO(en base de datos): N° DE CLASIFICACIÓN:
Nº
DIRECCIÓN URL (tesis en la web):
ADJUNTO PDF SI NO
X
0997450851 hector.pilligua.hwpr@gmail.com
II
APROBACIÓN DEL TUTOR
que luego de haber orientado, estudiado y revisado, la apruebo en todas sus partes.
Atentamente
………………………………….
Ing. David Benavides
TUTOR
III
CERTIFICACIÓN DE GRAMATÓLOGO
William Pilligua Robalino. Cuyo tema es: Interfaces gráficas para desarrollo de
ATENTAMENTE,
IV
DEDICATORIA
El presente trabajo lo dedico a todas las personas que han hecho posible que se
pueda realizar así como a todos lo que han estado conmigo de manera directa e
V
AGRADECIMIENTO
personales pero ellos y ellas siempre estaban ahí para darme ánimos y
fuerzas
VI
TRIBUNAL DE GRADO
VII
UNIVERSIDAD DE GUAYAQUIL
GRAFICO
Proyecto de trabajo de grado que se presenta como requisito para optar por el
C.I. 092261482-1
VIII
CERTIFICADO DE ACEPTACIÓN DEL TUTOR
CERTIFICO:
Presentado por:
IX
UNIVERSIDAD DE GUAYAQUIL
FACULTAD DE CIENCIAS MATEMÁTICAS Y FÍSICAS
CARRERA DE INGENIERÍA EN SISTEMAS
COMPUTACIONALES
1. Identificación de la Tesis
gráfico.
Publicación electrónica:
Firma Alumno:
3. Forma de envío:
El texto de la Tesis debe ser enviado en formato Word, como archivo .Doc. o
.RTF y .Pdf para PC. Las imágenes que la acompañen pueden ser: .gif, .jpg o .tiff.
X
DVDROM x CDROM
ÍNDICE GENERAL
XI
Connected Limited Device Configuration (CLDC) 40-41
Connected Device Configuration (CDC) 41-42
CVM 42-43
RIM 43-44
NET_RIM_API 44
LENGUAJE DE PROGRAMACION 44-45
Programación Imperativa 44
Lenguaje Imperativo 44
Programación Declarativa 45
LENGUAJE MAQUINA 46
APLICACIONES 46-47
Aplicaciones de Negocio 46
Aplicaciones de Utilería 47
Aplicaciones de entretenimiento 47
INTERFACES GRÁFICAS 47-54
Metáforas 55-60
Java 61
ByteCode 61-65
JRE 65
J2SE 66
J2EE 66-67
J2ME 67-68
JDBC 68-69
JMS 70-79
JavaBeans 80-81
JavaScript 81-82
Servlet 82
PLATAFORMA .NET 83-84
BIBLIOTECAS DE CLASES .NET 84
COM 84
Common Language Runtime (CLR) 84-89
Microsoft Intermediate Language (MSIL) 90-92
Lenguaje de Programación C# 93-95
BLACKBERRY 96-98
Ambiente de Desarrollo Grafico 98
El Estándar de Calidad ISO 9001 99-100
Factores de calidad ISO 9126 100-104
Desarrollo de Widgets para Dispositivos BlackBerry 104
FUNDAMENTACIÓN LEGAL 105-106
Preguntas a Contestarse 106
Variables de la Investigación 106-107
DEFINICIONES CONCEPTUALES 107
CAPÍTULO III – METODOLOGÍA 108-144
XII
Diseño de la investigación 109
Modalidad de la investigación 109-110
Población y muestra 110-113
Tamaño de la muestra 113-116
Operacionalización de las variables 116-118
Instrumentos de recolección de datos 119-124
Procedimientos de la Investigación 124-126
Recolección de la Información 126
Procesamiento y análisis 127-139
Criterios para la elaboración de la propuesta 140
Criterios para la validación de la propuesta 140-144
CAPÍTULO IV – MARCO ADMINISTRATIVO 145-147
Cronograma 145-146
Presupuesto 146-147
CAPÍTULO V – CONCLUSIÓN Y RECOMENDACIÓN 148-151
Conclusiones 148-149
Recomendaciones 149-151
BIBLIOGRAFÍA 151-152
ANEXOS
XIII
ÍNDICE DE CUADROS
Pág.
Cuadro N° 1 111
Cuadro de Población
Cuadro N° 2 112
Población Aproximada 1
Cuadro N° 3 113
Población Aproximada 2
Cuadro N° 4 114
Población Aproximada 3
Cuadro N° 1 115
Cuadro Población 4
Cuadro N° 5 117
Matriz de operacionalización de variables
Cuadro N° 6 127
Condición del informante
Cuadro N° 7 129
Utiliza Dispositivos BlackBerry
Cuadro N° 8 130
Adaptación a Nuevas Herramientas
Cuadro N° 9 132
Lenguaje de Programación más Utilizados
Cuadro N° 10 134
Desarrollo de Aplicaciones con tecnología J2ME
Cuadro N° 11 135
Conocimiento de Herramientas para Desarrollo de Aplicaciones
para Dispositivos Móviles
Cuadro N° 12 136
Uso de IDE Grafico para Desarrollo de Aplicaciones
Cuadro N° 14 137
Desarrollos Frecuentes de Sistemas Informáticos
Cuadro N° 13 138
Sistemas Operativos Móviles
XIII
Cuadro N° 15 139
Sistemas Herramientas de Programación más Utilizadas para
Desarrollo de Aplicativos Móviles
Cuadro N° 16 143
Valoración de las Preguntas por los Expertos
Cuadro N° 17 147
Proyección Inicio del Negocio
XIV
ÍNDICE DE GRÁFICOS
Pág.
Gráfico N° 1 38
Java 2 Micro Edition
Gráfico Nº 2 41
Preverificación de Clases en CDLC/KVM.
Gráfico N°3 42
Relaciones APIs de Java.
Gráfico Nº 4 48
Interfaces Graficas.
Gráfico Nº 5 55
Metáfora.
Gráfico Nº 6 79
Aplicaciones.
Gráfico Nº 7 80
Applets.
Gráfico Nº 8 81
JavaBean.
Gráfico Nº 9 82
JavaScritp
Gráfico Nº 10 82
Servlets
Gráfico Nº 11 96
BlackBerry
Gráfico Nº 12 127
Condición del Informante.
Gráfico Nº 13 129
Uso de Dispositivos BlackBerry.
Gráfico Nº 14 130
Adaptación a Nuevas Herramientas.
XV
Gráfico Nº 15 132
Lenguaje de Programación más Utilizados.
Gráfico Nº 16 134
Desarrollo de Aplicaciones con tecnología J2ME.
Gráfico Nº 17 135
Conocimiento de Herramientas para Desarrollo de
Aplicaciones para Dispositivos Móviles.
Gráfico Nº 18 136
Uso de IDE para Desarrollo de Aplicaciones.
Gráfico Nº 19 137
Desarrollos Frecuentes de Sistemas Informáticos.
Gráfico Nº 20 138
Sistemas Operativos Móviles.
Gráfico Nº 21 139
Herramientas de Programación más Utilizadas para Desarrollo
de Aplicativos Móviles.
XVI
ANEXOS
Anexo N° 1 155
FLUJO DE PROCESOS
Anexo Nº 2 156
ENCUESTA PARA SELECCIÓN DE EXPERTOS
Anexo N°3 158
DETERMINACIÓN DEL COEFICIENTE K
Anexo Nº 4 159
ENCUESTA A LOS EXPERTOS SELECCIONADOS
Anexo Nº 5 160
CRITERIOS DE LOS EXPERTOS CONSULTADOS.
MATRIZ DE FRECUENCIAS DE LA ENCUESTA
Anexo Nº 6 161
IMAGEN DE CADA UNO DE LOS VALORES DE LAS
CELDAS DE LA TABLA DE FRECUENCIAS
ACUMULATIVAS RELATIVAS, POR LA INVERSA DE
LA CURVA NORMAL
Tabla 5. IMAGEN DE CADA UNO DE LOS VALORES
Anexo Nº 7 162
.Encuesta
XVII
UNIVERSIDAD DE GUAYAQUIL
FACULTAD DE CIENCIAS MATEMÁTICAS Y FÍSICAS
GRÁFICO
RESUMEN
XVIII
UNIVERSIDAD DE GUAYAQUIL
FACULTAD DE CIENCIAS MATEMÁTICAS Y FÍSICAS
GRÁFICO
ABSTRACT
XIX
ABREVIATURAS
ASP Application Service Providers
CLR Common Language Runtime
MSIL Microsoft Intermediate Language
RIM Research In Motion
RIM Research In Motion
CLR Common Language Runtime
MSIL Microsoft Intermediate Language
CLDC Connected Limited Device Configuration
CDC Connected Device Configuration
KVM Kilobyte Virtual Machine
JNI Java Native interface
CVM Compact Virtual Machine
GUI Graphical User Interface
JVM Máquina Virtual de Java
J2SE Java Platform, Standard Edition o Java SE
J2EE Java Platform, Enterprise Edition o Java EE
J2ME Java 2 Micro Edition
API Interfaces de Programación de Aplicaciones
JDBC Java Data Base Connectivity
RMI Java Remote Method Invocation
JMS Java Message Service
XX
INTRODUCCIÓN
sistema operativo propiamente dicho, esto se presentó como un sistema batch que
temporales.
En los años 70 aparecen los sistemas Atlas y OS/360, lo cual dio paso al
tenemos como prevalencia C++. Eiffel, Haskell y Miranda. En esta época también
1
En la década de los 80 empezó el auge de los computadores personales, las cuales
menues,
lenguajes de alto nivel, como por ejemplo visual estudio que ofrece interfaces de
dispositivos móviles, así como por ejemplo tenemos las computadoras portátiles,
web, Smartphone, consolas de videojuegos, entre otros. Esto ha dado lugar a que
lo cual demanda un gran conocimiento del lenguaje que se está utilizando para el
2
desarrollo de aplicaciones, en vista de esto se desarrollaron herramientas que
interfaces de usuarios, así como el brindar ayudas en el desarrollo del código, esto
para los diferentes equipos móviles, brindando una especie de inteligencia a los
cuales facilitan el trabajo a los propietarios, entre los cuales sobresalen, Android,
los avances tecnológicos se han ido implementando nuevos alcances a los equipos
3
último, debido al desarrollo de la tecnología se ha visto un notable crecimiento en
Los primeros pioneros que brindaron un equipo que ofrecía varios procesos en
comenzando por el año 1998 con aplicaciones para los PDA los cuales eran
web también ha tenido buena acogida entre los diferentes dispositivos móviles sin
fecha, esto se debe a que java permite un lenguaje de alto nivel de fácil adaptación
para el desarrollador.
4
A pesar de los avances en los diferentes lenguajes de programación, el desarrollo
estos programas, así como plugins, sin embargo, la complejidad del desarrollo de
interfaces gráficas, así como manipular las diferentes propiedades los objetos
de las interfaces gráficas para los diferentes aplicativos que se desee crear para el
dispositivo móvil.
5
Brinda la generación de la solución a ser importada en el aplicativo eclipse, esto
cantidad de errores que se hayan generado por la manipulación de las clases por
agregados en la pantalla del móvil, así como las acciones que el usuario haya
6
El módulo de generación de solución se encarga de recolectar las clases
generadas, desarrollar los archivos necesarios y copiar los recursos agregados para
este interpretara el programa generado, así como las clases que se han creado y
continuación.
7
realizará la investigación, estableciendo los instrumentos de recolección de los
funcionalidad.
En el quinto capítulo muestra las conclusiones una vez realizado el análisis, de las
8
UNIVERSIDAD DE GUAYAQUIL
Tesis de grado que se presenta como requisito para optar por el título de
C.I.: 0922614821
David Benavides
TUTOR
9
CAPÍTULO I
EL PROBLEMA
entre ellos se encuentran ADA, Basic, C, C#, Cobol, Fortran, Java, MatLab, LISP,
Pascal, PHP, Perl, Phyton, Bash Script, JavaScript, ASP, todos estos lenguajes
servidores, en el año 1995 se vio una nueva oportunidad con los dispositivos
móviles, con el pasar de los tiempos ha ido mejorando la tecnología móvil y con
esto produjo que hayan más requerimientos por parte de los usuarios (dueño de
equipo móvil).
personalizar las aplicaciones para las diferentes demandas que se presentaban por
partes de los dueños de los equipos, esto fomento en gran cantidad el desarrollo de
10
algunas empresas de desarrollo de sistemas a inclinarse por esta tecnología para
administrativos.
hay la suficiente información disponible en las redes sociales, foros, así también
móviles es Netbeans, que ofrece un entorno tanto gráfico con por líneas de
cuenta con un plugin que permite crear aplicaciones para los dispositivos
el dispositivo móvil, esta herramienta no cuenta con una interfaz gráfica que
11
El lenguaje de visual estudio no cuenta con un plugin o alguna librería que
cuente con sistemas operativos soportados pos Microsoft, por ejemplo los
labor tediosa, lo cual genera en los clientes una inconformidad por el producto
La tecnología móvil es una nueva área en comparación con las otras tecnologías
existentes motivo por el cual no hay las suficientes herramientas que faciliten su
12
Variable Independiente:
Variables dependientes:
BlackBerry
es un editor propio de BlackBerry, este programa permite trabajar con los objetos
de la aplicación para los dispositivos móviles pero no a nivel gráfico sino a nivel
de código. También se tienen los plugin para eclipse que permiten crear
aplicaciones para los dispositivos móviles, con la única restrictiva que no facilita
13
recursos del dispositivo haciendo la aplicación no satisfactoria en un porcentaje
considerable.
interface de usuario para lo cual debe de pasar varias horas frente al computador
por realizar una nueva hoja de código fuente para no dañar la lógica ingresada y
así tener una interfaz más acorde a lo deseado, esto causa perdida de tiempo en el
desarrollo de un programa.
Causas:
14
Pocos conocimientos de los eventos que se ejecutan así como las
para BlackBerry.
para los diferentes dispositivos pero para java RIM no se ofrece una
de sistemas.
móviles.
para su análisis.
15
Consecuencias:
crear.
elementos.
manera amigable.
16
En la actualidad son muy pocos las instituciones que brindan cursos
desarrollador.
tecnología móvil.
Formulación de Problema.
siguiente problema
17
Evaluación del Problema
Actualmente al desarrollar una aplicación para java RIM solo se lo puede hacer
digitando líneas de código aun así solo tengamos que realizar una ventana de
java RIM para BlackBerry, entre estas tenemos las herramientas de java Research
In Motion, Plug-in para Eclipse Galileo, ambos programas solo brindan la una
programa, por lo cual no se tiene una visión del front-end, para ver estas
producto final.
dispositivos móviles) que se crean para los dispositivos móviles, esto implica que
una manera diferente donde las aplicaciones MDIlet no son suficientes para
cumplir con una tarea asignada o para realizar el uso correcto del dispositivo
18
Relevante: En lo que se refiere a dispositivos inteligente en la actualidad
aplicaciones MDIlet.
java RIM para dispositivos BlackBerry, para ello se desarrolla el código java
Factible: El desarrollo de una aplicación java RIM para BlackBerry exige una
entorno de diseño que permita usar de manera ágil y precisa los diferentes
RIM para equipos BlackBerry, así también se busca disminuir la complejidad del
19
código facilitando el desarrollo de los programas y manipular las diferentes
móvil.
Variable:
Independiente:
costos.
Dependientes:
experiencia en este ambiente, lo cual hace que haya poco conocimiento de las
BlackBerry
Desarrollar un binario para que pueda ser cargado en los dispositivos BlackBerry
20
Objetivos de la investigación:
Objetivos Generales:
Objetivos Específicos:
dispositivo móvil.
BlackBerry.
21
Provee de una herramienta amigable e intuitiva para el desarrollo de
Alcances
GUI que puede tener una aplicación java RIM para BlackBerry. Entre los
Etiqueta.
Caja de Selección.
Botón de Opción.
Botón de acción.
Lista de texto.
Lista numérica.
Texto de edición.
22
Texto auto completar.
Texto de contraseña.
Texto de fecha.
Campo web.
Campo imagen.
Campo mapa.
aplicaciones.
este novato o sénior el desarrollo del código de aplicaciones java RIM para
dispositivos BlackBerry.
reconocimiento intuitivo.
23
Permitir la modificación del código generado por el desarrollador para
funcionalidades.
aplicación final.
desarrollo de eclipse
BlackBerry.
24
Se determinó que el estudio está orientado al ámbito de las personas que
25
defecto que esta precargado en el aplicativo, en este módulo también se genera
En este módulo se muestra la interfaz gráfica que así como los objetos que
imágenes que se utilizaran en este módulo serán copiadas para el uso posterior
en el dispositivo BlackBerry.
una clase java que representa una pantalla en el dispositivo BlackBerry, así se
los mismos.
26
Módulo Generación Final de Solución para Eclipse
aplicativo.
Justificación e Importancia
Hace tiempo atrás las aplicaciones para dispositivos móviles eran desarrolladas
por las empresas propietarias de los mismos, dejando que estos sistemas sean solo
para funciones básicas de uso del cliente sin la opción de poder optimizar ese
código.
con la tecnología del open source así como Java y C++, esto ha facilitado que la
27
Con la aparición de netbeans se pudo implementar el desarrollo de las
la interfaz de usuario, esto causaba una reingeniería en el entorno gráfico cada vez
aplicaciones que se ajusten a los requerimientos de los dueños así como el utilizar
los Smartphone.
Android, Windows Mobile, Java RIM, J2ME, IOS. El lenguaje Simba estaba
aplicar con este sistema operativo se encontraba en netbeans, con el pasar del
tiempo este sistema operativo móvil ha sido desplazado por los otros.
28
El lenguaje Java RIM es propio de los equipos BlackBerry, se ejecuta sobre la
tecnología J2ME, pero con más atributos, eventos y objetos que se encuentran en
un dispositivo BlackBerry.
monedas, sistemas de redes sociales, etc... Todos estos sistemas buscan sacar el
por el poco conocimiento de código fuente, los eventos que se generan en las
adicionales, librerías, sitios web, etc., en el caso de conocer el código y los objetos
se hace tediosa la tarea de desarrollo de entorno gráfico para el gusto del usuario.
El desarrollo de las interfaces gráficas para los dispositivos BlackBerry hace que
29
el desarrollo de los sistemas para estos equipos se haga una labor tediosa y en su
mayoría les resta tiempo al desarrollador y logra dejar la lógica en segundo plano.
para Smartphone de manera más dinámica y así se podrán optimizar los recursos y
los desarrolladores de sistemas así como a las empresas que venden sistemas
organización lineal que posee los objetos en los dispositivos BlackBerry, ya que
colocar varios objetos para obtener una solución amigable a primera vista.
30
A nivel educativo se benefician los estudiantes ya que con el avance de la
escritorios sino también para los dispositivos móviles que la mayoría se ejecutan
A nivel profesional permite tener los objetos de las aplicaciones de una manera
31
CAPÍTULO II
MARCO TEÓRICO
los mismos.
En año 1998 se dio a conocer NetBeans que en conjunto con Visual Studio que
permite interactuar con los objetos gráficos de los GUIs de manera amigable, las
IPhone y Android.
entorno de desarrollo integrado (IDE) para Java parecido a Delphi. Xelfi fue el
32
El plan original era desarrollar unos componentes JavaBeans para redes. Jarda
tenía sentido competir contra él, sin embargo permaneció el nombre de NetBeans.
Las mejoras de rendimiento que llegaron con el JDK 1.3, lanzado en otoño de
la forma de funcionar del IDE, con nuevos sistemas de proyectos, con el cambio
33
Con Netbeans 6.01, 6.8 y ahora en su versión mejorada 7.0 Se dio soporte a
aplicaciones usando el NetBeans core runtime con sus propios plug-ins, de hecho,
del sistema visual Age de IBM. Eclipse cuenta con un editor de texto con
unitarias JUnit,
Plataforma Inicial
Manejo de Archivo
Manejo de Texto
Vistas
Editores
Asistentes y perspectiva.
34
Visual Studio es un IDE que soporta varios lenguajes de programación entre ellos
se encuentran Visual C++, Visual C#, Visual J#, ASP.NET, y Visual Basic .NET,
lenguajes así como el lenguaje nativo de Kinect para desarrollo de sensores, etc.
La versión Original de BASIC fue creada en el año de 1964, esta aplicación gano
visual .net se empezó a manejar más orientado a objetos, así mismo también se
permite el uso de servicios web así como ambiente web en las aplicaciones de
Visual Basic.NET.
productividad.
35
“El futuro de .net está ligado al futuro de Windows, y este a
su vez está ligado a de sus usuarios, a cuántos comprarán el
móvil, Tablet, ultra portátil” (Juan Quijano)
De acuerdo con los estudios realizados las aplicaciones existentes que son RIM de
dispositivos java, pero en estos casos no se brinda una interfaz gráfica para el
FUNDAMENTACIÓN TEÓRICA
Java J2ME
36
reproductores blue-ray, dispositivos multimedia, entre otros, debido a la
mercado actual.
por ello esta tecnología trabaja con las diferentes conectividad móviles.
Java Micro Edición es una nueva versión de la máquina virtual de java que puede
necesidades de los usuarios de telefonía móvil así como las compañías que
GRÁFICO No. 1
Java 2 micro Edition
37
Fuente. Java a Tope. J2ME de Sergio Gálvez Rojas y Lucas Ortegas Díaz
Elaborado Por: Java a Tope. J2ME de Sergio Gálvez Rojas y Lucas Ortegas Díaz
Un punto importante es que Java Micro Edition contiene una mínima parte de los
APIs de Java, esto es debido a que las APIs de java ocupa 20 MB, y los
virtual que utiliza J2ME no es la clásica JVM (Java Virtual machine), esta es
KVM
solo unos kilobytes de memoria dinámica para ejecutar con eficiencia, por este
38
dinámica, la máquina virtual K ofrece una alta portabilidad que reduce las
La desventaja que se presenta con la KVM es que debido al uso bajo de memoria,
memoria
nivel.
39
Configuraciones. Que son un conjunto de clases básicas orientadas a
Es una especificación de un marco para las aplicaciones Java Micro Edition que
virtual que deben estar presentes en una aplicación. La Connected Limited Device
Configuration se combina con uno o varios perfiles para dar a los desarrolladores
GRÁFICO No. 2
Pre verificación de Clases en CDLC/KVM
Fuente: Java a Tope. J2ME de Sergio Gálvez Rojas y Lucas Ortegas Díaz
Elaborado Por: Java a Tope. J2ME de Sergio Gálvez Rojas y Lucas Ortegas Díaz
40
Esta es una especificación realizada por Sun dentro del conjunto de tecnologías
para computación móvil conocido como J2ME (Java 2 Mobile Edition). Define
las capacidades básicas que debe tener un dispositivo móvil con capacidad de
PDA, con cierta capacidad como un sistema de navegación GPS para automóvil,
GRÁFICO No 3.
Relaciones APIs de Java.
Fuente: Java a Tope. J2ME de Sergio Gálvez Rojas y Lucas Ortegas Díaz
Elaborado Por: Java a Tope. J2ME de Sergio Gálvez Rojas y Lucas Ortegas Díaz
CVM
soporta las mismas características que la máquina virtual para de J2SE, está
las diferentes características que se presenta con esta máquina virtual tenemos:
41
Portabilidad.
Sincronización veloz.
Librerías de seguridad.
RIM
Canadienses de Capitales.
En sus comienzos RIM era conocida como RAM Mobile Data y en compañía con
42
y CDMA, con el mejoramiento de la tecnología también se fueron incluyendo
lenguajes C++ y java, estas librerías son un conjunto de componentes que junto.
NET_RIM_API
LENGUAJE DE PROGRAMACIÓN
43
precisión. Un lenguaje de programación contiene reglas sintácticas y semánticas
y declarativas.
Programación Imperativa
Lenguaje Imperativo.
el estado.
Programación Declarativa
44
ecuaciones o transformaciones que describen el problema y detallan su solución,
El software de aplicación es aquel que realiza una tarea determinada, este software
la cual sea creada, así como por ejemplo, tareas de negocios, utilerías, personales,
entre otros.
LENGUAJE MAQUINA
código binario. Este lenguaje está compuesto por un conjunto de instrucciones que
45
determinan acciones a ser tomadas por la máquina. Estas instrucciones son
APLICACIONES
Aplicaciones de Negocio.
Aplicaciones de Utilería.
Aplicaciones Personales.
Aplicaciones de Entretenimiento.
que brindan las facilidades de obtener reportes, realizar cálculos, documentar, etc.
sistemas de bases de datos y graficado res, el ejemplo más común que podemos
GNU
46
Windows así como por ejemplo tenemos, el teclado, pantalla compartida, ventana
control de sus actividades, así como tener una organización de sus tareas ,
información valiosa.
educación.
GRÁFICO No. 4
INTERFACES GRÁFICAS
47
Fuentes: http://www.hipertexto.info/documentos/interfaz.htm
Elaboración http://www.hipertexto.info/documentos/interfaz.htm
Menú
Ventana
Teclado
Ratón
48
Interfaz de hardware.- Son las interfaces de entrada y salida, aquí encontramos
puertos seriales, puertos paralelos, USB, tarjeta para los buses ISA y PCI, tarjeta
Interfaz de Software.- Es la que procesa los datos que el usuario requiera entre
las interfaces de línea de comandos que se usaban para operar los primeros
Una interfaz es un dispositivo que permite comunicar dos sistemas que no hablan
comunicación entre dos sistemas, sin embargo, cuando hablamos de interfaz nos
referimos a la cara visible de los programas tal y como se presenta a los usuarios
49
para que interactúen con la máquina. La interfaz gráfica implica la presencia de un
monitor de ordenador o pantalla constituida por una serie de menús e iconos que
representan las opciones que el usuario puede tomar dentro del sistema.
(fondo)
inmediatos
Para diseñar una buena interfaz enfocada hacia el usuario es necesario tener claros
ofreciendo información, sino las necesidades que van a tener los usuarios a la hora
50
de consultarlo. También es clave determinar el contenido y la funcionalidad,
de búsqueda.
Hay que tener en cuenta que cada usuario puede tener diferentes necesidades y un
buen sistema de navegación debe contar con las herramientas adecuadas para
los usuarios. A menudo se usa la metáfora del viaje o del camino a recorrer y se
presentan iconos o símbolos de interfaz y otros dispositivos que tienen que ver
Un buen hipertexto debe suministrar herramientas de uso sencillo y fácil para que
el usuario sepa en todo momento en dónde se encuentra y hacia dónde puede ir, y
herramientas para que pueda realizar una serie de acciones como búsquedas,
51
Herramientas de representación de la estructura de la información
gráfica el conjunto de la red hipertextual. Para ello, son muy útiles los
nodos dentro de una red en la que una idea lleva a otra y está a otra
directo.
52
Herramientas que permitan la creación de un histórico de
poder así volver en cualquier momento, sobre algún paso del camino
recorrido.
partir de las propias acciones del usuario, que pueden contar con la ayuda
de agentes inteligentes.
53
Mecanismos de búsqueda y recuperación de la información
mecanismos;
hagan posible esta labor. La presentación de resultados puede ser muy variada: el
y modelos del mundo real, con los cuales los usuarios estén familiarizados, para
54
tarjetas o fichas, o el dibujo de páginas para representar documentos, el uso de
para la ayuda, el buzón o la carta para el correo electrónico, la casa para la página
principal o de inicio, una puerta para la salida, etc. han sido y son algunas de las
GRÁFICO No. 5
Metáforas
Fuente: http://www.hipertexto.info
Elaborado Por: http://www.hipertexto.info
mejor medio para que el administrador del sistema pueda llevar a cabo tareas
complejas
55
Además, no todo se puede hacer a través de la interfaz gráfica: hay ciertas
El diseño de la interfaz es crítico para el manejo del equipo: hay algunas muy bien
Desarrollo de Aplicaciones.
•Análisis.
•Diseño.
•Codificación-construcción.
•Implantación-explotación.
•Mantenimiento.
Análisis.
procesos y estructuras de datos que se van a emplear. Debe existir una gran
56
En el caso de falta de información por parte del usuario se puede recurrir al
Diccionario de datos: Sirven para describir todos los objetos utilizados en los
Al final de esta fase tenemos que tener claro las especificaciones de la aplicación.
Diseño
En esta fase se alcanza con mayor precisión una solución óptima de la aplicación,
teniendo en cuenta los recursos físicos del sistema y los recursos lógicos. (Sistema
(Pantalla y listados)
57
Diseño modular: Es una técnica de representación en la que se refleja de forma
codificación.
Desarrollo
Pruebas unitarias: Sirven para comprobar que cada módulo realice bien
su tarea.
58
Implementación
nuevo sistema y su uso. Así como facilitarle toda la documentación necesaria para
una correcta explotación del sistema (manual técnico, manual de usuario, etc.)
Mantenimiento.
Tipos de mantenimiento:
59
Mantenimiento perfectivo: Consiste en una mejora sustancial de la aplicación
debiendo proceder de nuevo al desarrollo de cada una de sus fases para obtener un
nuevo producto.
Java.
60
ByteCode
máquina.
una longitud de un byte, si bien la longitud del código de las instrucciones varía.
parámetros tales como los registros o las direcciones de memoria. Esta sería la
Máquina Virtual
principio fue definido como "un duplicado eficiente y aislado de una máquina
Una característica esencial de las máquinas virtuales es que los procesos que
ejecutan están limitados por los recursos y abstracciones proporcionados por ellas.
61
Máquinas Virtuales de Sistemas.
máquina virtual de Java. Otra máquina virtual muy conocida es la del entorno .Net
62
Máquina Virtual Java
Una Máquina virtual Java (en inglés Java Virtual Machine, JVM) es un máquina
código máquina de bajo nivel, viable incluso como lenguaje de entrada para un
microprocesador físico. Como todas las piezas del rompecabezas Java, fue
escribe una aplicación Java, se hace pensando que será ejecutada en una máquina
virtual Java en concreto, siendo ésta la que en última instancia convierte de código
manera que desde Sun Microsystems se han creado diferentes máquinas virtuales
63
dicha máquina virtual para dichos entornos. De ahí el famoso axioma que sigue a
SUN debe ser capaz de ejecutar cualquier clase que cumpla con la especificación.
JRE
Java y otros componentes necesarios para que una aplicación escrita en lenguaje
Java pueda ser ejecutada. El JRE actúa como un "intermediario" entre el sistema
operativo y Java.
(ByteCode) mientras que las librerías de clases estándar son las que implementan
64
el API de Java. Ambas JVM y API deben ser consistentes entre sí, de ahí que sean
distribuidas de modo conjunto. Un usuario sólo necesita el JRE para ejecutar las
JDK, que además del JRE (mínimo imprescindible) incluye, entre otros, un
J2SE.
versión 5.0 como Plataforma Java 2, Standard Edition o J2SE), es una colección
Plataforma Java. La Plataforma Java 2, Enterprise Edition incluye todas las clases
en el Java SE, además de algunas de las cuales son útiles para programas que se
65
J2EE.
conformidad para declarar que sus productos son conformes a Java EE;
Java EE incluye varias especificaciones de API, tales como JDBC, RMI, e-mail,
JMS, Servicios Web, XML, etc. y define cómo coordinarlos. Java EE también
66
concentrarse más en la lógica de negocio de los componentes en lugar de en tareas
J2ME.
otros dispositivos.
67
API-Interfaces de Programación de aplicaciones
orientada a objetos que ofrece cierta biblioteca para ser utilizado por otro software
JDBC.
Java Data Base Connectivity, más conocida por sus siglas JDBC, es una API que
utilizan los métodos de registro para declarar los tipos de localizadores a base de
datos (URL) que pueden manejar. Para utilizar una base de datos particular, el
modelo de su base de datos, y accede a ella estableciendo una conexión, para ello
A partir de allí puede realizar con cualquier tipo de tareas con la base de datos a
68
las que tenga permiso: consulta, actualización, creación, modificación y borrado
RMI.
RMI (Java Remote Method Invocation) es un mecanismo ofrecido por Java para
lugar de RMI.
A través de RMI, un programa Java puede exportar un objeto, con lo que dicho
de socialización de Java).
69
Invocación del método (del cliente sobre el servidor). El invocador se
y lo envía al cliente.
JMS
La API Java Message Service, también conocida por sus siglas JMS, es la
solución creada por Sun Microsystems para el uso de colas de mensajes. Este es
en la plataforma Java2 crear, enviar, recibir y leer mensajes. También hace posible
Modelo Punto a Punto: Este modelo cuenta con solo dos clientes, uno que envía
el mensaje y otro que lo recibe. Este modelo asegura la llegada del mensaje ya que
70
forma se le envía el mensaje y este se encola en una pila del tipo FIFO para luego
que publican temas o eventos, y los que ven estos tópicos, a diferencia del modelo
JDK1.0 en 1996
J2SE en 2004
Java SE 6 en 2006
La característica de java viene dado por tres elementos claves que diferencian a
este lenguaje.
robusto y agradable.
71
Pone al alcance de cualquiera la utilización de aplicaciones que se pueden
En este aspecto Java fue diseñado partiendo de cero, no siendo derivado de otro
Java es robusto.
Java verifica su código al mismo tiempo que lo escribe, y una vez más antes de
72
Java Contiene un Modelado de Objetos.
Existen varias clases que contienen las abstracciones básicas para facilitar a los
programas. Para ello se contará con un conjunto de clases comunes que pueden
El conjunto de clases más complicado de Java son sus paquetes gráficos AWT
una interfaz de usuario gráfica básica común a todos los ordenadores personales
modernos.
sobrecargados.
73
compilador, un intérprete de aplicaciones, un depurador en línea de comandos, y
Uno de los requisitos de Java desde sus inicios fue la posibilidad de crear
programas en red interactivos, por lo que es capaz de hacer varias cosas a la vez
sin perder rastro de lo que debería suceder y cuándo. Las aplicaciones de Java
permiten situar figuras animadas en las páginas Web, y éstas pueden concebirse
con logotipos animados o con texto que se desplace por la pantalla. También
pueden tratarse gráficos generados por algún proceso. Estas animaciones pueden
Java está diseñado para que un programa escrito en este lenguaje sea ejecutado
como más se lo conoce, por ello se puede ejecutar en cualquier sistema operativo.
crear una página de hipertexto (página Web) con una interacción continuada y
74
compleja en tiempo real; el contenido ejecutable es transferido literalmente al
Entrada/Salida.
carga.
75
Sistema de seguridad de la interfaz que refuerza las medidas de seguridad
en muchos niveles.
sobrecarga de operadores.
lo hacen C o C++.
Tiene una clase String que es parte del paquete java.lang y se diferencia de
Java cuenta con un sistema automático para asignar y liberar memoria, con
C++.
Java Es Multitareas.
76
Java es Portable.
Un programa Java puede ser ejecutado en diferentes entornos. Para desarrollar una
Interfaces.
Serán las clases que implementen estas interfaces las que describan la lógica del
Clases.
comportamiento de los objetos. Por lo usual una clase se define a los sustantivos
Métodos.
Los métodos son las acciones funciones o procedimientos que realiza nuestro
programa;
Los métodos son subrutinas que manipulan los datos definidos por una clase.
77
Cada método tiene un nombre y este nombre se utiliza para llamar al
método (las palabras clave no pueden ser utilizadas como el nombre del
método).
El método main () está reservado por java como el método que inicializa la
Atributos.
Son características de una clase que están dadas por las variables y/o constantes de
la misma.
Los diferentes tipos de aplicaciones que se pueden desarrollar con java son:
Aplicaciones:
GRÁFICO No.6
Aplicaciones.
Fuente:http://escribojava.blogspot.com/2011/01/como-enviar-correos-emails-desde-java.html
Elaborado: http://://escribojava.blogspot.com/2011/01/como-enviar-correos-emails-desde-java.html
78
Applets
inmersa en el applet.
GRÁFICO No. 7
Applets
Fuente:
http://www.google.com.ec/imgres?imgurl=http://www.escolessas.com/cesf/images/quefanalumnes/cda2a_g.jpg&imgrefurl=http://ww
w.escolessas.com/cesf/index.php%3Foption%3Dcom_content%26task%3Dview%26id%3D51%26Itemid%3D66%26lang%3Dspani
sh&usg=__yU_tAj4q5iLbPv8mn4RvGA6Lg6k=&h=543&w=544&sz=71&hl=es&start=3&zoom=1&tbnid=N6A5AASg_Pf39M:&tbn
h=133&tbnw=133&ei=InbjTpH2O4SbtwesnuidBQ&prev=/search%3Fq%3Daplicaciones%2Bapplet%2Bjava%26um%3D1%26hl
%3Des%26sa%3DN%26biw%3D1280%26bih%3D697%26tbm%3Disch&um=1&itbs=1
JavaBeans
79
lugar de varios objetos simples, la definición correcta de java beans es
GRÁFICO No. 8
JavaBeans
Java Script
Conjunto del lenguaje Java que puede codificarse directamente sobre cualquier
clientes, haciendo que las paginas desarrolladas sean más dinámicas, JavaScript es
80
un lenguaje fundamental utilizado para el desarrollo de aplicaciones web, junto
con css conforman las partes fundamentales en el desarrollo de una página web.
GRÁFICO No.9
JavaScript
Servlet
por ejemplo no se pueden procesar archivos planos o imágenes, mas es útil para
aplicaciones java.
GRÁFICO 10
81
Servlets
PLATAFORMA .NET
internet,
Basic, java#, c++, cristal report. En los lenguajes contenidos dentro de los
objetos.
82
Microsoft desarrollo CSharp desde su base para aprovechar el nuevo entorno de
mayor seguridad.
lenguajes
clases, como las Clases de Fundación Microsoft( MFC), que permite a los
COM
COM son protocolos que permiten la colaboración entre objetos desarrollados con
incluso máquinas. Los componentes COM existentes son recursos muy valiosos
83
funcionalidad aislada. Un componente ideal tiene un ensamblado de
modo de acceso a los servicios ofrecidos por algunos sistemas operativos actuales.
84
GUIDs, HRESULTS, etc.). El CLR no es que abstraiga al programador de estos
sustituirse versiones viejas de DLLs compartidas por versiones nuevas puede que
aplicaciones que fueron diseñadas para ser ejecutadas usando las viejas dejen de
En la plataforma .NET las versiones nuevas de las DLLs pueden coexistir con las
viejas, de modo que las aplicaciones diseñadas para ejecutarse usando las viejas
decir, cualquier plataforma para la que exista una versión del CLR podrá ejecutar
85
Microsoft ha desarrollado versiones del CLR para la mayoría de las versiones de
Windows: Windows 95, Windows 98, Windows ME, Windows NT 4.0, Windows
2000, Windows XP y Windows CE (que puede ser usado en CPUs que no sean de
la familia x86).
Por otro lado Microsoft ha firmado un acuerdo con Corel para portar el CLR a
versiones de libre distribución del CLR para Linux. Asimismo, dado que la
compilador que genere código para la plataforma .NET es posible utilizar código
un compilador de C# que genera código de este tipo, así como versiones de sus
otra escrita en Visual Basic.NET, que a su vez, herede de otra escrita en C++ con
extensiones gestionadas.
86
• Gestión de memoria: El CLR incluye un recolector de basura que evita que el
programador tenga que tener en cuenta cuándo ha de destruir los objetos que dejen
de serle útiles. Este recolector es una aplicación que se activa cuando se quiere
crear algún objeto nuevo y se detecta que no queda memoria libre para hacerlo,
detecta qué objetos hay en ella que no puedan ser accedidos por el código de la
durante la ejecución de una aplicación .NET se haga de modo que los tipos origen
otro, lo que evita errores de programación muy frecuentes e impide que unos
87
se transmitían mediante códigos de error en formato Win32, otros mediante
El CLR permite que excepciones lanzadas desde código para .NET escrito en un
incluye mecanismos de depuración que pueden saltar desde código escrito para
suspenderlos por un tiempo o hasta que les llegue una notificación, enviarles
88
procedencia o el usuario que los ejecute. Es decir, puede no darse el mismo nivel
procedente de una red local; puede no darse los mismos permisos a código
los mismos permisos a un mismo código según el usuario que lo esté ejecutando
necesarios para poder acceder desde código escrito para la plataforma .NET a
para ser ejecutado dentro de ella. Estos mecanismos permiten tanto el acceso a
Todos los compiladores que generan código para la plataforma .NET no generan
código máquina para algún tipo de CPU concreta, sino que generan código escrito
(MSIL).
89
virtual. Es decir, MSIL es el único código que es capaz de interpretar el CLR, y
por tanto cuando se dice que un compilador genera código para la plataforma
capturarlas y tratarlas).
formato común para el código máquina generado por todos los compiladores que
generen código para .NET. A partir de los fundamentos anteriores se enuncian las
Ventajas
dispositivos.
90
Basado en objetos. Ofrece un modelo de desarrollo basado en objetos que
utilizan un sistema común de datos y estos pueden ser reutilizados solo llamando
distintos perfiles.
interpretadas.
de forma simultánea.
Desventajas
91
Alto costo para empresas, punto net no cuenta con licenciamiento libre, por lo
programación C#.
Lenguaje de Programación C#
inspirado por la notación musical, donde '#' (sostenido, en inglés Sharp) indica
pegados.
92
Aunque es posible escribir código para la plataforma .NET en muchos otros
en ella, por lo que programarla usando C# es mucho más sencillo e intuitivo que
Basic.
Un lenguaje que hubiese sido ideal utilizar para estos menesteres es Java, pero
tenido que desarrollar un nuevo lenguaje que añadiese a las ya probadas virtudes
de Java las modificaciones que Microsoft tenía pensado añadirle para mejorarlo
Ventajas:
93
Atributos: Cada miembro de una clase tiene un atributo de acceso del tipo
Pase de parámetros: Aquí se puede declarar a los métodos para que acepten
parámetros es por valor, a menos que se use la palabra reservada ref, la cual indica
redefinido en una clase base, debe declararse como virtual. El método redefinido
Desventajas:
Conseguir una versión reciente de Visual Studio .NET, por otra parte se tiene
que tener algunos requerimientos mínimos del sistema para poder trabajar
94
adecuadamente tales como contar con Windows NT 4 o superior, tener alrededor
programadores crear páginas web dinámicas, desde sitios web personales hasta
BLACKBERRY.
telefonía móvil, mensajería de texto, faxes por Internet, navegación web y otros
95
servicios de información inalámbrica. Actualmente el dispositivo BlackBerry más
GRÁFICO No. 11
Fuente : http://www.google.com.ec/imgres?imgurl=http://www.wayerless.com/up/2009/10/rim-blackberry-bold-9700-
ofc.jpg&imgrefurl=http://www.wayerless.com/2009/12/felices-10-anos-blackberry/&usg=__YKQIfto8yzI0g-
rd1vzHas2Ge1A=&h=500&w=575&sz=149&hl=es&start=11&zoom=1&tbnid=d1DCEXNU6istPM:&tbnh=117&tbnw=134&ei=w3rjTuXDEMm4tgekkM
HrBA&prev=/search%3Fq%3DBlackBerry%26um%3D1%26hl%3Des%26sa%3DN%26biw%3D1280%26bih%3D697%26tbm%3Disch&um=1&itbs=1
QWERTY, optimizado para " hojear ", utilizando únicamente de los pulgares para
escribir. También hay varios modelos que incluyen un teclado SureType para
escribir. No todos los modelos tienen un teclado ya que hay varios modelos de
pantalla táctil sin teclado físico aunque sí que incluyen un teclado en la pantalla.
o "bola" en el centro del dispositivo, los dispositivos más antiguos utilizan una
Curve 9700 8520/8530, como también el Pearl 9100/9105 utilizan una pequeña
modelos también incorporan un "Push to Talk (PTT)”, similar a una radio de dos
96
Los dispositivos BlackBerry proporcionan un entorno inalámbrico Java ME que
subyacente.
BlackBerry ha incorporado correo móvil en todos sus dispositivos así como las
redes sociales mantienen a todas las personas cerca. Comuníquese con sus amigos,
terreno.
"Hay una antigua historia sobre una persona que quería que
su ordenador fuese tan fácil de utilizar como su teléfono.
Estos deseos se han hecho realidad, ya no sé cómo usar mi
teléfono"(Bjarne Stroustrup)
97
Ambiente de Desarrollo Gráfico.
El estándar, que ha sido adoptado por más de 130 países para su uso, se está
98
realzado muchos documentos que relacionan el estándar con la industria del
• Responsabilidad de la gestión
• Sistema de calidad
• Revisión de contrato
• Acción correctiva
• Control de diseño
• Control de documento
• Compras
99
• Registros de calidad
• Formación
• Servicios
• Técnicas estadísticas.
de calidad:
conformidad y seguridad.
Está referido por la siguiente suba tributos: madurez, tolerancia a fallos y facilidad
de recuperación.
operatividad.
100
• Eficiencia: grado en que el software hace óptimo el uso de los recursos del
sistema. Está indicado por la siguiente suba tributos: tiempo de uso y recursos
utilizados.
otro. Está referido por la siguiente suba tributos: facilidad de instalación, facilidad
encuentra en j2me 1.6, las aplicaciones de java RIM permiten interactuar entre
imágenes, etc.
El cliente móvil este debe cumplir, en lo posible, con los requerimientos del
una descarga o carga de información debe de contar con una buena conexión así
101
La aplicación Web que es la que hace el trabajo y procesa el trabajo de los
clientes móviles.
Para esto Java provee una arquitectura basada en componentes, que conduce al
limitado de caracteres
• utilizan redes inalámbricas que tienen un período de latencia más largo que las
LAN estándar
102
• muestran una pantalla al mismo tiempo
componente.
• Seguir el modelo estándar de navegación tanto como le sea posible para que los
pantalla.
Los usuarios de dispositivos móviles no utilizan del mismo modo las aplicaciones
HTML, CSS y java script y tienen la misma funcionalidad que una aplicación para
el dispositivo, su instalación
103
Es la misma que se hace como si fuera una aplicación nativa del dispositivo.
Archivos de Configuración
Página de Inicio
Imágenes (Iconos)
Con un Widgets de este tipo podríamos conseguir sostificados Uis para entrada de
FUNDAMENTACIÓN LEGAL
expresión y fijación.
programas de ordenador.
104
2. El programa de ordenador será protegido únicamente si fuese original, en el
sistema informático.
industrial.
Ley las ideas y principios en los que se basan cualquiera de los elementos de un
Preguntas a Contestarse
Será más factible realizar una interfaz gráfica desarrollando con líneas de código
interfaz amigable
Sale más factible seleccionar un curso o utilizar una herramienta para auto
aprendizaje.
105
Variables de la Investigación
considerablemente costos.
experiencia en este ambiente, lo cual hace que haya poco conocimiento de las
BlackBerry. Desarrollar un binario para que pueda ser cargado en los dispositivos
desarrollo
DEFINICIONES CONCEPTUALES
GUI.- Graphical user interface o interface gráfica de usuario, son las ventanas en
dispositivo móvil.
106
BLACKBERRY.- Marca de dispositivo móvil para la cual se desarrollara el
móviles BlackBerry
java RIM
OBJETOS.- Son instancias o variables que se crean y que por medio de ellas se
107
CLDC.- Connected Limited Device Configuration o conexión limitada de
configuración de dispositivo
móvil.
108
CAPÍTULO III
METODOLOGÍA
DISEÑO DE LA INVESTIGACIÓN
Modalidad de la investigación
hace poco tiempo, es decir en los últimos años se está dando a conocer esta
equipos sino también a los diferentes usuarios que se vean atraídos por esta
109
El trabajo con las fuentes documentales para analizar los trabajos existentes
Población y Muestra
Población
dividen en:
Selección estratificada.
Selección sistemática
Selección aleatoria
110
características medibles o cuantificables, por ejemplo los desarrolladores de
aplicaciones
CUADRO No. 1
Cuadro de Población
POBLACIÓN N
Software
ingeniería de sistemas.
111
Población Aproximada de Programadores independientes. En la ciudad 300
de Guayaquil. Que no han seguido alguna carrera de ingeniería de
sistemas
Total 2190
Muestra
desarrolladores informáticos.
TAMAÑO DE LA MUESTRA
Fórmula:
m
n
E (m 1) 1
2
DONDE:
CUADRO No. 2
Población Aproximada 1
POBLACIÓN N
Cálculos:
112
215
n = Tamaño de la muestra (104) n
(0.0049)( 214) 1
215
Resultado: 104 personas a encuestar.
n 104
f 0.488672
N 215
TAMAÑO DE LA MUESTRA
Fórmula:
m
n
E 2 (m 1) 1
DONDE:
CUADRO No. 2
Población Aproximada 2
POBLACIÓN N
Cálculos:
55
n = Tamaño de la muestra (43) n 113
(0.0049)(54) 1
55
n
Resultado: 43 personas a encuestar.
n 43
f 0.781818
N 55
TAMAÑO DE LA MUESTRA
Fórmula:
m
n
E 2 (m 1) 1
DONDE:
CUADRO No. 3
Población Aproximada 3
POBLACIÓN N
Cálculos:
n 179
f 0.124306
N 1440
TAMAÑO DE LA MUESTRA
Fórmula:
m
n
E 2 (m 1) 1
DONDE:
CUADRO No. 4
Cuadro Población 4
POBLACIÓN N
Cálculos:
n 122
f 0.9
N 300
Operacionalización de variables
investigación utilizadas.
CUADRO NO. 5
Instrumentos
116
encuestas
Conocimiento de Visualización de
tecnología móvil campo, foros,
de los preguntas
Smartphone frecuentes, salas
(70%) de conversas,
redes sociales.
Talleres,
Adaptación a exposiciones,
nuevas ejercicios,
tecnologías en el encuestas
mercado (40%)
V.D. Estándares de Programación Pruebas escritas,
Complejidad programación modular (15%) pruebas
Del Desarrollo prácticas,
de Aplicaciones Programación desarrollo y
java Móvil Orientada a soluciones de
Objetos problemas,
(60%) ayudas a usuarios
Implementación Conocimiento de Talleres,
de sistemas tecnología móvil encuestas,
informáticos en (80%) exposiciones,
dispositivos reuniones, foros,
móviles correos, internet.
Conocimiento de
tipos de
almacenamiento
en dispositivos
móviles
(50%)
Diferentes tipos Conocimiento de Exposiciones,
de conectividad conectividad manuales , guías,
móvil (70%) encuestas,
talleres
Conocimiento de
arquitectura
móvil (20%)
V.D. Objetos gráficos Conocimientos de Resoluciones de
Implementación de aplicaciones objetos gráficos problemas,
De Ambiente informáticas (80%) encuestas escritas
De Desarrollo y prácticas.
117
Gráfico Para Uso de punteros Conocimiento de Mediciones con
Java Móvil De para brindar distribución de cuestionarios
BlackBerry movilidad e pixeles en gráficos
Interacción con monitor (50%)
la aplicación.
Orientación y
reconocimiento
de colores (60%)
Ofrecer ayuda Uso de ayuda Ubicación de
en el desarrollo (80%) ayuda en un
de aplicaciones punto estratégico
móviles Interpretación de y visible para el
ejemplos (80%) usuario, uso de
metáforas
Búsqueda de
ayuda (80%)
Elaboración: Héctor William Pilligua Robalino
Fuente: Héctor William Pilligua Robalino
continuación:
La Entrevista
118
Como la entrevista no es una conversación informal entre dos amigos que se
encuentran, sino un diálogo con un objetivo investigativo muy claro, debe ser
Preparación.
Realización.
Elaboración.
Preguntas cerradas.
Preguntas abiertas.
Preguntas mixtas.
Las preguntas estructurales cerradas son las que mayormente se utilizan. Estas
119
escoger la que considera posible o correcta. Ejemplo: En alternativas múltiples
incluyentes
Proporcionan más riqueza informativa, pero son más ambiguas. Ejemplo: ¿Cómo
entidad?
máxima expresión.
entrevistadores.
Cuestionarios
120
mismas es tal que impiden física y económicamente, las entrevistas reales o
virtuales.
creencias.
Desventajas:
y a la vez sencillo.
Para la elaboración del cuestionario se deben tener en cuenta las siguientes etapas:
Preparación.
Diseño y elaboración.
Prueba.
Aplicación.
121
El cuestionario no ofrece la flexibilidad de la entrevistas, por lo que exigirá
transparencia.
estructurales cerradas.
Ordenar las preguntas con el mismo estilo que se expuso en las entrevistas
cerradas con alternativas. Estas permiten cuantificar aspectos que a primera vista
Nominal.
Ordinal.
De intervalo.
De relación.
122
Observaciones
Las observaciones que realizan los investigadores deben cumplir, entre otros los
siguientes requisitos:
objetivos.
que transcurre.
123
Permite trabajar con grandes volúmenes de información.
definida (libre)
continuación:
Procedimientos de la Investigación
124
Los pasos que se siguieron para desarrollar mi tesis; desde la concepción del
El problema:
Interrogantes de la investigación
Objetivos de la Investigación
Marco teórico:
Fundamentación teórica
Fundamentación legal
Preguntas a contestarse
Definición de términos
Metodología:
Población y Muestra
Procedimiento de la Investigación
Marco administrativo:
Cronograma, Presupuesto
125
Conclusiones y recomendaciones
Recolección de la Información
aplicaciones móviles, para luego depurar cada pregunta que fuese necesaria para
PROCESAMIENTO Y ANÁLISIS
CUADRO Nº 6.
Condición del Informante
Frecuencia Frecuencia
Opciones Categorías
Absoluta Relativa
Población Aproximada de
1 Desarrolladores en empresas 104 23%
consultoras informáticas
Población Aproximada de
2 Desarrolladores en Entidades 43 10%
Financieras
Población Aproximada de
3 179 40%
Desarrolladores en la carrera de
126
ingeniería en sistemas
computacionales horario
matutino y nocturno
Población Aproximada de
Programadores independientes.
4 En la ciudad de Guayaquil. Que 122 27%
no han seguido alguna carrera de
ingeniería de sistemas
Total 448 100%
Fuente: Datos de la encuesta realizada
Elaboración: Héctor William Pilligua Robalino.
23 Desarrolladores
122 104
en consultorias
43
179 10 desarrolladores
en entidades
financieras
aplicaciones ya sean móviles o de escritorio son los que están cursando la carrera
trabajos bajo pedido, cabe recalcar que los que terminan la carrera de ingeniería
127
momento de implementación de sistemas, este grupo corresponde al 27%,
CUADRO N° 7
Utiliza Dispositivos BlackBerry.
Frecuencia Frecuencia
Opciones Categorías
Absoluta Relativa
1 Si 220 49%
2 No 228 51%
Total 448 100%
Fuente: Datos de la encuesta realizada
Elaboración: Héctor William Pilligua Robalino
128
49
51
Si
No
49%,, esto es por que utilizan el equipo para ver el resultado de la aplicaciones
realizadas para el dispositivo y por comodidad, el 51% restante optaron por otros
CUADRO N° 8
Adaptación a Nuevas Herramientas.
Frecuencia Frecuencia
Opciones Categorías
Absoluta Relativa
1 Complicado 40 9%
Con tiempo
2 80 18%
Considerable
3 Adaptación 135 30%
129
rápida
No se Complica
4 193 43%
la adaptación
Total 448 100%
Fuente: Datos de la encuesta realizada
Elaboración: Héctor William Pilligua Robalino
Complicado
9
43 18
Con tiempo Considerable
Adaptación rápida
30
No se Complica la
adaptación
semijunior, este grupo cuenta con el 43%. Otro grupo mayoritario tiene una
130
encontraron a los analistas, programadores sénior, este grupo cuenta con 30% de
para las diferentes aplicaciones realizadas, por ejemplo si está acostumbrado a .net
por ejemplo programar en fox pro y luego quedar adaptarse a netbeans, este grupo
CUADRO N° 9
Lenguaje de Programación más Utilizados.
Frecuencia Frecuencia
Opciones Categorías
Absoluta Relativa
1 .Net 117 26%
2 Java 120 27%
3 Oracle-PLQSL-SQLSERVER 94 21%
4 Aplicaciones Web 112 25%
5 Cobol 5 1%
Total 448 100%
Fuente: Datos de la encuesta realizada
Elaboración: Héctor William Pilligua Robalino
131
GRÁFICO No.15 Lenguaje de Programación más Utilizados.
25 26
.net
java
plsql-sql-oracle
21
27 web
cobol
.
Fuente: Datos de la encuentra realizada
Elaborado. Héctor William Pilligua Robalino
lenguaje java, se debe a que en los outsoursing son los lenguajes más usados por
ser open, este grupo corresponde al 27%, seguido del grupo de desarrollo que
corresponde al 25%, este grupo se dedica al diseño gráfico, está más conformado
.net son php, html5, JavaScript, el grupo de programación a nivel de base de datos
132
corresponde al 21%, estos son encargados de desarrollos de trabajos programados,
tenemos al grupo que utiliza cobol, este grupo está en su mayoría en las entidades
dedicado al aprendizaje de este lenguaje, cabe recalcar que cobol es ideal para el
CUADRO N° 10
Desarrollo de Aplicaciones con tecnología J2ME.
Frecuencia Frecuencia
Opciones Categorías
Absoluta Relativa
1 .Si 230 51%
2 No 218 49%
Total 448 100%
Fuente: Datos de la encuesta realizada
Elaboración: Héctor William Pilligua Robalino
133
49
51
Si
No
J2ME, en su mayoría el trabajo que han hecho ha sido con el IDE de eclipse,
Dispositivos Móviles.
CUADRO N° 11
Conocimiento de Herramientas para Desarrollo de Aplicaciones para
Dispositivos Móviles.
Frecuencia Frecuencia
Opciones Categorías
Absoluta Relativa
1 Muchas 214 48%
2 Algunas 130 29%
3 Pocas 104 23
4 Ninguna 0 0
Total 448 100%
Fuente: Datos de la encuesta realizada
Elaboración: Héctor William Pilligua Robalino
134
GRÁFICO No.17 Conocimiento de Herramientas para Desarrollo de
23
48 Muchas
Algunas
29 Pocas
Ninguna
Análisis: con la información obtenida se pudo constatar que hay un gran numero
del grupo que programas como eclipse o .net, corresponde al 29%,el 23% restante
CUADRO N° 12
Uso de IDE Gráfico para Desarrollo de Aplicaciones.
Frecuencia Frecuencia
Opciones Categorías
Absoluta Relativa
1 Siempre 210 47%
2 Algunas veces 140 31%
3 Muy Poco 75 17%
4 Nunca 23 5%
Total 448 100%
Fuente: Datos de la encuesta realizada
Elaboración: Héctor William Pilligua Robalino
135
17 5 Siempre
47
Algunas veces
31 Muy Poco
Nunca
CUADRO N° 13
Desarrollos Frecuentes de Sistemas Informáticos.
Frecuencia Frecuencia
Opciones Categorías
Absoluta Relativa
1 Empresarial 210 46%
2 Oficina 90 20%
3 Juegos 25 6%
4 Varios 123 28%
Total 448 100%
Fuente: Datos de la encuesta realizada
Elaboración: Héctor William Pilligua Robalino
136
28
46 Empresarial
Oficina
6
Juegos
20
Varios
conformado por el 46%, el grupo que le sigue son los que realizan sistemas varios,
CUADRO N° 14
Sistemas Operativos Móviles.
Frecuencia Frecuencia
Opciones Categorías
Absoluta Relativa
1 Android 200 45%
2 IOS 65 15%
3 RIM BlackBerry 155 35%
4 Sysmbian 13 3%
5 Windows Mobile 10 2%
6 Otros 5 1%
Total 448 100%
Fuente: Datos de la encuesta realizada
Elaboración: Héctor William Pilligua Robalino
137
GRÁFICO No.20 Sistemas Operativos Móviles.
3 21
Android
45 IOS
35
RIM BlackBerry
Sysmbian
15
Windows movile
Otros
Análisis: de acuerdo a los datos obtenidos se ve que hay una gran cantidad de
personas que utilizan dispositivos con sistema operativo android, este grupo
1%.
Aplicativos Móviles.
CUADRO N° 15
Sistemas Herramientas de Programación más Utilizadas para Desarrollo de
Aplicativos Móviles.
Frecuencia Frecuencia
Opciones Categorías
Absoluta Relativa
1 Eclipse 230 40%
2 NetBeans 150 26%
3 .Net 100 14%
4 Programación Web 80 17%
5 Otros 13 3%
138
Total 448 100%
Fuente: Datos de la encuesta realizada
Elaboración: Héctor William Pilligua Robalino
3
Eclipse
17 40
NetBeans
14
.Net
26
Programacion Web
Otros
móviles prefieren Eclipse, este grupo conforma el 40%, seguido del grupo que
prefiere usar netbeans por la facilidad de comunicación con java, esto conforma el
a continuación se muestran:
139
Metodología para la elaboración de módulos
dispositivos móviles.
expertos.
140
La autovaloración realizada por los expertos permite determinar si deben ser
se plantean a continuación:
Gráfico.
141
6. Valoración de la misión del aplicativo de desarrollo de interfaces gráficas.
3.- Adecuado
5.- Inadecuado
Finalmente a través del uso del software estadístico Excel (2007) se determinó la
adecuados.
CUADRO Nº. 16
Nº de
Pregunta Categoría
pregunta
142
Valoración de las dimensiones planteadas en el
Muy adecuada
1 modelo.
Valoración de los métodos científicos utilizados en
2 Bastante adecuada
la elaboración del modelo.
Valoración de la eficacia del modelo en la
Bastante adecuada
compatibilidad la solución generada con el IDE
3
Eclipse.
143
CAPÍTULO IV
MARCO ADMINISTRATIVO
Cronograma
el siguiente cronograma.
144
Una vez establecido el cronograma se hace necesario establecer formas de
del proyecto
Presupuesto
145
En el caso objeto de estudio y por las características de la actividad que se
en este caso solo se requiere del personal calificado y los medios necesarios para
CUADRO 17
Proyección Inicio del Negocio
Activo Circulante
Efectivo $ 700.00
Activos Fijos
CPU $ 300.00
Teclado 15.00
Ratón 15.00
Monitor 250.00
Modem 30.00
Cable USB Ca 101 15.00
Equipo Smartphone 350.00
Activos Intangibles
Consumo internet $ 200.00
Dominio 180.00
Capital $ 2020.00
Fuente: Héctor William Pilligua Robalino
Elaborado: Héctor William Pilligua Robalino
146
Una vez determinados los importes a utilizar referentes a los Activos y el Capital
Total, se realizó una proyección del Estado de Resultado para el primer año, el
cual incluye la de diferencia de Ingresos con Gastos
CUADRO No. 18
Cuadro de Ingresos
Ingresos
Financiamiento Propio $ 2,500
Fuente: Héctor William Pilligua Robalino
Elaborado Por: Héctor William Pilligua Robalino
CUADRO No. 19
Cuadro de Egresos
Egresos
Hardware:
CPU $ 250
Teclado $ 15
Ratón $ 15
Monitor $ 250
Equipo BlackBerry $ 250
Cable USB Ca 101 $ 15
Software
Licencia
Sistema Operativo Win7 $ 700
Windows
0.0
Sistema Operativo Linux $0
(opcional)
Licencia BlackBerry $ 30
Consumo internet $ 140
Varios
Documentación $ 85
Cursos de Capacitación
$ 700
Móvil
Tiempo empleado $ 50
$
Total
2,500
Fuente: Héctor William Pilligua Robalino
Elaborado Por: Héctor William Pilligua Robalino
147
Ingresos:
en el listado de egresos para proceder con el desarrollo del tema de tesis, estas
Egresos:
tema de tesis
CAPÍTULO V
CONCLUSIONES Y RECOMENDACIONES
CONCLUSIONES:
interfaz gráfica?
Se pudo concluir que los usuarios finales han optado por tener dispositivos
148
disponible, por ello el desarrollo se hace extenso, sin embargo, los
aplicaciones.
líneas de código?
el momento de desarrollo.
149
graficas contiene varios elementos y colocar esos objetos en la pantalla
Con los resultados obtenidos se pudo apreciar que los desarrolladores al crear
elementos utilizados.
Se pudo constatar que el desarrollo de una aplicación con una herramienta que
interfaz gráfica.
150
RECOMENDACIONES:
los sistemas,
teniendo en cuenta que las aplicaciones java RIM cuentan con sus propias
151
interfaz de usuario de un dispositivo móvil BlackBerry, estos cursos
pueden ser en lugares certificados para estos cursos o puede ser vía
dispositivos móviles, para de esta manera tener claro las limitaciones del
aplicativos realizados.
BIBLIOGRAFÍA
Alonso Álvarez García; José Ángel Morales Grela. (2002). J2ME (Guías
Practicas)
http://www.gratisprogramas.org/descargar/telefonia-celular-8-libros-pdf-
esencial-estudiantes-de-electronicatecnicos/
152
José Manuel Huidobro. (2001). Manual de Telefonía: Telefonía Fija y
http://mx.blackberry.com/software/developer.html
kr/developers/deliverables/16725/Start_the_BBSmrtphnSmltr_and_open_a
_web_page_607475_11.jsp
de http://dis.um.es/~bmoros/privado/bibliografia/LibroCsharp.pdf
2013 de http://chvere.blogspot.com/2011/11/manual-completo-de-c-sharp-
en-espanol.html
153
ANEXOS
154
Nº 2: Modelo de Procesos
Fuente: Héctor William Pilligua Robalino
Objetivo: Selección de expertos para validar criterios respecto a la propuesta realizadas por el
investigador.
Estimado especialista(a):
Usted ha sido seleccionado para colaborar con la investigación “Interfaces Gráficas para
Desarrollo de Aplicaciones Java en BlackBerry, Complejidad del Desarrollo y Propuesta de
Ambiente de Desarrollo Gráfico”.
En tal sentido se elabora esta encuesta para que la validación cualitativa de la propuesta del
prototipo elaborado en la presente investigación. Por ello le pedimos que lea con detenimiento la
información que se le solicita y responda con sinceridad todas las preguntas.
Muchas Gracias
1. Nombre: ___________________________________________________________
software.______________________________
155
4. Investigaciones realizadas vinculadas de alguna manera con la temática
tratada._______________________________________________________
Evalúe su nivel de dominio acerca de la esfera sobre la cual se le consultó marcando con una cruz
____ ____ ____ ____ ____ ____ ____ ____ ____ ____
1 2 3 4 5 6 7 8 9 10
156
Anexo # 3: DETERMINACIÓN DEL COEFICIENTE K.
157
17 0,70 0,90 0.80
18 0,90 1,00 0,95
19 0.50 070 0.60
20 0,80 0,80 0.80
21 0.80 090 0,85
22 0,40 0,70 0,55
23 0,90 1,00 0,95
24 0.80 1,00 0.90
25 0,80 1,00 0,90
El código para la interpretación del coeficiente de competencia de cada experto es
el siguiente:
Si 0.8< k < 1.0, el coeficiente de competencia es alto.
Si 0.5< k < 0.8, el coeficiente de competencia es medio.
Si k < 0.5, el coeficiente de competencia es bajo.
Nota: De acuerdo al coeficiente de competencia de cada experto, no se
consideraron para la valoración los expertos 4, 11, 16, 19 y 22.
Estimado especialista(a):
Usted ha sido seleccionado para colaborar con la investigación “Interfaces Gráficas para
Desarrollo de Aplicaciones Java en BlackBerry, Complejidad del Desarrollo y Propuesta de
Ambiente de Desarrollo Gráfico”.
Por ello le pedimos que lea con detenimiento la información que se le solicita y responda con
sinceridad todas las preguntas.
Muchas Gracias
Cuestionario
1. Valoración de las dimensiones planteadas en el modelo.
5 4 3 2 1
158
3. Valoración de la eficacia del modelo en la compatibilidad la solución
generada con el IDE Eclipse.
5 4 3 2 1
DE FRECUENCIAS DE LA ENCUESTA
C1 C2 C3 C4 C5
Cuestionario Muy Bastante Poco No TOTAL
adecuada adecuada Adecuada adecuada adecuada
P-1 13 7 - - - 20
P-2 2 9 - 3 5 20
P-3 1 14 2 - 3 20
P-4 16 5 - - - 20
P-5 2 11 1 2 4 20
P-6 14 2 2 1 1 20
159
C-1 C-2 C-3 C-4 C-5
P-1 0,65 0.90 1,00 1,00 1.00
P-2 0,10 0,45 0,75 0,75 1.00
P-3 0,05 0,85 0,55 0,75 1.00
P-4 0,80 0,70 0,90 1,00 1.00
P-5 0,10 1.00 0,60 0,50 1.00
P-6 0,70 0,45 0,45 1,00 1.00
N= 27.24/6x5= 0,9080
Los puntos de corte sirven para determinar la categoría o grado de adecuación de
cada pregunta, según la opinión de los expertos consultados. Con ello se opera del
modo siguiente:
Muy adecuada Bastante Adecuada Poco adecuada No adecuada
adecuada
-0,58 1,15 1,91 2,05
160
Nota: De acuerdo a los puntos de corte se valora positivamente el proyecto de
Anexo # 7:
Objetivo: Recolectar información de las personas que se dedican al desarrollo de
aplicaciones, que utilicen los diferentes tipos de lenguajes de programación y comprobar
el nivel de conocimiento de programación orientada a objetos que poseen.
161
1. Si
2. No
6) ¿Conocimiento de Herramientas para desarrollo de aplicaciones para dispositivos móviles?
1. Muchas
2. Algunas
3. Pocas
4. ninguna
162
MANUAL TECNICO
1
Indice General
Introducción 5
Determinar Objetivos 7
Desarrollar y verificar 7
Planificar 7
Angular 7
Radial 7
Diagramas UML 8
Definición de actores 8
Diagrama de Colaboración 12
Diagrama de Contexto 13
Diagrama de Eventos 13
Diagrama de Proceso 13
Diagrama de Secuencias 15
EL FRAMEWORK 18
ESTRUCTURA 28
1
Contenido del archivo .classpath 20
Diccionario de Datos 23
CODIFICACIÓN DE COMPONENTES 23
2
Indice de Gráficos
3
Índice de Cuadros
CUADRO 1 Actor 1 9
CUADRO 2 Actor 2 9
4
CAPITULO 1
MANUAL TÉCNICO
INTRODUCCIÓN
Para el desarrollo del aplicativo fue necesario instalar visual estudio .net 2012 con el
framework 3.5 o superior.
Java jdk1.7.0
Sistema Operativo Windows vista o superior. Entre los diferentes lenguajes que se
encuentran en visual estudio .net se utilizara el lenguaje C# con generación de
archivos, se generara un archivo resultado que es un código java, para la compilación
del código generado se utilizara java versión 1.7.0.
5
de compilador 6 de java para BlackBerry.
Estos manuales tienen como principales objetivos brindar a los usuarios finales y una
concepción técnica del sistema AGBB (Ambiente Grafico para BlackBerry), en los
siguientes aspectos:
6
El proceso de cada vuelta es:
Radial.- aumento del coste del Proyecto, ya que con cada nueva
interacción se pasa más tiempo desarrollando.
Al ser un modelo de Ciclo de Vida orientado al riesgo se dice que uno de los aspectos
fundamentales de su éxito radica en que el equipo que lo aplique sea capaz de
detectar y catalogar correctamente dicho riesgo.
Este sistema es muy utilizado en proyectos largos, que necesitan constantes cambios.
GRAFICO 1
Gráfico de Programación Espiral
7
Principios básicos del Modelo Espiral
Diagramas UML
Sirve como una técnica para la captura de requisitos potenciales de un nuevo sistema o
actualización de software. Cada caso de uso proporciona uno o más escenarios que indican
cómo debería interactuar el sistema con el usuario o con otro sistema para conseguir un
objetivo específico.
Definición de actores
Los actores son los diferentes participantes que se encuentran en el uso del sistema,
dependiendo del sistema desarrollado, los roles de estos actores pueden variar,
8
CUADRO 1
Actor 1
CUADRO 2
Actor 2
9
GRAFICO 2
Caso de Uso 1er Nivel: Creación de interfaz Grafica
CUADRO 3
Tipo Básico
10
GRAFICO 3
CUADRO 4
Tipo Básico
11
GRAFICO 4
Diagrama de Colaboración
12
Diagrama de Contexto
GRAFICO 5
GRAFICO 6
Diagrama de colaboración Nivel Superior
13
GRAFICO 7
Diagrama de Eventos
Aplicativo AGBB
Usuario Solucion Generada
Diagrama de Proceso
GRAFICO 8
Diagrama de Proceso
14
Diagrama de secuencias
15
16
Llena propiedades
17
EL FRAMEWORK
ESTRUCTURA
En el aplicativo se gestionaran
Archivos
Formularios
Compilaciones
Creación de soluciones
18
GRAFICO 9
Carpeta Plantilla
GRÁFICO 10
Contenido Plantillas
GRAFICO 11
19
Contenido del archivo org.eclipse.jdt.core.prefs
<name>net.rim.ejde.internal.builder.BlackBerryPreprocessBuilder</name>
<arguments>
20
</arguments>
</buildCommand>
<buildCommand>
<name>net.rim.ejde.internal.builder.BlackBerryResourcesBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>net.rim.ejde.BlackBerryPreProcessNature</nature>
<nature>net.rim.ejde.BlackBerryProjectCoreNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Contenido del archivo BlackBerry_App_Descriptor.xml
<!-- This file has been generated by the BlackBerry Plugin for Eclipse v3.7.100. -->
<Properties ModelVersion="1.1.2">
<General Title="" Version="1.0.0" Vendor="BlackBerry Developer" Description=""/>
<Application Type="BlackBerry Application"
MainMIDletName=""
MainArgs=""
HomeScreenPosition="0"
StartupTier="7"
IsSystemModule="false"
IsAutostartup="false"/>
<Resources hasTitleResource="false"
TitleResourceBundleName=""
TitleResourceBundleRelativePath=""
TitleResourceBundleClassName=""
TitleResourceBundleKey=""
DescriptionId="">
<Icons>
<Icon CanonicalFileName="res/img/[[ICONOAPP]]"
IsFocus="false"/>
</Icons>
</Resources>
<KeywordResources KeywordResourceBundleName=""
KeywordResourceBundleRelativePath=""
KeywordResourceBundleClassName=""
KeywordResourceBundleKey=""/>
<Compile OutputCompilerMessages="false"
ConvertImages="true"
CreateWarningForNoExportedRoutine="true"
CompressResources="false"
AliasList="">
<PreprocessorDefines/>
</Compile>
<Packaging PreBuildStep=""
PostBuildStep=""
CleanStep=""
21
OutputFileName="[[NOMBREAPP]]"
OutputFolder="deliverables"
GenerateALXFile="true">
<AlxFiles/>
</Packaging>
<HiddenProperties>
<ClassProtection/>
<PackageProtection/>
</HiddenProperties>
<AlternateEntryPoints/>
</Properties>
GRAFICO 12
Icon App
CUADRO 5
Características Generales
Espacio en Disco 15.1 MB
22
Cuentas FTP No Aplica
Php5 No Aplica
WebMail No Aplica
phpMyAdmin No Aplica
Ip Dedicada No Aplica
No Aplica
Diccionario de Datos
No Aplica
CODIFICACIÓN DE COMPONENTES
Objeto Base.
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
23
using System.Windows.Forms;
namespace TesisEjemplo1
{
class ObjetoBase : Panel
{
string ls_nombreControl;
string ls_tipo = "";
int ln_posX = 0;
int ln_posY = 0;
int ln_ancho = 0;
int ln_alto = 0;
bool lb_movible = false;
string ls_contenido = "";
bool lb_poseeFuncionClick = false;
string ls_funcionClick = "";
public bool lb_poseeEstilo = false;
string textoEstilo = "";
public bool lb_poseeOtraFamiliaTexto = false;
string texto_nombreFamilia = "";
public bool lb_otrotamanioTexto = false;
string te4xto_tamanioTexto = "";
/// <summary>
/// controla el nombre del objeto
/// </summary>
public string _Nombrecontrol
{
set
{
ls_nombreControl = value;
}
get
{
return ls_nombreControl;
}
}
/// <summary>
/// controla el tipo del objeto
/// </summary>
public string _TipoControl
{
set{
ls_tipo = value;
}
get
{
return ls_tipo;
}
}
/// <summary>
/// controla la posicion horizontal del objeto
/// </summary>
public int _posX
{
24
set
{
this.ln_posX = this.Left;
}
get
{
return this.Left;
}
}
/// <summary>
/// controla la posicion vertiacl del objeto
/// </summary>
public int _posY
{
set
{
this.ln_posY = this.Top;
}
get
{
return this.Top;
}
}
/// <summary>
/// controla el ancho del objeto
/// </summary>
public int _ancho
{
set
{
ln_ancho = value;
}
get
{
return ln_ancho;
}
}
/// <summary>
/// controla el alto del objeto
/// </summary>
public int _alto
{
set
{
ln_alto = value;
}
get
{
return ln_alto;
}
}
25
}
get
{
return lb_poseeFuncionClick;
}
}
26
#endregion
}
}
}
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TesisEjemplo1
{
class PanelAutoCompletar: ObjetoBase
{
public bool poseeColorfondo = false;
Color coloFondo;
public bool poseeColorTextop = false;
Color colorEtiqueta;
}
public PanelAutoCompletar() {
_TipoControl = "TEXTOAUTOCOMPLETAR_";
_alto = 20;
seteaFormato();
}
27
_alto = 20;
seteaFormato();
}
}
}
}
28
Codificacion PanelBoton
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TesisEjemplo1
{
class PanelBoton : ObjetoBase
{
string ls_TextoBoton = "";
Label Etiqueta = new Label();
public string _Texto
{
set
{
this.ls_TextoBoton = value;
}
get
{
return ls_TextoBoton;
}
}
public PanelBoton()
{
_TipoControl = "BOTON";
ColocaEtiqueta();
}
public PanelBoton(bool conColor)
{
this.BackColor = Color.Gray;
_TipoControl = "BOTON";
ColocaEtiqueta();
}
public PanelBoton(string texto)
{
this._TipoControl = "BOTON";
_Texto = texto;
ColocaEtiqueta();
}
29
Etiqueta.ForeColor = Color.White;
Etiqueta.BackColor = Color.Gray;
Etiqueta.Width = 70;
Etiqueta.Left = 10;
Etiqueta.TextAlign = ContentAlignment.MiddleCenter;
Etiqueta.Cursor = Cursors.Default;
this.Cursor = Cursors.SizeAll;
this.Controls.Add(Etiqueta);
this._ancho = 90;
this._alto = 20;
this.Width = 90;
this.Height = 20;
}
public string TextoEtiqueta
{
set
{
this.Etiqueta.Text = value;
}
get
{
return this.Etiqueta.Text;
}
}
}
public void cambiaEtiquetaVisible(string textoMuestra)
{
try
{
this.Etiqueta.Text = textoMuestra;
}
catch (Exception ex)
{
this.Etiqueta.Text = ex.Message;
}
}
}
}
Codificacion PanelBrowserField
using System;
30
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TesisEjemplo1
{
class PanelBrowserField: ObjetoBase
{
bool lb_noDefecto = false;
string ls_cadenaUrl = "http://www.google.com";
public string UrlVisitaInicial
{
set
{
this.lb_noDefecto = true;
ls_cadenaUrl = value;
}
get
{
return ls_cadenaUrl;
}
}
public PanelBrowserField()
{
_TipoControl = "BROWSER";
this.BackColor = Color.WhiteSmoke;
this._alto = 100;
this._ancho = 100;
this.Width = this._ancho;
this.Height = this._alto;
this.Cursor = Cursors.SizeAll;
this.BackgroundImageLayout = ImageLayout.Stretch;
this.BackgroundImage = global::TesisEjemplo1.Properties.Resources.MensajeControslWeb;
}
}
}
Codificacion PanelCajaTexto
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TesisEjemplo1
{
class PanelCajatexto : ObjetoBase
{
31
public bool poseeColorfondo = false;
Color coloFondo;
public bool poseeColorTextop = false;
Color colorEtiqueta;
32
public void cambiarColorFondo(Color color)
{
this.BackColor = color;
}
}
}
Codificacion PanelCampoFecha
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TesisEjemplo1
{
class PanelCampoFecha:ObjetoBase
{
public bool poseeColorfondo = false;
Color coloFondo;
public bool poseeColorTextop = false;
Color colorEtiqueta;
33
public void seteaFormato()
{
this.BackColor = Color.White;
_ancho = 100;
_alto = 20;
this.Width = _ancho;
this.Height = _alto;
this.Cursor = Cursors.SizeAll;
this.BackgroundImageLayout = ImageLayout.Stretch;
this.BackgroundImage = global::TesisEjemplo1.Properties.Resources.CampoFecha;
}
}
}
}
34
Codificacion Panel Campo Imagen
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TesisEjemplo1
{
class PanelCampoImagen: ObjetoBase
{
string nombreImagen = "";
string rutaImagenTmp = "";
PictureBox imagenMuestra = new PictureBox();
public PanelCampoImagen()
{
_TipoControl = "IMAGEN";
this.BackColor = Color.WhiteSmoke;
this._alto = 100;
this._ancho = 100;
this.Width = this._ancho;
this.Height = this._alto;
this.Cursor = Cursors.SizeAll;
/*imagenMuestra.Width = 90;
imagenMuestra.Height = 90;
imagenMuestra.Left = 5;
imagenMuestra.Top=5;
imagenMuestra.Cursor = Cursors.Default;
imagenMuestra.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.Controls.Add(imagenMuestra);*/
}
public string rutaImagentemporal
{
set
{
rutaImagenTmp = value;
this.imagenMuestra.ImageLocation = rutaImagenTmp;
}
get
{
return rutaImagenTmp;
}
}
public string NombreImagenVer
{
set
{
nombreImagen = value;
}
get
{
return nombreImagen;
}
35
}
}
}
}
Codificacion PanelCampoOpcion
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
36
using System.Windows.Forms;
namespace TesisEjemplo1
{
class PanelCampoOpcion : ObjetoBase
{
private Microsoft.VisualBasic.PowerPacks.ShapeContainer shapeContainer1 = new
Microsoft.VisualBasic.PowerPacks.ShapeContainer();
private Microsoft.VisualBasic.PowerPacks.RectangleShape rectangeShape1 = new
Microsoft.VisualBasic.PowerPacks.RectangleShape();
}
public Color ColorFondo
{
set
{
this.poseeColorfondo = true;
this.coloFondo = value;
37
}
get
{
return coloFondo;
}
}
38
}
public void cambiaFamiliaTexto(string nomrbreFamilia)
{
try
{
//this.lblEtiqueta.Font = new System.Drawing.Font(nomrbreFamilia, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblEtiqueta.Font = new System.Drawing.Font(nomrbreFamilia, 8.25F,
this.lblEtiqueta.Font.Style, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
}
catch (Exception ex)
{
}
}
public void cambiarEstiloTexto(string nombreEstilo)
{
try
{
switch (nombreEstilo)
{
case "ANTIALIAS_LOW_RES":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ANTIALIAS_NONE":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ANTIALIAS_STANDARD":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ANTIALIAS_SUBPIXEL":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "APPLICATION":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ARABIC_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ARMENIAN_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "BENGALI_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "BOLD":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "BROKEN_LINE_UNDERLINED":
39
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "CJK_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "CURSIVE_STYLE":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "CYRILLIC_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "DEVANAGARI_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "DOTTED_UNDERLINED":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ETHIOPIC_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "EXTRA_BOLD":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "FANTASY_STYLE":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "GEORGIAN_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "GREEK_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "GUID_FONT_CHANGED":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "GUJARATI_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "GURMUKHI_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "HANGUL_SCRIPT":
40
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "HEBREW_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "HIRAGANA_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ITALIC":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "KANNADA_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "KATAKANA_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "KHMER_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "LAO_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "LATIN_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "MALAYALAM_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "MONGOLIAN_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "MYANMAR_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ORIYA_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "PLAIN":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "SANS_SERIF_STYLE":
41
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "SERIF_STYLE":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "SERIF_STYLE_MASK":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "SINHALA_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "STRIKE_THROUGH":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Strikeout, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "TAMIL_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "TELUGU_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "THAI_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "TIBETAN_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "UNDERLINED":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "UNSPECIFIED_SERIF_STYLE":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "WAVY_UNDERLINED":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
}
}
catch (Exception ex)
{
}
}
public void modificaTamanioTexto(string tamanio)
{
try
42
{
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name,
float.Parse(tamanio), this.lblEtiqueta.Font.Style, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
}
catch (Exception ex)
{
}
}
public string GrupoOpcion{
set
{
this.nombreGrupoOpcion = value;
}
get
{
return this.nombreGrupoOpcion;
}
}
}
}
}
Codificacion PanelCampoMapa
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TesisEjemplo1
43
{
class PanelCamposMapa : ObjetoBase
{
public PanelCamposMapa()
{
_TipoControl = "MAPA";
this.BackColor = Color.WhiteSmoke;
this._alto = 100;
this._ancho = 100;
this.Width = this._ancho;
this.Height = this._alto;
this.Cursor = Cursors.SizeAll;
this.BackgroundImageLayout = ImageLayout.Stretch;
this.BackgroundImage = global::TesisEjemplo1.Properties.Resources.MensajeControslMapa;
}
}
}
Codificacion PanelCheckBox
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TesisEjemplo1
{
44
Color colorEtiqueta;
public PanelCheckBox(string contenido)
{
_TipoControl = "CHECKBOX";
seteaFormato(contenido);
}
public PanelCheckBox()
{
_TipoControl = "CHECKBOX";
seteaFormato("Etiqueta");
}
}
public Color ColorFondo
{
set{
this.poseeColorfondo = true;
this.coloFondo = value;
}
get {
return coloFondo;
}
}
45
this._alto = 20;
this.Width = _ancho;
this.Height = _alto;
lblEtiqueta.Width = 70;
}
46
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "APPLICATION":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ARABIC_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ARMENIAN_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "BENGALI_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "BOLD":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "BROKEN_LINE_UNDERLINED":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "CJK_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "CURSIVE_STYLE":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "CYRILLIC_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "DEVANAGARI_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "DOTTED_UNDERLINED":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ETHIOPIC_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "EXTRA_BOLD":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "FANTASY_STYLE":
47
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "GEORGIAN_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "GREEK_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "GUID_FONT_CHANGED":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "GUJARATI_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "GURMUKHI_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "HANGUL_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "HEBREW_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "HIRAGANA_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ITALIC":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "KANNADA_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "KATAKANA_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "KHMER_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "LAO_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "LATIN_SCRIPT":
48
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "MALAYALAM_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "MONGOLIAN_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "MYANMAR_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ORIYA_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "PLAIN":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "SANS_SERIF_STYLE":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "SERIF_STYLE":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "SERIF_STYLE_MASK":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "SINHALA_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "STRIKE_THROUGH":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Strikeout, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "TAMIL_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "TELUGU_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "THAI_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "TIBETAN_SCRIPT":
49
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "UNDERLINED":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "UNSPECIFIED_SERIF_STYLE":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "WAVY_UNDERLINED":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
}
}
catch (Exception ex)
{
}
}
public void modificaTamanioTexto(string tamanio)
{
try
{
this.lblEtiqueta.Font = new
System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name,float.Parse(tamanio), this.lblEtiqueta.Font.Style,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
}
catch (Exception ex)
{
}
}
//this.rectangeShape1.BorderWidth = 4;
//this.rectangeShape1.Location = new System.Drawing.Point(0, 0);
//this.rectangeShape1.Name = "ovalShape1";
//this.rectangeShape1.Size = new System.Drawing.Size(12, 12);
50
////this.Controls.Add(shapeContainer1);
}
}
}
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TesisEjemplo1
{
class PanelComboBox: ObjetoBase
{
public bool poseeColorfondo = false;
Color coloFondo;
public bool poseeColorTextop = false;
Color colorEtiqueta;
public bool poseeContenido=false;
Array contenidoAuto ;
public PanelComboBox(string texto)
{
_TipoControl = "COMBOBOX";
seteaFormato();
}
public PanelComboBox() {
_TipoControl = "COMBOBOX";
seteaFormato();
}
51
public void seteaFormato()
{
this.BackColor = Color.White;
_ancho = 80;
_alto = 20;
this.Width = _ancho;
this.Height = _alto;
this.Cursor = Cursors.SizeAll;
this.BackgroundImageLayout = ImageLayout.Stretch;
this.BackgroundImage = global::TesisEjemplo1.Properties.Resources.CampoCombo;
}
52
private void InitializeComponent()
{
this.SuspendLayout();
//
// PanelComboBox
//
this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.ResumeLayout(false);
}
}
}
Codificacion PanelComboBoxNumerico
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TesisEjemplo1
{
class PanelComboBoxNumerico: ObjetoBase
{
public bool poseeColorfondo = false;
Color coloFondo;
public bool poseeColorTextop = false;
Color colorEtiqueta;
53
this.Height = _alto;
this.Cursor = Cursors.SizeAll;
this.BackgroundImageLayout = ImageLayout.Stretch;
this.BackgroundImage = global::TesisEjemplo1.Properties.Resources.CampoComboNum;
}
54
{
this.SuspendLayout();
//
// PanelComboBoxNumerico
//
this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.ResumeLayout(false);
}
}
Codificacion PaneEmail
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TesisEjemplo1
{
class PanelEmail: ObjetoBase
{
public bool poseeColorfondo = false;
Color coloFondo;
public bool poseeColorTextop = false;
Color colorEtiqueta;
55
_alto = 20;
this.Width = _ancho;
this.Height = _alto;
this.Cursor = Cursors.SizeAll;
}
}
}
}
Codificacion PanelesBase
using System;
using System.Collections.Generic;
using System.Linq;
56
using System.Text;
using System.Threading.Tasks;
namespace TesisEjemplo1
{
class PanelesBases : System.Windows.Forms.Panel
{
string nombre = "";
string identificacion = "";
string tipoObjeto = "";
string metodoClick = "";
string etiqueta = "";
}
}
Codificacion PaneEtiquetas
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TesisEjemplo1
{
class PanelEtiqueta : ObjetoBase
{
string ls_textoEtiqueta = "";
Label lblEtiqueta = new Label();
public string _Texto
{
set
{
this.ls_textoEtiqueta = value;
}
get
{
return this.ls_textoEtiqueta;
}
}
public bool poseeColorfondo = false;
Color coloFondo;
public bool poseeColorTextop = false;
Color colorEtiqueta;
public PanelEtiqueta(string contenido)
{
_TipoControl = "ETIQUETA";
seteaFormato(contenido);
}
public PanelEtiqueta() {
_TipoControl = "ETIQUETA";
seteaFormato("Etiqueta");
57
}
}
public Color ColorFondo
{
set{
this.poseeColorfondo = true;
this.coloFondo = value;
}
get {
return coloFondo;
}
}
58
catch (Exception ex) {
this.lblEtiqueta.Text = ex.Message;
}
}
public void cambiarColorEtiqueta(Color color)
{
this.lblEtiqueta.ForeColor = color;
}
public void cambiarColorFondo(Color color)
{
this.lblEtiqueta.BackColor = color;
this.BackColor = color;
}
public void cambiaFamiliaTexto(string nomrbreFamilia)
{
try
{
//this.lblEtiqueta.Font = new System.Drawing.Font(nomrbreFamilia, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblEtiqueta.Font = new System.Drawing.Font(nomrbreFamilia, 8.25F,
this.lblEtiqueta.Font.Style, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
}
catch (Exception ex)
{
}
}
public void cambiarEstiloTexto(string nombreEstilo)
{
try
{
switch (nombreEstilo)
{
case "ANTIALIAS_LOW_RES":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ANTIALIAS_NONE":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ANTIALIAS_STANDARD":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ANTIALIAS_SUBPIXEL":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "APPLICATION":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ARABIC_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ARMENIAN_SCRIPT":
59
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "BENGALI_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "BOLD":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "BROKEN_LINE_UNDERLINED":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "CJK_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "CURSIVE_STYLE":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "CYRILLIC_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "DEVANAGARI_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "DOTTED_UNDERLINED":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ETHIOPIC_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "EXTRA_BOLD":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "FANTASY_STYLE":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "GEORGIAN_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "GREEK_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "GUID_FONT_CHANGED":
60
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "GUJARATI_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "GURMUKHI_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "HANGUL_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "HEBREW_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "HIRAGANA_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ITALIC":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "KANNADA_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "KATAKANA_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "KHMER_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "LAO_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "LATIN_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "MALAYALAM_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "MONGOLIAN_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "MYANMAR_SCRIPT":
61
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ORIYA_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "PLAIN":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "SANS_SERIF_STYLE":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "SERIF_STYLE":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "SERIF_STYLE_MASK":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "SINHALA_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "STRIKE_THROUGH":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Strikeout, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "TAMIL_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "TELUGU_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "THAI_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "TIBETAN_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "UNDERLINED":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "UNSPECIFIED_SERIF_STYLE":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "WAVY_UNDERLINED":
62
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
}
}
catch (Exception ex)
{
}
}
public void modificaTamanioTexto(string tamanio)
{
try
{
this.lblEtiqueta.Font = new
System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name,float.Parse(tamanio), this.lblEtiqueta.Font.Style,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
}
catch (Exception ex)
{
}
}
}
}
}
Codificacion PanelPassword
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TesisEjemplo1
{
class PanelPassword : ObjetoBase
{
public bool poseeColorfondo = false;
Color coloFondo;
public bool poseeColorTextop = false;
Color colorEtiqueta;
63
public PanelPassword(string texto)
{
_TipoControl = "PASSWORD";
///seteaFormato();
this.Cursor = Cursors.SizeAll;
}
public PanelPassword() {
_TipoControl = "PASSWORD";
this.Cursor = Cursors.SizeAll;
}
64
}
}
}
Codificacion PanelRichTextBox
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TesisEjemplo1
{
class PanelRichTextBox : ObjetoBase
{
string ls_textoEtiqueta = "";
Label lblEtiqueta = new Label();
public string _Texto
{
set
{
this.ls_textoEtiqueta = value;
}
get
{
return this.ls_textoEtiqueta;
}
}
public bool poseeColorfondo = false;
Color coloFondo;
public bool poseeColorTextop = false;
Color colorEtiqueta;
public PanelRichTextBox(string contenido)
{
_TipoControl = "RICHTEXTBOX";
seteaFormato(contenido);
}
public PanelRichTextBox() {
_TipoControl = "RICHTEXTBOX";
seteaFormato("Etiqueta");
}
65
}
public Color ColorFondo
{
set{
this.poseeColorfondo = true;
this.coloFondo = value;
}
get {
return coloFondo;
}
}
66
this.BackColor = color;
}
public void cambiaFamiliaTexto(string nomrbreFamilia)
{
try
{
//this.lblEtiqueta.Font = new System.Drawing.Font(nomrbreFamilia, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblEtiqueta.Font = new System.Drawing.Font(nomrbreFamilia, 8.25F,
this.lblEtiqueta.Font.Style, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
}
catch (Exception ex)
{
}
}
public void cambiarEstiloTexto(string nombreEstilo)
{
try
{
switch (nombreEstilo)
{
case "ANTIALIAS_LOW_RES":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ANTIALIAS_NONE":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ANTIALIAS_STANDARD":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ANTIALIAS_SUBPIXEL":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "APPLICATION":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ARABIC_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ARMENIAN_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "BENGALI_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "BOLD":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
67
case "BROKEN_LINE_UNDERLINED":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "CJK_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "CURSIVE_STYLE":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "CYRILLIC_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "DEVANAGARI_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "DOTTED_UNDERLINED":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ETHIOPIC_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "EXTRA_BOLD":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "FANTASY_STYLE":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "GEORGIAN_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "GREEK_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "GUID_FONT_CHANGED":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "GUJARATI_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "GURMUKHI_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "HANGUL_SCRIPT":
68
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "HEBREW_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "HIRAGANA_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ITALIC":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "KANNADA_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "KATAKANA_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "KHMER_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "LAO_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "LATIN_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "MALAYALAM_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "MONGOLIAN_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "MYANMAR_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "ORIYA_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "PLAIN":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "SANS_SERIF_STYLE":
69
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "SERIF_STYLE":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "SERIF_STYLE_MASK":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "SINHALA_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "STRIKE_THROUGH":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Strikeout, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "TAMIL_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "TELUGU_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "THAI_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "TIBETAN_SCRIPT":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "UNDERLINED":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "UNSPECIFIED_SERIF_STYLE":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
case "WAVY_UNDERLINED":
this.lblEtiqueta.Font = new System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name, 8.25F,
System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
break;
}
}
catch (Exception ex)
{
}
}
public void modificaTamanioTexto(string tamanio)
{
try
70
{
this.lblEtiqueta.Font = new
System.Drawing.Font(lblEtiqueta.Font.FontFamily.Name,float.Parse(tamanio), this.lblEtiqueta.Font.Style,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
}
catch (Exception ex)
{
}
}
}
}
}
Codificacion PanelTextoAutocompletar
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TesisEjemplo1
{
class PanelTextoAutocompletar: ObjetoBase
{
public bool poseeColorfondo = false;
Color coloFondo;
public bool poseeColorTextop = false;
Color colorEtiqueta;
public bool poseeContenido=false;
Array contenidoAuto ;
public PanelTextoAutocompletar(string texto)
{
_TipoControl = "TEXTOAUTOCOMPLETAR";
seteaFormato();
}
public PanelTextoAutocompletar() {
_TipoControl = "TEXTOAUTOCOMPLETAR";
seteaFormato();
}
71
{
this.BackColor = Color.White;
_TipoControl = "TEXTOAUTOCOMPLETAR";
seteaFormato();
}
72
}
}
}
}
}
Codificacion PanelTextoAutoCorregir
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TesisEjemplo1
{
class PanelTextoAutocorregir: ObjetoBase
{
public bool poseeColorfondo = false;
Color coloFondo;
public bool poseeColorTextop = false;
Color colorEtiqueta;
}
public PanelTextoAutocorregir() {
_TipoControl = "CAJATEXTOAUTOCORREGIR";
seteaFormato();
}
73
this.BackColor = Color.White;
_ancho = 80;
_alto = 20;
Width = _ancho;
Height = _alto;
this.Cursor = Cursors.SizeAll;
}
}
}
}
Codificacion PlatillasFunciones
using System;
74
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TesisEjemplo1
{
class PantillasFunciones
{
public static string PlantillaAccionBoton(string nombreObjeto)
{
return "\n\tpublic void Action" + nombreObjeto + "_(ActionEvento evento){\n\t}" ;
}
public static string PlatillaFormato(string nombreObjeto)
{
return "";
}
}
}
Codificacion Presentacion
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TesisEjemplo1
{
public partial class Presentacion : Form
{
int i = 0;
public Presentacion()
{
InitializeComponent();
}
75
this.Close();
}
}
}
}
Codificacion Programs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TesisEjemplo1
{
static class Program
{
/// <summary>
/// Punto de entrada principal para la aplicación.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
Codificacion VentanaColores
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TesisEjemplo1
{
public partial class VentanaColores : Form
{
public Color colorClick
{
set;
get;
}
76
public string ColorSeleccionado
{
set;
get;
}
public VentanaColores()
{
InitializeComponent();
}
77
ColorSeleccionado = "BEIGE";
colorClick = Color.Beige;
this.Close();
}
78
colorClick = Color.CadetBlue;
this.Close();
}
79
this.Close();
}
80
}
81
private void pictureBox52_Click(object sender, EventArgs e)
{
ColorSeleccionado = "DEEPPINK";
colorClick = Color.DeepPink;
this.Close();
}
82
private void pictureBox43_Click(object sender, EventArgs e)
{
ColorSeleccionado = "GAINSBORO";
colorClick = Color.Gainsboro;
this.Close();
}
83
{
ColorSeleccionado = "HOTPINK";
colorClick = Color.HotPink;
this.Close();
}
84
ColorSeleccionado = "LEMONCHIFFON";
colorClick = Color.LemonChiffon;
this.Close();
}
85
colorClick = Color.LightPink;
this.Close();
}
86
this.Close();
}
87
}
88
private void pictureBox115_Click(object sender, EventArgs e)
{
ColorSeleccionado = "NAVAJOWHITE";
colorClick = Color.NavajoWhite;
this.Close();
}
89
private void pictureBox107_Click(object sender, EventArgs e)
{
ColorSeleccionado = "PALEGOLDENROD";
colorClick = Color.PaleGoldenrod;
this.Close();
}
90
{
ColorSeleccionado = "PLUM";
colorClick = Color.Plum;
this.Close();
}
91
ColorSeleccionado = "SANDYBROWN";
colorClick = Color.SandyBrown;
this.Close();
}
92
colorClick = Color.Snow;
this.Close();
}
93
this.Close();
}
Codificacion DialogAccionBoton
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TesisEjemplo1
{
public partial class DialogoAccionBoton : Form
94
{
public string contenidoT
{
set;
get;
}
public DialogoAccionBoton()
{
InitializeComponent();
}
Codificacion Form1
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TesisEjemplo1
{
public partial class Form1 : Form
{
#region "declaracion de variable"
95
ArrayList arreglo = new ArrayList();
#region variableFormularioManipulacion
string ls_DireccionArchivoJava = "";
public Color _Color
{
set;
get;
}
public string _DirectorioJava
{
set
{
this.ls_DireccionArchivoJava = value;
}
get
{
return this.ls_DireccionArchivoJava;
}
}
string ls_NombreArchivoJava = "";
public string _NombreJava
{
set
{
this.ls_NombreArchivoJava = value;
}
get
{
return this.ls_NombreArchivoJava;
}
}
public string nombreImagenFondo
{
set;
get;
}
#endregion
#region variables formulario
public string nombreIcono
{
set
{
this.cambiaIcono = true;
this.nombreIconoDefecto = value;
}
get
{
return this.nombreIconoDefecto;
}
}
#endregion
#endregion
public Form1()
{
InitializeComponent();
96
}
/////////////////////////////////////////////////////////////////////////////
#region
indiceSeleccionado = i;
pnlSeleccionado = pnlIndice;
97
llenaPropiedades((object)pnl);
}
else
{
pnlIndice.BorderStyle = BorderStyle.None;
}
}
if (e.Button.Equals(MouseButtons.Left))
{
posMouseBotonX = e.Location.X;
posMouseBotonY = e.Location.Y;
botonPresionado = true;
}
}
#endregion
int mostrar = 0;
private void Form1_Load(object sender, EventArgs e)
{
Presentacion p = new Presentacion();
p.Show();
this.Visible = false;
this.Hide();
this.cmbTipoFondo.SelectedIndex = 0;
this.pnlSeleccionarColor.Visible = false;
this.pnlBuscarImgFondo.Visible = false;
crearDirectorios();
this.cmbTipoFondo.SelectedIndex = 0;
}
98
System.IO.StreamReader archivoclassLectura = new System.IO.StreamReader(pathInput + "\\" +
"src" + "\\" + "Clase1.java");
while (!archivoclassLectura.EndOfStream)
{
contenidoArchivoJava = archivoclassLectura.ReadLine();
if (contenidoArchivoJava.Replace(" ", "") != "")
{
if (rutaPaquetes == "")
{
if (contenidoArchivoJava.Substring(0, 7) == "package")
{
rutaPaquetes = contenidoArchivoJava.Substring(7, contenidoArchivoJava.Length -
7).Replace(";", "").Replace(".", "\\").Replace(" ", "");
if (!System.IO.Directory.Exists(pathOutput + "\\src\\" + rutaPaquetes))
{
System.IO.Directory.CreateDirectory(pathOutput + "\\src\\" + rutaPaquetes);
}
}
}
}
}
#endregion
#region copiar archivos y carpetas a la solucion
System.IO.File.Copy(pathInput + "\\" + "src\\Clase1.java", pathOutput + "\\src\\" + rutaPaquetes +
"\\Clase1.java", true);
if (!System.IO.Directory.Exists(""))
{
System.IO.Directory.CreateDirectory(pathOutput + "\\" + ".preprocessed");
}
if (!System.IO.Directory.Exists(pathOutput + "\\.settings"))
{
System.IO.Directory.CreateDirectory(pathOutput + "\\.settings");
}
System.IO.File.Copy("C:\\FuentesDesarrolladosTHWPR\\Plantillas\\.settings\\org.eclipse.jdt.core.prefs",
pathOutput + "\\.settings\\org.eclipse.jdt.core.prefs", true);
if (!System.IO.Directory.Exists(pathOutput + "\\res\\img"))
{
System.IO.Directory.CreateDirectory(pathOutput + "\\res\\img");
}
string[] archivosIconos = System.IO.Directory.GetFiles(pathInput + "\\res\\img");
string dirimg="", rchimg="";
for (int i = 0; i < archivosIconos.Length; i++)
{
separaDirArchivo(archivosIconos[i], ref dirimg, ref rchimg);
System.IO.File.Copy(pathInput + "\\res\\img\\" + rchimg, pathOutput + "\\res\\img\\" + rchimg,
true);
iconoaplicacion = rchimg;
}
string[] archivosImagenes = System.IO.Directory.GetFiles(pathInput + "\\res");
for (int i = 0; i < archivosImagenes.Length; i++)
{
if (archivosImagenes[i] != "img")
{
separaDirArchivo(archivosImagenes[i], ref dirimg, ref rchimg);
System.IO.File.Copy(pathInput + "\\res\\" + rchimg, pathOutput + "\\res\\" + rchimg, true);
99
}
}
System.IO.File.Copy("C:\\FuentesDesarrolladosTHWPR\\Plantillas\\.classpath", pathOutput +
"\\.classpath", true);
System.IO.StreamReader archivoproyectFile = new
System.IO.StreamReader("C:\\FuentesDesarrolladosTHWPR\\Plantillas\\.project");
string contenidoArchivoproyect = "";
while (!archivoproyectFile.EndOfStream)
{
contenidoArchivoproyect = contenidoArchivoproyect +
archivoproyectFile.ReadLine().Replace("[[NOMBREAPP]]", nombreApp) + "\n";
}
//contenidoArchivoproyect.Replace("[[NOMBREAPP]]", nombreApp);
System.IO.StreamWriter archivoProyectFinal = new System.IO.StreamWriter(pathOutput +
"\\.project", true);
archivoProyectFinal.WriteLine(contenidoArchivoproyect);
archivoProyectFinal.Close();
#endregion
100
// this.txtResultadoMovimiento.Text = resultadoFinal;
//}
//panel.Left = 1;
//panel.Top = 1;
panel.Left = posX;
panel.Top = posY;
panel1.Controls.Add(panel);
///panel.Text = ((char)(i + 65)).ToString();
//boton.Click += new System.EventHandler(ClickButton);
panel.MouseMove += new MouseEventHandler(btnMover_MouseMove);
panel.MouseDown += new MouseEventHandler(btnMover_MouseDown);
panel.MouseUp += new MouseEventHandler(btnMover_MouseUp);
this.MouseMove += new MouseEventHandler(Form_MouseMove);
panel.ContextMenuStrip = mnuClickDerecho;
arreglo.Add(panel);
}
else
{
bj._ancho = this.panel1.Width;
bj._alto = this.panel1.Height;
panel.Top = 0;
panel.Left = 0;
panel.Width = this.panel1.Width;
panel.Height = this.panel1.Height;
panel1.Controls.Add(panel);
panel.ContextMenuStrip = mnuClickDerecho;
arreglo.Add(panel);
101
}
}
#endregion
102
}
if (tipo == "PASSWORD")
{
nombre = "Password_";
}
if (tipo == "EMAIL")
{
nombre = "Email_";
}
if (tipo == "TEXTOAUTOCOMPLETAR")
{
nombre = "TxtAutoCompleta_";
}
if (tipo == "CAJATEXTOAUTOCORREGIR")
{
nombre = "TxtAutoCorregir_";
}
if (tipo == "TEXTOAUTOCOMPLETAR_")
{
nombre = "TxtCompletar_";
}
if (tipo == "CHECKBOX")
{
nombre = "CheckBox_";
}
if (tipo == "COMBOBOX")
{
nombre = "ComboBox_";
}
if (tipo == "COMBOBOXNUMERICO")
{
nombre = "ComboBoxNum_";
}
if (tipo == "CAMPOFECHA")
{
nombre = "CampoFecha_";
}
if (tipo == "OPCION")
{
nombre = "Opcion_";
}
if (tipo == "IMAGEN")
{
nombre = "Imagen_";
}
if (tipo == "BROWSER")
{
nombre = "Browser_";
}
if (tipo == "MAPA")
{
nombre = "Mapa_";
}
int indiceObjeto = 1;
bool repetido=false;
do
{
103
for (int i = 0; i < arreglo.Count; i++)
{
ObjetoBase bs = (ObjetoBase)arreglo[i];
if (nombre + indiceObjeto.ToString() == bs._Nombrecontrol)
{
indiceObjeto++;
repetido = true;
}
else
{
repetido = false;
}
}
} while (repetido);
nombre = nombre + indiceObjeto;
if (tipo == "ETIQUETA")
{
PanelEtiqueta pe = (PanelEtiqueta)arreglo[arreglo.Count - 1];
pe._Nombrecontrol = nombre;
}
if (tipo == "RICHTEXTBOX")
{
PanelRichTextBox prtb = (PanelRichTextBox)arreglo[arreglo.Count - 1];
prtb._Nombrecontrol = nombre;
}
if (tipo == "CAJATEXTO")
{
PanelCajatexto pct = (PanelCajatexto)arreglo[arreglo.Count - 1];
pct._Nombrecontrol = nombre;
}
if (tipo == "PASSWORD")
{
PanelPassword pct = (PanelPassword)arreglo[arreglo.Count - 1];
pct._Nombrecontrol = nombre;
}
if (tipo == "EMAIL")
{
PanelEmail pct = (PanelEmail)arreglo[arreglo.Count - 1];
pct._Nombrecontrol = nombre;
}
if (tipo == "TEXTOAUTOCOMPLETAR")
{
PanelTextoAutocompletar pct = (PanelTextoAutocompletar)arreglo[arreglo.Count - 1];
pct._Nombrecontrol = nombre;
}
if (tipo == "CAJATEXTOAUTOCORREGIR")
{
PanelTextoAutocorregir pct = (PanelTextoAutocorregir)arreglo[arreglo.Count - 1];
pct._Nombrecontrol = nombre;
}
if (tipo == "TEXTOAUTOCOMPLETAR_")
{
PanelAutoCompletar pct = (PanelAutoCompletar)arreglo[arreglo.Count - 1];
pct._Nombrecontrol = nombre;
}
if (tipo == "CHECKBOX")
104
{
PanelCheckBox pct = (PanelCheckBox)arreglo[arreglo.Count - 1];
pct._Nombrecontrol = nombre;
}
if (tipo == "COMBOBOX")
{
PanelComboBox pct = (PanelComboBox)arreglo[arreglo.Count - 1];
pct._Nombrecontrol = nombre;
}
if (tipo == "COMBOBOXNUMERICO")
{
PanelComboBoxNumerico pct = (PanelComboBoxNumerico)arreglo[arreglo.Count - 1];
pct._Nombrecontrol = nombre;
}
if (tipo == "CAMPOFECHA")
{
PanelCampoFecha pct = (PanelCampoFecha)arreglo[arreglo.Count - 1];
pct._Nombrecontrol = nombre;
}
if (tipo == "OPCION")
{
PanelCampoOpcion pct = (PanelCampoOpcion)arreglo[arreglo.Count - 1];
pct._Nombrecontrol = nombre;
}
if (tipo == "BOTON")
{
PanelBoton pct = (PanelBoton)arreglo[arreglo.Count - 1];
pct._Nombrecontrol = nombre;
}
if (tipo == "IMAGEN")
{
PanelCampoImagen pct = (PanelCampoImagen)arreglo[arreglo.Count - 1];
pct._Nombrecontrol = nombre;
}
if (tipo == "BROWSER")
{
PanelBrowserField pct = (PanelBrowserField)arreglo[arreglo.Count - 1];
pct._Nombrecontrol = nombre;
}
if (tipo == "MAPA")
{
PanelCamposMapa pct = (PanelCamposMapa)arreglo[arreglo.Count - 1];
pct._Nombrecontrol = nombre;
}
}
}
105
{
ObjetoBase obj = (ObjetoBase)arreglo[i];
if (posY < obj._posY)
{
posY = obj._posY;
}
}
posY += 20;
}
}
"\n\n" +
"import java.util.Vector;\n\n" +
"import net.rim.device.api.ui.Field;\n" +
"import net.rim.device.api.ui.Manager;\n" +
"import net.rim.device.api.ui.XYPoint;\n\n\n" +
"public class Clase1 extends net.rim.device.api.ui.UiApplication{\n" +
" public static void main(String[] args)\n" +
" {\n" +
" Clase1 theApp = new Clase1();\n" +
" theApp.enterEventDispatcher();\n" +
" }\n" +
" public Clase1()\n" +
" {\n" +
" pushScreen(new MyScreen());\n" +
" }\n" +
"}\n" +
106
"final class MyScreen extends MainScreen\n" +
"{\n" +
" public MyScreen()\n" +
" {\n" +
" super( net.rim.device.api.ui.container.FullScreen.DEFAULT_CLOSE |
net.rim.device.api.ui.container.FullScreen.DEFAULT_MENU );\n" +
" StandardTitleBar myTitleBar = new StandardTitleBar()\n" +
" .addIcon(\"" +
((this.txtImagenIcono.Text!="")?this.txtImagenIcono.Text:nombreIconoDefecto).ToString() + "\")\n" +
" .addTitle(\"" + this.txtTituloPantalla.Text + "\")\n";
if(chkReloj.Checked)
{
contenidoArchivo = contenidoArchivo + " .addClock()\n" ;
}
if(chkNotificaciones.Checked)
{
contenidoArchivo = contenidoArchivo + " .addNotifications()\n";
}
if (chkSenal.Checked)
{
contenidoArchivo = contenidoArchivo + " .addSignalIndicator()\n";
}
contenidoArchivo = contenidoArchivo + ";\n" +
"
myTitleBar.setPropertyValue(StandardTitleBar.PROPERTY_BATTERY_VISIBILITY,\n" +
" StandardTitleBar.BATTERY_VISIBLE_LOW_OR_CHARGING);\n" +
" setTitleBar(myTitleBar);\n" +
" ControlLibreFieldManager manejador1 = new ControlLibreFieldManager();\n";
if (this.cmbTipoFondo.Items[this.cmbTipoFondo.SelectedIndex].ToString() == "IMAGEN")
{
contenidoArchivo = contenidoArchivo +
" Bitmap bitmapImage = Bitmap.getBitmapResource(\"" + nombreImagenFondo +
"\");\n" +
"
getMainManager().setBackground(BackgroundFactory.createBitmapBackground(bitmapImage,0, 0,
Background.REPEAT_SCALE_TO_FIT));\n";
}
for (int i = 0; i < arreglo.Count; i++)
{
ObjetoBase obj = (ObjetoBase)arreglo[i];
#region "generacion de etiquetas"
if (obj._TipoControl == "ETIQUETA")
{
PanelEtiqueta pe = (PanelEtiqueta)arreglo[i];
if (!pe.poseeColorfondo && !pe.poseeColorTextop)
{
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.LabelField " + pe._Nombrecontrol + "= new
net.rim.device.api.ui.component.LabelField(\"" + pe._Texto.Replace(Encoding.ASCII.GetString(new byte[]
{ (byte)13 }), "").Replace(Encoding.ASCII.GetString(new byte[] { (byte)10 }), "") + "\");\n";
}
else
{
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.LabelField " + pe._Nombrecontrol + " = new
107
net.rim.device.api.ui.component.LabelField(\"" + pe._Texto.Replace(Encoding.ASCII.GetString(new byte[]
{ (byte)13 }), "").Replace(Encoding.ASCII.GetString(new byte[] { (byte)10 }), "") + "\"){\n" +
" public void paint(Graphics g){\n";
if (pe.poseeColorfondo)
{
contenidoArchivo = contenidoArchivo + " g.setBackgroundColor(Color." +
pe.ColorFondo.Name.ToUpper() + ");\n" +
" g.fillRect(0,0,getWidth(),getHeight());\n";
}
if(pe.poseeColorTextop){
contenidoArchivo = contenidoArchivo + " g.setColor(Color." +
pe.ColorEtiqueta.Name.ToUpper() + ");\n";
}
contenidoArchivo = contenidoArchivo + " g.clear();\n" +
" super.paint(g);\n" +
" }\n" +
" };\n";
}
if (pe.lb_poseeOtraFamiliaTexto)
{
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily =
FontFamily.forName(\"" + pe._NombreFamiliaTexto + "\");\n";
}
else
{
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily = " +
pe._Nombrecontrol + ".getFont().getFontFamily();\n";
}
String textoPlano = (pe.lb_poseeEstilo == true) ? pe._NombreEstiloTexto.ToString() :
"PLAIN";
string tamanio = (pe.lb_otrotamanioTexto == true) ? pe._TamanioTexto.ToString() :
"10";
contenidoArchivo = contenidoArchivo + " Font myFont =
fontFamily.getFont(" + pe._Nombrecontrol + ".getFont().getLeading(), " + pe._Nombrecontrol +
".getFont().getHeight()).derive(Font." + textoPlano + ", " + tamanio + ", Ui.UNITS_pt);\n";
contenidoArchivo = contenidoArchivo + " " + pe._Nombrecontrol +
".setFont(myFont);\n";
contenidoArchivo = contenidoArchivo + " }\n" +
" catch(Exception ex)\n" +
" {\n" +
" }\n";
}
108
if (obj._TipoControl == "RICHTEXTBOX")
{
PanelRichTextBox prt = (PanelRichTextBox)arreglo[i];
if (!prt.poseeColorfondo && !prt.poseeColorTextop)
{
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.RichTextField " + prt._Nombrecontrol + "= new
net.rim.device.api.ui.component.RichTextField(\"" + prt._Texto.Replace(Encoding.ASCII.GetString(new
byte[] { (byte)13 }), "\\n").Replace(Encoding.ASCII.GetString(new byte[] { (byte)10 }), "") + "\");\n";
}
else
{
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.RichTextField " + prt._Nombrecontrol + " = new
net.rim.device.api.ui.component.RichTextField(\"" + prt._Texto.Replace(Encoding.ASCII.GetString(new
byte[] { (byte)10 }), "\\n").Replace(Encoding.ASCII.GetString(new byte[] { (byte)10 }), "") + "\"){\n" +
" public void paint(Graphics g){\n";
if (prt.poseeColorfondo)
{
contenidoArchivo = contenidoArchivo + " g.setBackgroundColor(Color." +
prt.ColorFondo.Name.ToUpper() + ");\n" +
" g.fillRect(0,0,getWidth(),getHeight());\n";
}
if (prt.poseeColorTextop)
{
contenidoArchivo = contenidoArchivo + " g.setColor(Color." +
prt.ColorEtiqueta.Name.ToUpper() + ");\n";
}
contenidoArchivo = contenidoArchivo + " g.clear();\n" +
" super.paint(g);\n" +
" }\n" +
" };\n";
}
if (prt.lb_poseeOtraFamiliaTexto)
{
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily =
FontFamily.forName(\"" + prt._NombreFamiliaTexto + "\");\n";
}
else
{
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily = " +
prt._Nombrecontrol + ".getFont().getFontFamily();\n";
}
String textoPlano = (prt.lb_poseeEstilo == true) ? prt._NombreEstiloTexto.ToString() :
"PLAIN";
string tamanio = (prt.lb_otrotamanioTexto == true) ? prt._TamanioTexto.ToString() :
"10";
109
contenidoArchivo = contenidoArchivo + " Font myFont =
fontFamily.getFont(" + prt._Nombrecontrol + ".getFont().getLeading(), " + prt._Nombrecontrol +
".getFont().getHeight()).derive(Font." + textoPlano + ", " + tamanio + ", Ui.UNITS_pt);\n";
contenidoArchivo = contenidoArchivo + " " + prt._Nombrecontrol +
".setFont(myFont);\n";
contenidoArchivo = contenidoArchivo + " }\n" +
" catch(Exception ex)\n" +
" {\n" +
" }\n";
}
}
else
{
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.TextField " + pct._Nombrecontrol + " = new
net.rim.device.api.ui.component.TextField(){\n" +
" public void paint(Graphics g){\n";
if (pct.poseeColorfondo)
{
contenidoArchivo = contenidoArchivo + " g.setBackgroundColor(Color." +
pct.ColorFondo.Name.ToUpper() + ");\n" +
" g.fillRect(0,0,getWidth(),getHeight());\n";
}
if (pct.poseeColorTextop)
{
contenidoArchivo = contenidoArchivo + " g.setColor(Color." +
pct.ColorEtiqueta.Name.ToUpper() + ");\n";
}
contenidoArchivo = contenidoArchivo + " g.clear();\n" +
" super.paint(g);\n" +
" }\n" +
" };\n";
}
110
if (pct.lb_poseeOtraFamiliaTexto)
{
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily =
FontFamily.forName(\"" + pct._NombreFamiliaTexto + "\");\n";
}
else
{
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily = " +
pct._Nombrecontrol + ".getFont().getFontFamily();\n";
}
String textoPlano = (pct.lb_poseeEstilo == true) ? pct._NombreEstiloTexto.ToString() :
"PLAIN";
string tamanio = (pct.lb_otrotamanioTexto == true) ? pct._TamanioTexto.ToString() :
"10";
contenidoArchivo = contenidoArchivo + " Font myFont =
fontFamily.getFont(" + pct._Nombrecontrol + ".getFont().getLeading(), " + pct._Nombrecontrol +
".getFont().getHeight()).derive(Font." + textoPlano + ", " + tamanio + ", Ui.UNITS_pt);\n";
contenidoArchivo = contenidoArchivo + " " + pct._Nombrecontrol +
".setFont(myFont);\n";
contenidoArchivo = contenidoArchivo + " }\n" +
" catch(Exception ex)\n" +
" {\n" +
" }\n";
}
}
else
{
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.PasswordEditField " + ppwd._Nombrecontrol + " = new
net.rim.device.api.ui.component.PasswordEditField(){\n" +
" public void paint(Graphics g){\n";
if (ppwd.poseeColorfondo)
{
contenidoArchivo = contenidoArchivo + " g.setBackgroundColor(Color." +
ppwd.ColorFondo.Name.ToUpper() + ");\n" +
" g.fillRect(0,0,getWidth(),getHeight());\n";
111
}
if (ppwd.poseeColorTextop)
{
contenidoArchivo = contenidoArchivo + " g.setColor(Color." +
ppwd.ColorEtiqueta.Name.ToUpper() + ");\n";
}
contenidoArchivo = contenidoArchivo + " g.clear();\n" +
" super.paint(g);\n" +
" }\n" +
" };\n";
}
contenidoArchivo = contenidoArchivo + " manejador1.add(" + ppwd._Nombrecontrol
+ "," + (ppwd._posX * 2).ToString() + "," + (ppwd._posY * 2).ToString() + ");\n";
}
#endregion
#region "generacion de campos de correos"
if (obj._TipoControl == "EMAIL")
{
/*PanelCajatexto pct = (PanelCajatexto)arreglo[i];
contenidoArchivo = contenidoArchivo + " net.rim.device.api.ui.component.TextField
" + pct._Nombrecontrol + "= new net.rim.device.api.ui.component.TextField();\n" +
" manejador1.add(" + pct._Nombrecontrol + "," + (pct._posX * 2).ToString() + "," +
(pct._posY * 2).ToString() + ");\n";*/
//" this.add(" + pct._Nombrecontrol + ");\n";
PanelEmail pemail = (PanelEmail)arreglo[i];
if (!pemail.poseeColorfondo && !pemail.poseeColorTextop)
{
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.EmailAddressEditField " + pemail._Nombrecontrol + "= new
net.rim.device.api.ui.component.EmailAddressEditField(\"\",\"\");\n";
}
else
{
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.EmailAddressEditField " + pemail._Nombrecontrol + " = new
net.rim.device.api.ui.component.EmailAddressEditField(\"\",\"\"){\n" +
" public void paint(Graphics g){\n";
if (pemail.poseeColorfondo)
{
contenidoArchivo = contenidoArchivo + " g.setBackgroundColor(Color." +
pemail.ColorFondo.Name.ToUpper() + ");\n" +
" g.fillRect(0,0,getWidth(),getHeight());\n";
}
if (pemail.poseeColorTextop)
{
contenidoArchivo = contenidoArchivo + " g.setColor(Color." +
pemail.ColorEtiqueta.Name.ToUpper() + ");\n";
}
contenidoArchivo = contenidoArchivo + " g.clear();\n" +
" super.paint(g);\n" +
" }\n" +
" };\n";
}
if (pemail.lb_poseeEstilo || pemail.lb_poseeOtraFamiliaTexto ||
pemail.lb_otrotamanioTexto)
112
{
contenidoArchivo = contenidoArchivo +
" try\n" +
" {\n" +
" Font f = " + pemail._Nombrecontrol + ".getFont();\n";
if (pemail.lb_poseeOtraFamiliaTexto)
{
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily =
FontFamily.forName(\"" + pemail._NombreFamiliaTexto + "\");\n";
}
else
{
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily = " +
pemail._Nombrecontrol + ".getFont().getFontFamily();\n";
}
String textoPlano = (pemail.lb_poseeEstilo == true) ?
pemail._NombreEstiloTexto.ToString() : "PLAIN";
string tamanio = (pemail.lb_otrotamanioTexto == true) ?
pemail._TamanioTexto.ToString() : "10";
contenidoArchivo = contenidoArchivo + " Font myFont =
fontFamily.getFont(" + pemail._Nombrecontrol + ".getFont().getLeading(), " + pemail._Nombrecontrol +
".getFont().getHeight()).derive(Font." + textoPlano + ", " + tamanio + ", Ui.UNITS_pt);\n";
contenidoArchivo = contenidoArchivo + " " + pemail._Nombrecontrol +
".setFont(myFont);\n";
contenidoArchivo = contenidoArchivo + " }\n" +
" catch(Exception ex)\n" +
" {\n" +
" }\n";
}
113
{
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.AutoCompleteField " + pct._Nombrecontrol + "= new
net.rim.device.api.ui.component.AutoCompleteField(filterList_" + pct._Nombrecontrol +");\n";
}
else
{
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.AutoCompleteField " + pct._Nombrecontrol + " = new
net.rim.device.api.ui.component.AutoCompleteField(filterList_" + pct._Nombrecontrol +"){\n" +
" public void paint(Graphics g){\n";
if (pct.poseeColorfondo)
{
contenidoArchivo = contenidoArchivo + " g.setBackgroundColor(Color." +
pct.ColorFondo.Name.ToUpper() + ");\n" +
" g.fillRect(0,0,getWidth(),getHeight());\n";
}
if (pct.poseeColorTextop)
{
contenidoArchivo = contenidoArchivo + " g.setColor(Color." +
pct.ColorEtiqueta.Name.ToUpper() + ");\n";
}
contenidoArchivo = contenidoArchivo + " g.clear();\n" +
" super.paint(g);\n" +
" }\n" +
" };\n";
}
if (pct.lb_poseeOtraFamiliaTexto)
{
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily =
FontFamily.forName(\"" + pct._NombreFamiliaTexto + "\");\n";
}
else
{
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily = " +
pct._Nombrecontrol + ".getFont().getFontFamily();\n";
}
String textoPlano = (pct.lb_poseeEstilo == true) ? pct._NombreEstiloTexto.ToString() :
"PLAIN";
string tamanio = (pct.lb_otrotamanioTexto == true) ? pct._TamanioTexto.ToString() :
"10";
contenidoArchivo = contenidoArchivo + " Font myFont =
fontFamily.getFont(" + pct._Nombrecontrol + ".getFont().getLeading(), " + pct._Nombrecontrol +
".getFont().getHeight()).derive(Font." + textoPlano + ", " + tamanio + ", Ui.UNITS_pt);\n";
contenidoArchivo = contenidoArchivo + " " + pct._Nombrecontrol +
".setFont(myFont);\n";
contenidoArchivo = contenidoArchivo + " }\n" +
" catch(Exception ex)\n" +
114
" {\n" +
" }\n";
}
}
else
{
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.AutoTextEditField " + pct._Nombrecontrol + " = new
net.rim.device.api.ui.component.AutoTextEditField(){\n" +
" public void paint(Graphics g){\n";
if (pct.poseeColorfondo)
{
contenidoArchivo = contenidoArchivo + " g.setBackgroundColor(Color." +
pct.ColorFondo.Name.ToUpper() + ");\n" +
" g.fillRect(0,0,getWidth(),getHeight());\n";
}
if (pct.poseeColorTextop)
{
contenidoArchivo = contenidoArchivo + " g.setColor(Color." +
pct.ColorEtiqueta.Name.ToUpper() + ");\n";
}
contenidoArchivo = contenidoArchivo + " g.clear();\n" +
" super.paint(g);\n" +
" }\n" +
" };\n";
}
if (pct.lb_poseeOtraFamiliaTexto)
{
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily =
FontFamily.forName(\"" + pct._NombreFamiliaTexto + "\");\n";
}
else
{
115
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily = " +
pct._Nombrecontrol + ".getFont().getFontFamily();\n";
}
String textoPlano = (pct.lb_poseeEstilo == true) ? pct._NombreEstiloTexto.ToString() :
"PLAIN";
string tamanio = (pct.lb_otrotamanioTexto == true) ? pct._TamanioTexto.ToString() :
"10";
contenidoArchivo = contenidoArchivo + " Font myFont =
fontFamily.getFont(" + pct._Nombrecontrol + ".getFont().getLeading(), " + pct._Nombrecontrol +
".getFont().getHeight()).derive(Font." + textoPlano + ", " + tamanio + ", Ui.UNITS_pt);\n";
contenidoArchivo = contenidoArchivo + " " + pct._Nombrecontrol +
".setFont(myFont);\n";
contenidoArchivo = contenidoArchivo + " }\n" +
" catch(Exception ex)\n" +
" {\n" +
" }\n";
}
}
else
{
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.ActiveAutoTextEditField " + pct._Nombrecontrol + " = new
net.rim.device.api.ui.component.ActiveAutoTextEditField(\"\",\"\"){\n" +
" public void paint(Graphics g){\n";
if (pct.poseeColorfondo)
{
contenidoArchivo = contenidoArchivo + " g.setBackgroundColor(Color." +
pct.ColorFondo.Name.ToUpper() + ");\n" +
" g.fillRect(0,0,getWidth(),getHeight());\n";
}
if (pct.poseeColorTextop)
{
contenidoArchivo = contenidoArchivo + " g.setColor(Color." +
pct.ColorEtiqueta.Name.ToUpper() + ");\n";
}
contenidoArchivo = contenidoArchivo + " g.clear();\n" +
" super.paint(g);\n" +
" }\n" +
" };\n";
}
116
{
contenidoArchivo = contenidoArchivo +
" try\n" +
" {\n" +
" Font f = " + pct._Nombrecontrol + ".getFont();\n";
if (pct.lb_poseeOtraFamiliaTexto)
{
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily =
FontFamily.forName(\"" + pct._NombreFamiliaTexto + "\");\n";
}
else
{
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily = " +
pct._Nombrecontrol + ".getFont().getFontFamily();\n";
}
String textoPlano = (pct.lb_poseeEstilo == true) ? pct._NombreEstiloTexto.ToString() :
"PLAIN";
string tamanio = (pct.lb_otrotamanioTexto == true) ? pct._TamanioTexto.ToString() :
"10";
contenidoArchivo = contenidoArchivo + " Font myFont =
fontFamily.getFont(" + pct._Nombrecontrol + ".getFont().getLeading(), " + pct._Nombrecontrol +
".getFont().getHeight()).derive(Font." + textoPlano + ", " + tamanio + ", Ui.UNITS_pt);\n";
contenidoArchivo = contenidoArchivo + " " + pct._Nombrecontrol +
".setFont(myFont);\n";
contenidoArchivo = contenidoArchivo + " }\n" +
" catch(Exception ex)\n" +
" {\n" +
" }\n";
}
}
else
{
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.CheckboxField " + pe._Nombrecontrol + " = new
net.rim.device.api.ui.component.CheckboxField(\"" + pe._Texto.Replace(Encoding.ASCII.GetString(new
byte[] { (byte)13 }), "").Replace(Encoding.ASCII.GetString(new byte[] { (byte)10 }), "") + "\",false){\n" +
" public void paint(Graphics g){\n";
if (pe.poseeColorfondo)
{
117
contenidoArchivo = contenidoArchivo + " g.setBackgroundColor(Color." +
pe.ColorFondo.Name.ToUpper() + ");\n" +
" g.fillRect(0,0,getWidth(),getHeight());\n";
}
if (pe.poseeColorTextop)
{
contenidoArchivo = contenidoArchivo + " g.setColor(Color." +
pe.ColorEtiqueta.Name.ToUpper() + ");\n";
}
contenidoArchivo = contenidoArchivo + " g.clear();\n" +
" super.paint(g);\n" +
" }\n" +
" };\n";
}
if (pe.lb_poseeOtraFamiliaTexto)
{
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily =
FontFamily.forName(\"" + pe._NombreFamiliaTexto + "\");\n";
}
else
{
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily = " +
pe._Nombrecontrol + ".getFont().getFontFamily();\n";
}
String textoPlano = (pe.lb_poseeEstilo == true) ? pe._NombreEstiloTexto.ToString() :
"PLAIN";
string tamanio = (pe.lb_otrotamanioTexto == true) ? pe._TamanioTexto.ToString() :
"10";
contenidoArchivo = contenidoArchivo + " Font myFont =
fontFamily.getFont(" + pe._Nombrecontrol + ".getFont().getLeading(), " + pe._Nombrecontrol +
".getFont().getHeight()).derive(Font." + textoPlano + ", " + tamanio + ", Ui.UNITS_pt);\n";
contenidoArchivo = contenidoArchivo + " " + pe._Nombrecontrol +
".setFont(myFont);\n";
contenidoArchivo = contenidoArchivo + " }\n" +
" catch(Exception ex)\n" +
" {\n" +
" }\n";
}
contenidoArchivo = contenidoArchivo +
" net.rim.device.api.ui.container.GridFieldManager miGrid_" + pe._Nombrecontrol
+ " = new net.rim.device.api.ui.container.GridFieldManager(1,1,0);\n" +
" miGrid_" + pe._Nombrecontrol + ".add(" + pe._Nombrecontrol + ");\n" +
" manejador1.add(miGrid_" + pe._Nombrecontrol + "," + (pe._posX * 2).ToString()
+ "," + (pe._posY * 2).ToString() + ");\n";
//" this.add(" + pe._Nombrecontrol + ");\n";
}
#endregion
#region "generacion de campo Combo Box"
118
if (obj._TipoControl == "COMBOBOX")
{
PanelComboBox pct = (PanelComboBox)arreglo[i];
contenidoArchivo = contenidoArchivo + " String[] varArray_" + pct._Nombrecontrol
+ " = {";
Array arregloTmp = pct.Contenido;
for (int j = 0; j < pct.Contenido.Length; j++)
{
contenidoArchivo = contenidoArchivo + "\"" + pct.Contenido.GetValue(j).ToString() +
"\",";
}
contenidoArchivo = contenidoArchivo.Substring(0, contenidoArchivo.Length - 1) +
"};\n";
if (!pct.poseeColorfondo && !pct.poseeColorTextop)
{
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.ObjectChoiceField " + pct._Nombrecontrol + "= new
net.rim.device.api.ui.component.ObjectChoiceField(\"\",varArray_" + pct._Nombrecontrol + ",0);\n";
}
else
{
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.ObjectChoiceField " + pct._Nombrecontrol + " = new
net.rim.device.api.ui.component.ObjectChoiceField(\"\",varArray_" + pct._Nombrecontrol + ",0){\n" +
" public void paint(Graphics g){\n";
if (pct.poseeColorfondo)
{
contenidoArchivo = contenidoArchivo + " g.setBackgroundColor(Color." +
pct.ColorFondo.Name.ToUpper() + ");\n" +
" g.fillRect(0,0,getWidth(),getHeight());\n";
}
if (pct.poseeColorTextop)
{
contenidoArchivo = contenidoArchivo + " g.setColor(Color." +
pct.ColorEtiqueta.Name.ToUpper() + ");\n";
}
contenidoArchivo = contenidoArchivo + " g.clear();\n" +
" super.paint(g);\n" +
" }\n" +
" };\n";
}
if (pct.lb_poseeOtraFamiliaTexto)
{
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily =
FontFamily.forName(\"" + pct._NombreFamiliaTexto + "\");\n";
}
else
{
119
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily = " +
pct._Nombrecontrol + ".getFont().getFontFamily();\n";
}
String textoPlano = (pct.lb_poseeEstilo == true) ? pct._NombreEstiloTexto.ToString() :
"PLAIN";
string tamanio = (pct.lb_otrotamanioTexto == true) ? pct._TamanioTexto.ToString() :
"10";
contenidoArchivo = contenidoArchivo + " Font myFont =
fontFamily.getFont(" + pct._Nombrecontrol + ".getFont().getLeading(), " + pct._Nombrecontrol +
".getFont().getHeight()).derive(Font." + textoPlano + ", " + tamanio + ", Ui.UNITS_pt);\n";
contenidoArchivo = contenidoArchivo + " " + pct._Nombrecontrol +
".setFont(myFont);\n";
contenidoArchivo = contenidoArchivo + " }\n" +
" catch(Exception ex)\n" +
" {\n" +
" }\n";
}
contenidoArchivo = contenidoArchivo +
" net.rim.device.api.ui.container.GridFieldManager miGrid_" + pct._Nombrecontrol
+ " = new net.rim.device.api.ui.container.GridFieldManager(1,1,0);\n" +
" miGrid_" + pct._Nombrecontrol + ".add(" + pct._Nombrecontrol + ");\n" +
" manejador1.add(miGrid_" + pct._Nombrecontrol + "," + (pct._posX *
2).ToString() + "," + (pct._posY * 2).ToString() + ");\n";
}
#endregion
#region "generacion de campos Combo Box Numerico"
if (obj._TipoControl == "COMBOBOXNUMERICO")
{
PanelComboBoxNumerico pct = (PanelComboBoxNumerico)arreglo[i];
if (!pct.poseeColorfondo && !pct.poseeColorTextop)
{
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.NumericChoiceField " + pct._Nombrecontrol + "= new
net.rim.device.api.ui.component.NumericChoiceField(\"\"," + pct.indiceInicio + "," + pct.indiceFinal + "," +
pct.incremento + "," + pct.comienzo + ");\n";
}
else
{
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.NumericChoiceField " + pct._Nombrecontrol + " = new
net.rim.device.api.ui.component.NumericChoiceField(\"\"," + pct.indiceInicio + "," + pct.indiceFinal + "," +
pct.incremento + "," + pct.comienzo + "){\n" +
" public void paint(Graphics g){\n";
if (pct.poseeColorfondo)
{
contenidoArchivo = contenidoArchivo + " g.setBackgroundColor(Color." +
pct.ColorFondo.Name.ToUpper() + ");\n" +
" g.fillRect(0,0,getWidth(),getHeight());\n";
}
if (pct.poseeColorTextop)
{
contenidoArchivo = contenidoArchivo + " g.setColor(Color." +
pct.ColorEtiqueta.Name.ToUpper() + ");\n";
}
contenidoArchivo = contenidoArchivo + " g.clear();\n" +
" super.paint(g);\n" +
120
" }\n" +
" };\n";
}
if (pct.lb_poseeOtraFamiliaTexto)
{
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily =
FontFamily.forName(\"" + pct._NombreFamiliaTexto + "\");\n";
}
else
{
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily = " +
pct._Nombrecontrol + ".getFont().getFontFamily();\n";
}
String textoPlano = (pct.lb_poseeEstilo == true) ? pct._NombreEstiloTexto.ToString() :
"PLAIN";
string tamanio = (pct.lb_otrotamanioTexto == true) ? pct._TamanioTexto.ToString() :
"10";
contenidoArchivo = contenidoArchivo + " Font myFont =
fontFamily.getFont(" + pct._Nombrecontrol + ".getFont().getLeading(), " + pct._Nombrecontrol +
".getFont().getHeight()).derive(Font." + textoPlano + ", " + tamanio + ", Ui.UNITS_pt);\n";
contenidoArchivo = contenidoArchivo + " " + pct._Nombrecontrol +
".setFont(myFont);\n";
contenidoArchivo = contenidoArchivo + " }\n" +
" catch(Exception ex)\n" +
" {\n" +
" }\n";
}
contenidoArchivo = contenidoArchivo +
" net.rim.device.api.ui.container.GridFieldManager miGrid_" + pct._Nombrecontrol
+ " = new net.rim.device.api.ui.container.GridFieldManager(1,1,0);\n" +
" miGrid_" + pct._Nombrecontrol + ".add(" + pct._Nombrecontrol + ");\n" +
" manejador1.add(miGrid_" + pct._Nombrecontrol + "," + (pct._posX *
2).ToString() + "," + (pct._posY * 2).ToString() + ");\n";
}
#endregion
#region "generacion de campos fechas"
if (obj._TipoControl == "CAMPOFECHA")
{
PanelCampoFecha pcf = (PanelCampoFecha)arreglo[i];
if (!pcf.poseeColorfondo && !pcf.poseeColorTextop)
{
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.DateField " + pcf._Nombrecontrol + "= new
net.rim.device.api.ui.component.DateField(\"\",System.currentTimeMillis(),net.rim.device.api.ui.component
.DateField.DATE_TIME);\n";
}
else
{
121
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.DateField " + pcf._Nombrecontrol + " = new
net.rim.device.api.ui.component.DateField(\"\",System.currentTimeMillis(),net.rim.device.api.ui.component
.DateField.DATE_TIME){\n" +
" public void paint(Graphics g){\n";
if (pcf.poseeColorfondo)
{
contenidoArchivo = contenidoArchivo + " g.setBackgroundColor(Color." +
pcf.ColorFondo.Name.ToUpper() + ");\n" +
" g.fillRect(0,0,getWidth(),getHeight());\n";
}
if (pcf.poseeColorTextop)
{
contenidoArchivo = contenidoArchivo + " g.setColor(Color." +
pcf.ColorEtiqueta.Name.ToUpper() + ");\n";
}
contenidoArchivo = contenidoArchivo + " g.clear();\n" +
" super.paint(g);\n" +
" }\n" +
" };\n";
}
if (pcf.lb_poseeOtraFamiliaTexto)
{
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily =
FontFamily.forName(\"" + pcf._NombreFamiliaTexto + "\");\n";
}
else
{
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily = " +
pcf._Nombrecontrol + ".getFont().getFontFamily();\n";
}
String textoPlano = (pcf.lb_poseeEstilo == true) ? pcf._NombreEstiloTexto.ToString() :
"PLAIN";
string tamanio = (pcf.lb_otrotamanioTexto == true) ? pcf._TamanioTexto.ToString() :
"10";
contenidoArchivo = contenidoArchivo + " Font myFont =
fontFamily.getFont(" + pcf._Nombrecontrol + ".getFont().getLeading(), " + pcf._Nombrecontrol +
".getFont().getHeight()).derive(Font." + textoPlano + ", " + tamanio + ", Ui.UNITS_pt);\n";
contenidoArchivo = contenidoArchivo + " " + pcf._Nombrecontrol +
".setFont(myFont);\n";
contenidoArchivo = contenidoArchivo + " }\n" +
" catch(Exception ex)\n" +
" {\n" +
" }\n";
}
contenidoArchivo = contenidoArchivo +
" net.rim.device.api.ui.container.GridFieldManager miGrid_" +
pcf._Nombrecontrol + " = new net.rim.device.api.ui.container.GridFieldManager(1,1,0);\n" +
122
" miGrid_" + pcf._Nombrecontrol + ".add(" + pcf._Nombrecontrol + ");\n" +
" manejador1.add(miGrid_" + pcf._Nombrecontrol + "," + (pcf._posX *
2).ToString() + "," + (pcf._posY * 2).ToString() + ");\n";
}
#endregion
#region "generacion de campo opcion"
if (obj._TipoControl == "OPCION")
{
PanelCampoOpcion pe = (PanelCampoOpcion)arreglo[i];
int indicePerdido = nombreGrupos.IndexOf('|');
if (indicePerdido < 0)
{
nombreGrupos = nombreGrupos + pe.GrupoOpcion + "|";
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.RadioButtonGroup " + pe.GrupoOpcion + " = new
net.rim.device.api.ui.component.RadioButtonGroup();\n";
if (!pe.poseeColorfondo && !pe.poseeColorTextop)
{
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.RadioButtonField " + pe._Nombrecontrol + "= new
net.rim.device.api.ui.component.RadioButtonField(\"" + pe._Texto.Replace(Encoding.ASCII.GetString(new
byte[] { (byte)13 }), "").Replace(Encoding.ASCII.GetString(new byte[] { (byte)10 }), "") + "\"," +
pe.GrupoOpcion + ",false);\n";
}
else
{
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.RadioButtonField " + pe._Nombrecontrol + " = new
net.rim.device.api.ui.component.RadioButtonField(\"" + pe._Texto.Replace(Encoding.ASCII.GetString(new
byte[] { (byte)13 }), "").Replace(Encoding.ASCII.GetString(new byte[] { (byte)10 }), "") + "\"," +
pe.GrupoOpcion + ",false){\n" +
" public void paint(Graphics g){\n";
if (pe.poseeColorfondo)
{
contenidoArchivo = contenidoArchivo + " g.setBackgroundColor(Color."
+ pe.ColorFondo.Name.ToUpper() + ");\n" +
" g.fillRect(0,0,getWidth(),getHeight());\n";
}
if (pe.poseeColorTextop)
{
contenidoArchivo = contenidoArchivo + " g.setColor(Color." +
pe.ColorEtiqueta.Name.ToUpper() + ");\n";
}
contenidoArchivo = contenidoArchivo + " g.clear();\n" +
" super.paint(g);\n" +
" }\n" +
" };\n";
}
}
else
{
123
byte[] { (byte)13 }), "").Replace(Encoding.ASCII.GetString(new byte[] { (byte)10 }), "") + "\"," +
pe.GrupoOpcion + ",false);\n";
}
else
{
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.RadioButtonField " + pe._Nombrecontrol + " = new
net.rim.device.api.ui.component.RadioButtonField(\"" + pe._Texto.Replace(Encoding.ASCII.GetString(new
byte[] { (byte)13 }), "").Replace(Encoding.ASCII.GetString(new byte[] { (byte)10 }), "") + "\"," +
pe.GrupoOpcion + ",false){\n" +
" public void paint(Graphics g){\n";
if (pe.poseeColorfondo)
{
contenidoArchivo = contenidoArchivo + " g.setBackgroundColor(Color."
+ pe.ColorFondo.Name.ToUpper() + ");\n" +
" g.fillRect(0,0,getWidth(),getHeight());\n";
}
if (pe.poseeColorTextop)
{
contenidoArchivo = contenidoArchivo + " g.setColor(Color." +
pe.ColorEtiqueta.Name.ToUpper() + ");\n";
}
contenidoArchivo = contenidoArchivo + " g.clear();\n" +
" super.paint(g);\n" +
" }\n" +
" };\n";
}
}
if (pe.lb_poseeOtraFamiliaTexto)
{
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily =
FontFamily.forName(\"" + pe._NombreFamiliaTexto + "\");\n";
}
else
{
contenidoArchivo = contenidoArchivo + " FontFamily fontFamily = " +
pe._Nombrecontrol + ".getFont().getFontFamily();\n";
}
String textoPlano = (pe.lb_poseeEstilo == true) ? pe._NombreEstiloTexto.ToString() :
"PLAIN";
string tamanio = (pe.lb_otrotamanioTexto == true) ? pe._TamanioTexto.ToString() :
"10";
contenidoArchivo = contenidoArchivo + " Font myFont =
fontFamily.getFont(" + pe._Nombrecontrol + ".getFont().getLeading(), " + pe._Nombrecontrol +
".getFont().getHeight()).derive(Font." + textoPlano + ", " + tamanio + ", Ui.UNITS_pt);\n";
contenidoArchivo = contenidoArchivo + " " + pe._Nombrecontrol +
".setFont(myFont);\n";
contenidoArchivo = contenidoArchivo + " }\n" +
124
" catch(Exception ex)\n" +
" {\n" +
" }\n";
}
contenidoArchivo = contenidoArchivo +
" net.rim.device.api.ui.container.GridFieldManager miGrid_" + pe._Nombrecontrol
+ " = new net.rim.device.api.ui.container.GridFieldManager(1,1,0);\n" +
" miGrid_" + pe._Nombrecontrol + ".add(" + pe._Nombrecontrol + ");\n" +
" manejador1.add(miGrid_" + pe._Nombrecontrol + "," + (pe._posX * 2).ToString()
+ "," + (pe._posY * 2).ToString() + ");\n";
//" this.add(" + pe._Nombrecontrol + ");\n";
}
#endregion
#region "Generacion de campo boton"
if (obj._TipoControl == "BOTON")
{
PanelBoton pbtn = (PanelBoton)arreglo[i];
contenidoArchivo = contenidoArchivo + "
net.rim.device.api.ui.component.ButtonField " + pbtn._Nombrecontrol + "= new
net.rim.device.api.ui.component.ButtonField(\"" + pbtn.TextoEtiqueta + "\");\n";
if (pbtn._AccionClick)
{
contenidoArchivo = contenidoArchivo + pbtn._FuncionClick;
}
contenidoArchivo = contenidoArchivo + " manejador1.add(" + pbtn._Nombrecontrol
+ "," + (pbtn._posX * 2).ToString() + "," + (pbtn._posY * 2).ToString() + ");\n";
}
#endregion
#region "Generacion de campo imagen"
if (obj._TipoControl == "IMAGEN")
{
PanelCampoImagen pci = (PanelCampoImagen)arreglo[i];
contenidoArchivo = contenidoArchivo +
" net.rim.device.api.system.Bitmap bitmap_" + pci._Nombrecontrol + " =
Bitmap.getBitmapResource(\"" + pci.NombreImagenVer + "\");\n" +
" int scaledX_" + pci._Nombrecontrol + " = " + (pci._ancho*2).ToString() + ";\n" +
" int scaledY_" + pci._Nombrecontrol + " = " + (pci._alto*2).ToString() + ";\n" +
" Bitmap bitmapScaled_" + pci._Nombrecontrol + " = new
Bitmap(Bitmap.ROWWISE_32BIT_ARGB8888, scaledX_" + pci._Nombrecontrol + ", scaledY_" +
pci._Nombrecontrol + ");\n" +
" bitmap_" + pci._Nombrecontrol + ".scaleInto(bitmapScaled_" +
pci._Nombrecontrol + ", Bitmap.FILTER_BILINEAR, Bitmap.SCALE_TO_FIT);\n" +
" net.rim.device.api.ui.component.BitmapField " + pci._Nombrecontrol + "= new
net.rim.device.api.ui.component.BitmapField(bitmapScaled_" + pci._Nombrecontrol +
",Field.FOCUSABLE);\n" +
//contenidoArchivo = contenidoArchivo +
" net.rim.device.api.ui.container.GridFieldManager miGrid_" + pci._Nombrecontrol
+ " = new net.rim.device.api.ui.container.GridFieldManager(1,1,0);\n" +
" miGrid_" + pci._Nombrecontrol + ".add(" + pci._Nombrecontrol + ");\n" +
" manejador1.add(miGrid_" + pci._Nombrecontrol + "," + (pci._posX *
2).ToString() + "," + (pci._posY * 2).ToString() + ");\n";
}
#endregion
#region "Generacion de campo Browser"
if (obj._TipoControl == "BROWSER")
{
125
PanelBrowserField pci = (PanelBrowserField)arreglo[i];
contenidoArchivo = contenidoArchivo +
" net.rim.device.api.browser.field2.BrowserFieldConfig myBrowserFieldConfig_" +
pci._Nombrecontrol + " = new net.rim.device.api.browser.field2.BrowserFieldConfig();\n" +
" myBrowserFieldConfig_" + pci._Nombrecontrol +
".setProperty(net.rim.device.api.browser.field2.BrowserFieldConfig.NAVIGATION_MODE,net.rim.device.
api.browser.field2.BrowserFieldConfig.NAVIGATION_MODE_POINTER);\n" +
" net.rim.device.api.browser.field2.BrowserField browserField_" +
pci._Nombrecontrol + " = new net.rim.device.api.browser.field2.BrowserField(myBrowserFieldConfig_" +
pci._Nombrecontrol + ");\n" +
" add(browserField_" + pci._Nombrecontrol + ");\n" +
" browserField_" + pci._Nombrecontrol + ".requestContent(\"" + pci.UrlVisitaInicial
+ "\");\n";
}
#endregion
#region "Generacion de campos mapas "
if (obj._TipoControl == "MAPA")
{
PanelCamposMapa kl = (PanelCamposMapa)arreglo[i];
contenidoArchivo = contenidoArchivo +
" net.rim.device.api.lbs.maps.ui.MapField map_" + kl._Nombrecontrol + " = new
net.rim.device.api.lbs.maps.ui.MapField();\n" +
" net.rim.device.api.lbs.maps.ui.MapAction action_" + kl._Nombrecontrol + " =
map_" + kl._Nombrecontrol + ".getAction();\n" +
" action_" + kl._Nombrecontrol + ".setCentreAndZoom(new
net.rim.device.api.lbs.maps.model.MapPoint(43.46518, -80.52237), 3);\n" +
" add(map_" + kl._Nombrecontrol + ");\n";
}
#endregion
}
contenidoArchivo = contenidoArchivo + " this.add(manejador1);\n" +
" }\n" +
" protected boolean onSavePrompt()\n" +
" {\n" +
" return true;\n" +
" }\n";
if(this.cmbTipoFondo.Items[this.cmbTipoFondo.SelectedIndex].ToString()=="COLOR")
{
contenidoArchivo = contenidoArchivo +
" protected void paint( Graphics graphics )\n" +
" {\n" +
" graphics.setBackgroundColor( net.rim.device.api.ui.Color." +
this.txtColorSeleccionado.Text + " );\n" +
" graphics.clear();\n" +
" subpaint( graphics );\n" +
" }\n" ;
}
contenidoArchivo = contenidoArchivo +"}\n\n" + this.txtClaseManager.Text;
this.txtResultadoMovimiento.Text = contenidoArchivo;
}
else
{
MessageBox.Show("No se a diseñado ningun Objeto para la pantalla", "Sin Objetos",
MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
126
catch (Exception ex) {
MessageBox.Show("Ocurrio un error " + ex.Message, "Error ", MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
}
#endregion
System.IO.Directory.CreateDirectory("C:\\FuentesDesarrolladosTHWPR\\Plantillas\\.preprossed");
System.IO.Directory.CreateDirectory("C:\\FuentesDesarrolladosTHWPR\\Plantillas\\.settings");
}
System.IO.File.Copy(Application.StartupPath.ToString() + "\\Plantillas\\.classpath",
"C:\\FuentesDesarrolladosTHWPR\\Plantillas\\.classpath", true);
127
System.IO.File.Copy(Application.StartupPath.ToString() +
"\\Plantillas\\BlackBerry_App_Descriptor.xml",
"C:\\FuentesDesarrolladosTHWPR\\Plantillas\\BlackBerry_App_Descriptor.xml", true);
System.IO.File.Copy(Application.StartupPath.ToString() + "\\Plantillas\\.project",
"C:\\FuentesDesarrolladosTHWPR\\Plantillas\\.project", true);
System.IO.File.Copy(Application.StartupPath.ToString() +
"\\Plantillas\\.settings\\org.eclipse.jdt.core.prefs",
"C:\\FuentesDesarrolladosTHWPR\\Plantillas\\.settings\\org.eclipse.jdt.core.prefs", true);
System.IO.File.Copy(Application.StartupPath.ToString() + "\\Plantillas\\IconApp.png",
"C:\\FuentesDesarrolladosTHWPR\\Plantillas\\IconApp.png", true);
#endregion
System.IO.File.Copy("C:\\FuentesDesarrolladosTHWPR\\Plantillas\\IconApp.png",
"C:\\FuentesDesarrolladosTHWPR\\Proyecto" + indiceProyecto + "\\res\\img\\IconApp.png", true);
this.txtNombreSolucion.Text = this.txtNombreSolucion.Text + indiceProyecto;
}
catch (Exception ex) {
MessageBox.Show("Se genero un Error al Crear Directorios " + ex.Message, "Error Creacion",
MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
}
128
if (this.cmbTipoFondo.Items[this.cmbTipoFondo.SelectedIndex].ToString() == "NINGUNO")
{
this.pnlSeleccionarColor.Visible = false;
this.pnlBuscarImgFondo.Visible = false;
this.panel1.BackgroundImage = null;
this.panel1.BackColor = Color.White;
}
}
}
129
proc.StartInfo.UseShellExecute = false;
proc.Start();
//System.IO.StreamReader myOutput = proc.StandardOutput;
proc.BeginOutputReadLine();
res = proc.StandardError.ReadToEnd();
proc.WaitForExit();
if(res.Length <= 0){
this.txtResultadoMovimiento.Text = "Archivo compilado exitosamente";
}
else{
int posError = -1;
posError = res.ToUpper().IndexOf("ERROR");
if (posError > -1)
{
this.txtResultadoMovimiento.Text = "Archivo compilado con Errores \n" + res;
}
else
{
this.txtResultadoMovimiento.Text = "Archivo compilado con Advertencias \n" + res;
}
}
}
130
}
else
{
ObjetoBase objb = (ObjetoBase)arreglo[indiceSeleccionado];
if (objb._TipoControl == "BOTON")
{
string textoAccion = "";
PanelBoton pbtn = (PanelBoton)arreglo[indiceSeleccionado];
if (pbtn._FuncionClick.Length > 0)
{
textoAccion = pbtn._FuncionClick;
}
else
{
textoAccion =
" " + pbtn._Nombrecontrol + ".setChangeListener(new
net.rim.device.api.ui.FieldChangeListener() {\n" +
" public void fieldChanged( net.rim.device.api.ui.Field field, int
context) {\n" +
" net.rim.device.api.ui.component.Dialog.alert(\"Accion en " +
pbtn._Nombrecontrol + "\");\n" +
" }\n" +
" });\n";
}
DialogoAccionBoton dlg = new DialogoAccionBoton();
dlg.contenidoT = textoAccion;
DialogResult dr = dlg.ShowDialog();
pbtn._AccionClick = true;
pbtn._FuncionClick = dlg.contenidoT;
}
}
}
catch (Exception ex)
{
MessageBox.Show("No se a seleccionado ningun boton para la accion", "Sin Objetos",
MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
}
131
Image img1 = Image.FromFile("C:\\FuentesDesarrolladosTHWPR\\Proyecto\\res\\" +
nombreArchivo);*/
if (File.Exists(_DirectorioJava.Replace("\\src","\\res\\") + nombreArchivo))
{
File.Delete(_DirectorioJava.Replace("\\src", "\\res\\") + nombreArchivo);
}
File.Copy(pathImagen, _DirectorioJava.Replace("\\src", "\\res\\") + nombreArchivo);
Image img1 = Image.FromFile(_DirectorioJava.Replace("\\src", "\\res\\") + nombreArchivo);
this.panel1.BackgroundImage =
CambiarTamanoImagen(img1,this.panel1.Width,this.panel1.Height);
}
catch (Exception ex) {
MessageBox.Show("no se pudo copiar la imagen seleccionada " + ex.Message, "Sin Objetos",
MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
}
public void separaDirArchivo(string pathBase, ref string directorio, ref string archivo)
{
char[] arregloPath = pathBase.ToCharArray();
int posFinalBackSlash = 0;
for (int i = 0; i < arregloPath.Length; i++)
{
if(arregloPath[i] == '\\'){
posFinalBackSlash = i;
}
}
directorio = pathBase.Substring(0, posFinalBackSlash + 1);
archivo = pathBase.Substring(posFinalBackSlash + 1, (pathBase.Length - directorio.Length) );
}
132
try
{
ObjetoBase obj1 = (ObjetoBase)objetoPropiedades;
cambiaTexto = false;
this.txtTextoEtiquetaBB.Text = "";
this.comboBox1.Text = ""; ;
this.comboBox2.Text="";
this.cmbTamanioFuenteBB.Text="";
this.comboBox1.SelectedText = "";
this.comboBox2.SelectedText = "";
cambiaTexto = true;
this.cmbTamanioFuenteBB.SelectedText = "";
this.pnlImagenControl.Top = 123;
this.pnlImagenControl.Left = 5;
this.pnlImagenControl.Visible = false;
this.pnlItemsComboBox.Top = 239;
this.pnlItemsComboBox.Left = 5;
this.pnlItemsComboBox.Visible = false;
this.pnlValoresComboNum.Top = 239;
this.pnlValoresComboNum.Left = 5;
this.pnlValoresComboNum.Visible = false;
this.pnlDimensiones.Top= 73;
this.pnlDimensiones.Left= 6;
this.pnlDimensiones.Visible=false;
this.pnlFuentes.Visible = false;
this.pnlColorControles.Visible = true;
this.btnAccionBotonVarios.Visible = false;
switch (obj1._TipoControl)
{
#region propiedades Etiqueta
case "ETIQUETA":
PanelEtiqueta pe = (PanelEtiqueta)obj1;
this.txtNombreEtiquetaBB.Text = pe._Nombrecontrol;
this.txtTextoEtiquetaBB.Text = pe._Texto;
this.pnlFuentes.Visible = true;
if (pe.lb_poseeEstilo)
{
for (int i = 0; i < this.comboBox2.Items.Count; i++)
{
if (this.comboBox2.Items[i].ToString() == pe._NombreEstiloTexto)
{
this.comboBox2.SelectedIndex = i;
}
}
}
if(pe.lb_poseeOtraFamiliaTexto)
{
for (int i = 0; i < this.comboBox1.Items.Count; i++)
{
if (this.comboBox1.Items[i].ToString() == pe._NombreFamiliaTexto)
{
this.comboBox1.SelectedIndex = i;
}
}
}
if (pe.lb_otrotamanioTexto)
{
133
for (int i = 0; i < this.cmbTamanioFuenteBB.Items.Count; i++)
{
if (this.cmbTamanioFuenteBB.Items[i].ToString() == pe._TamanioTexto)
{
this.cmbTamanioFuenteBB.SelectedIndex = i;
}
}
}
if (pe.poseeColorTextop)
{
this.txtColorFuenteEtiquetaBB.Text = "";
this.txtColorFuenteEtiquetaBB.Text = pe.ColorEtiqueta.Name;
}
if (pe.poseeColorfondo)
{
this.txtColorFodoEtiquetaBB.Text = "";
this.txtColorFodoEtiquetaBB.Text = pe.ColorFondo.Name;
}
break;
#endregion
#region propiedades caja de texto
case "CAJATEXTO":
PanelCajatexto pct = (PanelCajatexto)obj1;
this.txtNombreEtiquetaBB.Text = pct._Nombrecontrol;
this.pnlFuentes.Visible = true;
//this.txtTextoEtiquetaBB.Text = "";
//this.comboBox1.SelectedText = "";
//this.comboBox2.SelectedText = "";
//this.cmbTamanioFuenteBB.SelectedText = "";
if (pct.lb_poseeEstilo)
{
for (int i = 0; i < this.comboBox2.Items.Count; i++)
{
if (this.comboBox2.Items[i].ToString() == pct._NombreEstiloTexto)
{
this.comboBox2.SelectedIndex = i;
}
}
}
if(pct.lb_poseeOtraFamiliaTexto)
{
for (int i = 0; i < this.comboBox1.Items.Count; i++)
{
if (this.comboBox1.Items[i].ToString() == pct._NombreFamiliaTexto)
{
this.comboBox1.SelectedIndex = i;
}
}
}
if (pct.lb_otrotamanioTexto)
{
for (int i = 0; i < this.cmbTamanioFuenteBB.Items.Count; i++)
{
if (this.cmbTamanioFuenteBB.Items[i].ToString() == pct._TamanioTexto)
{
this.cmbTamanioFuenteBB.SelectedIndex = i;
134
}
}
}
if (pct.poseeColorTextop)
{
this.txtColorFuenteEtiquetaBB.Text = "";
this.txtColorFuenteEtiquetaBB.Text = pct.ColorEtiqueta.Name;
}
if (pct.poseeColorfondo)
{
this.txtColorFodoEtiquetaBB.Text = "";
this.txtColorFodoEtiquetaBB.Text = pct.ColorFondo.Name;
}
break;
#endregion
#region propiedades cata texto lectura
case "RICHTEXTBOX":
this.pnlFuentes.Visible = true;
PanelRichTextBox prtb = (PanelRichTextBox)obj1;
this.txtNombreEtiquetaBB.Text = prtb._Nombrecontrol;
this.txtTextoEtiquetaBB.Text = prtb._Texto;
if (prtb.lb_poseeEstilo)
{
for (int i = 0; i < this.comboBox2.Items.Count; i++)
{
if (this.comboBox2.Items[i].ToString() == prtb._NombreEstiloTexto)
{
this.comboBox2.SelectedIndex = i;
}
}
}
if (prtb.lb_poseeOtraFamiliaTexto)
{
for (int i = 0; i < this.comboBox1.Items.Count; i++)
{
if (this.comboBox1.Items[i].ToString() == prtb._NombreFamiliaTexto)
{
this.comboBox1.SelectedIndex = i;
}
}
}
if (prtb.lb_otrotamanioTexto)
{
for (int i = 0; i < this.cmbTamanioFuenteBB.Items.Count; i++)
{
if (this.cmbTamanioFuenteBB.Items[i].ToString() == prtb._TamanioTexto)
{
this.cmbTamanioFuenteBB.SelectedIndex = i;
}
}
}
if (prtb.poseeColorTextop)
{
this.txtColorFuenteEtiquetaBB.Text = "";
this.txtColorFuenteEtiquetaBB.Text = prtb.ColorEtiqueta.Name;
}
135
if (prtb.poseeColorfondo)
{
this.txtColorFodoEtiquetaBB.Text = "";
this.txtColorFodoEtiquetaBB.Text = prtb.ColorFondo.Name;
}
break;
#endregion
#region propiedades boton
case "BOTON":
PanelBoton pb = (PanelBoton)obj1;
this.txtNombreEtiquetaBB.Text = pb._Nombrecontrol;
this.txtTextoEtiquetaBB.Text = pb._Texto;
this.btnAccionBotonVarios.Top = 53;//239;
this.btnAccionBotonVarios.Visible = true;
break;
#endregion
#region propiedades password
case "PASSWORD":
PanelPassword ppw = (PanelPassword)obj1;
this.txtNombreEtiquetaBB.Text = ppw._Nombrecontrol;
if (ppw.lb_poseeEstilo)
{
for (int i = 0; i < this.comboBox2.Items.Count; i++)
{
if (this.comboBox2.Items[i].ToString() == ppw._NombreEstiloTexto)
{
this.comboBox2.SelectedIndex = i;
}
}
}
if (ppw.lb_poseeOtraFamiliaTexto)
{
for (int i = 0; i < this.comboBox1.Items.Count; i++)
{
if (this.comboBox1.Items[i].ToString() == ppw._NombreFamiliaTexto)
{
this.comboBox1.SelectedIndex = i;
}
}
}
if (ppw.lb_otrotamanioTexto)
{
for (int i = 0; i < this.cmbTamanioFuenteBB.Items.Count; i++)
{
if (this.cmbTamanioFuenteBB.Items[i].ToString() == ppw._TamanioTexto)
{
this.cmbTamanioFuenteBB.SelectedIndex = i;
}
}
}
if (ppw.poseeColorTextop)
{
this.txtColorFuenteEtiquetaBB.Text = "";
this.txtColorFuenteEtiquetaBB.Text = ppw.ColorEtiqueta.Name;
}
136
if (ppw.poseeColorfondo)
{
this.txtColorFodoEtiquetaBB.Text = "";
this.txtColorFodoEtiquetaBB.Text = ppw.ColorFondo.Name;
}
break;
#endregion
#region propiedades EMAIL
case "EMAIL":
this.pnlFuentes.Visible = true;
PanelEmail pem = (PanelEmail)obj1;
this.txtNombreEtiquetaBB.Text = pem._Nombrecontrol;
if (pem.lb_poseeEstilo)
{
for (int i = 0; i < this.comboBox2.Items.Count; i++)
{
if (this.comboBox2.Items[i].ToString() == pem._NombreEstiloTexto)
{
this.comboBox2.SelectedIndex = i;
}
}
}
if (pem.lb_poseeOtraFamiliaTexto)
{
for (int i = 0; i < this.comboBox1.Items.Count; i++)
{
if (this.comboBox1.Items[i].ToString() == pem._NombreFamiliaTexto)
{
this.comboBox1.SelectedIndex = i;
}
}
}
if (pem.lb_otrotamanioTexto)
{
for (int i = 0; i < this.cmbTamanioFuenteBB.Items.Count; i++)
{
if (this.cmbTamanioFuenteBB.Items[i].ToString() == pem._TamanioTexto)
{
this.cmbTamanioFuenteBB.SelectedIndex = i;
}
}
}
if (pem.poseeColorTextop)
{
this.txtColorFuenteEtiquetaBB.Text = "";
this.txtColorFuenteEtiquetaBB.Text = pem.ColorEtiqueta.Name;
}
if (pem.poseeColorfondo)
{
this.txtColorFodoEtiquetaBB.Text = "";
this.txtColorFodoEtiquetaBB.Text = pem.ColorFondo.Name;
}
break;
#endregion
#region propiedades TEXTOAUTOCOMPLETAR
case "TEXTOAUTOCOMPLETAR":
137
this.pnlFuentes.Visible = true;
pnlItemsComboBox.Visible = true;
pnlItemsComboBox.Top = 53;
pnlItemsComboBox.Left = 310;
PanelTextoAutocompletar pac = (PanelTextoAutocompletar)obj1;
this.txtNombreEtiquetaBB.Text = pac._Nombrecontrol;
if (pac.lb_poseeEstilo)
{
for (int i = 0; i < this.comboBox2.Items.Count; i++)
{
if (this.comboBox2.Items[i].ToString() == pac._NombreEstiloTexto)
{
this.comboBox2.SelectedIndex = i;
}
}
}
if (pac.lb_poseeOtraFamiliaTexto)
{
for (int i = 0; i < this.comboBox1.Items.Count; i++)
{
if (this.comboBox1.Items[i].ToString() == pac._NombreFamiliaTexto)
{
this.comboBox1.SelectedIndex = i;
}
}
}
if (pac.lb_otrotamanioTexto)
{
for (int i = 0; i < this.cmbTamanioFuenteBB.Items.Count; i++)
{
if (this.cmbTamanioFuenteBB.Items[i].ToString() == pac._TamanioTexto)
{
this.cmbTamanioFuenteBB.SelectedIndex = i;
}
}
}
if (pac.poseeColorTextop)
{
this.txtColorFuenteEtiquetaBB.Text = "";
this.txtColorFuenteEtiquetaBB.Text = pac.ColorEtiqueta.Name;
}
if (pac.poseeColorfondo)
{
this.txtColorFodoEtiquetaBB.Text = "";
this.txtColorFodoEtiquetaBB.Text = pac.ColorFondo.Name;
}
break;
#endregion
#region propiedades CAJATEXTOAUTOCORREGIR
case "CAJATEXTOAUTOCORREGIR":
this.pnlFuentes.Visible = true;
PanelTextoAutocorregir paco = (PanelTextoAutocorregir)obj1;
this.txtNombreEtiquetaBB.Text = paco._Nombrecontrol;
if (paco.lb_poseeEstilo)
{
138
for (int i = 0; i < this.comboBox2.Items.Count; i++)
{
if (this.comboBox2.Items[i].ToString() == paco._NombreEstiloTexto)
{
this.comboBox2.SelectedIndex = i;
}
}
}
if (paco.lb_poseeOtraFamiliaTexto)
{
for (int i = 0; i < this.comboBox1.Items.Count; i++)
{
if (this.comboBox1.Items[i].ToString() == paco._NombreFamiliaTexto)
{
this.comboBox1.SelectedIndex = i;
}
}
}
if (paco.lb_otrotamanioTexto)
{
for (int i = 0; i < this.cmbTamanioFuenteBB.Items.Count; i++)
{
if (this.cmbTamanioFuenteBB.Items[i].ToString() == paco._TamanioTexto)
{
this.cmbTamanioFuenteBB.SelectedIndex = i;
}
}
}
if (paco.poseeColorTextop)
{
this.txtColorFuenteEtiquetaBB.Text = "";
this.txtColorFuenteEtiquetaBB.Text = paco.ColorEtiqueta.Name;
}
if (paco.poseeColorfondo)
{
this.txtColorFodoEtiquetaBB.Text = "";
this.txtColorFodoEtiquetaBB.Text = paco.ColorFondo.Name;
}
break;
#endregion
#region propiedades TEXTOAUTOCOMPLETAR_
case "TEXTOAUTOCOMPLETAR_":
this.pnlFuentes.Visible = true;
PanelAutoCompletar pacom = (PanelAutoCompletar)obj1;
this.txtNombreEtiquetaBB.Text = pacom._Nombrecontrol;
if (pacom.lb_poseeEstilo)
{
for (int i = 0; i < this.comboBox2.Items.Count; i++)
{
if (this.comboBox2.Items[i].ToString() == pacom._NombreEstiloTexto)
{
this.comboBox2.SelectedIndex = i;
}
}
}
if (pacom.lb_poseeOtraFamiliaTexto)
139
{
for (int i = 0; i < this.comboBox1.Items.Count; i++)
{
if (this.comboBox1.Items[i].ToString() == pacom._NombreFamiliaTexto)
{
this.comboBox1.SelectedIndex = i;
}
}
}
if (pacom.lb_otrotamanioTexto)
{
for (int i = 0; i < this.cmbTamanioFuenteBB.Items.Count; i++)
{
if (this.cmbTamanioFuenteBB.Items[i].ToString() == pacom._TamanioTexto)
{
this.cmbTamanioFuenteBB.SelectedIndex = i;
}
}
}
if (pacom.poseeColorTextop)
{
this.txtColorFuenteEtiquetaBB.Text = "";
this.txtColorFuenteEtiquetaBB.Text = pacom.ColorEtiqueta.Name;
}
if (pacom.poseeColorfondo)
{
this.txtColorFodoEtiquetaBB.Text = "";
this.txtColorFodoEtiquetaBB.Text = pacom.ColorFondo.Name;
}
break;
#endregion
#region propiedades CHECKBOX
case "CHECKBOX":
this.pnlFuentes.Visible = true;
PanelCheckBox pchb = (PanelCheckBox)obj1;
this.txtNombreEtiquetaBB.Text = pchb._Nombrecontrol;
this.txtTextoEtiquetaBB.Text = pchb._Texto;
//this.comboBox1.SelectedText = "";
//this.comboBox2.SelectedText = "";
//this.cmbTamanioFuenteBB.SelectedText = "";
if (pchb.lb_poseeEstilo)
{
for (int i = 0; i < this.comboBox2.Items.Count; i++)
{
if (this.comboBox2.Items[i].ToString() == pchb._NombreEstiloTexto)
{
this.comboBox2.SelectedIndex = i;
}
}
}
if (pchb.lb_poseeOtraFamiliaTexto)
{
for (int i = 0; i < this.comboBox1.Items.Count; i++)
{
if (this.comboBox1.Items[i].ToString() == pchb._NombreFamiliaTexto)
{
140
this.comboBox1.SelectedIndex = i;
}
}
}
if (pchb.lb_otrotamanioTexto)
{
for (int i = 0; i < this.cmbTamanioFuenteBB.Items.Count; i++)
{
if (this.cmbTamanioFuenteBB.Items[i].ToString() == pchb._TamanioTexto)
{
this.cmbTamanioFuenteBB.SelectedIndex = i;
}
}
}
if (pchb.poseeColorTextop)
{
this.txtColorFuenteEtiquetaBB.Text = "";
this.txtColorFuenteEtiquetaBB.Text = pchb.ColorEtiqueta.Name;
}
if (pchb.poseeColorfondo)
{
this.txtColorFodoEtiquetaBB.Text = "";
this.txtColorFodoEtiquetaBB.Text = pchb.ColorFondo.Name;
}
break;
#endregion
#region propiedades COMBOBOX
case "COMBOBOX":
this.pnlFuentes.Visible = true;
this.pnlItemsComboBox.Visible = true;
this.pnlItemsComboBox.Top = 53;
this.pnlItemsComboBox.Left = 310;
PanelComboBox pcb = (PanelComboBox)obj1;
this.txtNombreEtiquetaBB.Text = pcb._Nombrecontrol;
//this.txtTextoEtiquetaBB.Text = "";
//this.comboBox1.SelectedText = "";
//this.comboBox2.SelectedText = "";
//this.cmbTamanioFuenteBB.SelectedText = "";
if (pcb.lb_poseeEstilo)
{
for (int i = 0; i < this.comboBox2.Items.Count; i++)
{
if (this.comboBox2.Items[i].ToString() == pcb._NombreEstiloTexto)
{
this.comboBox2.SelectedIndex = i;
}
}
}
if(pcb.lb_poseeOtraFamiliaTexto)
{
for (int i = 0; i < this.comboBox1.Items.Count; i++)
{
if (this.comboBox1.Items[i].ToString() == pcb._NombreFamiliaTexto)
{
this.comboBox1.SelectedIndex = i;
}
141
}
}
if (pcb.lb_otrotamanioTexto)
{
for (int i = 0; i < this.cmbTamanioFuenteBB.Items.Count; i++)
{
if (this.cmbTamanioFuenteBB.Items[i].ToString() == pcb._TamanioTexto)
{
this.cmbTamanioFuenteBB.SelectedIndex = i;
}
}
}
if (pcb.poseeColorTextop)
{
this.txtColorFuenteEtiquetaBB.Text = "";
this.txtColorFuenteEtiquetaBB.Text = pcb.ColorEtiqueta.Name;
}
if (pcb.poseeColorfondo)
{
this.txtColorFodoEtiquetaBB.Text = "";
this.txtColorFodoEtiquetaBB.Text = pcb.ColorFondo.Name;
}
try
{
this.txtContenidoCombo.Text = "";
string contTempItems = "";
for (int i = 0; i < pcb.Contenido.Length; i++)
{
contTempItems = contTempItems + pcb.Contenido.GetValue(i).ToString() +
Encoding.ASCII.GetString(new byte[] { (byte)13 }).ToString() + Encoding.ASCII.GetString(new byte[] {
(byte)10 }).ToString();
}
this.txtContenidoCombo.Text = contTempItems;
}
catch (Exception ex) { }
break;
#endregion
#region propiedades COMBOBOXNUMERICO
case "COMBOBOXNUMERICO":
this.pnlFuentes.Visible = true;
this.pnlValoresComboNum.Visible = true;
this.pnlValoresComboNum.Top=197;
this.pnlValoresComboNum.Left = 6;
PanelComboBoxNumerico pcbn = (PanelComboBoxNumerico)obj1;
this.txtNombreEtiquetaBB.Text = pcbn._Nombrecontrol;
//this.txtTextoEtiquetaBB.Text = "";
//this.comboBox1.SelectedText = "";
//this.comboBox2.SelectedText = "";
//this.cmbTamanioFuenteBB.SelectedText = "";
if (pcbn.lb_poseeEstilo)
{
for (int i = 0; i < this.comboBox2.Items.Count; i++)
{
if (this.comboBox2.Items[i].ToString() == pcbn._NombreEstiloTexto)
{
this.comboBox2.SelectedIndex = i;
142
}
}
}
if(pcbn.lb_poseeOtraFamiliaTexto)
{
for (int i = 0; i < this.comboBox1.Items.Count; i++)
{
if (this.comboBox1.Items[i].ToString() == pcbn._NombreFamiliaTexto)
{
this.comboBox1.SelectedIndex = i;
}
}
}
if (pcbn.lb_otrotamanioTexto)
{
for (int i = 0; i < this.cmbTamanioFuenteBB.Items.Count; i++)
{
if (this.cmbTamanioFuenteBB.Items[i].ToString() == pcbn._TamanioTexto)
{
this.cmbTamanioFuenteBB.SelectedIndex = i;
}
}
}
if (pcbn.poseeColorTextop)
{
this.txtColorFuenteEtiquetaBB.Text = "";
this.txtColorFuenteEtiquetaBB.Text = pcbn.ColorEtiqueta.Name;
}
if (pcbn.poseeColorfondo)
{
this.txtColorFodoEtiquetaBB.Text = "";
this.txtColorFodoEtiquetaBB.Text = pcbn.ColorFondo.Name;
}
this.txtMinimo.Text = pcbn.indiceInicio.ToString();
this.txtComienzo.Text = pcbn.comienzo.ToString();
this.txtIncremento.Text = pcbn.incremento.ToString();
this.txtMaximo.Text = pcbn.indiceFinal.ToString();
break;
#endregion
#region propiedades CAMPOFECHA
case "CAMPOFECHA":
PanelCampoFecha pcf = (PanelCampoFecha)obj1;
this.txtNombreEtiquetaBB.Text = pcf._Nombrecontrol;
//this.txtTextoEtiquetaBB.Text = "";
//this.comboBox1.SelectedText = "";
//this.comboBox2.SelectedText = "";
//this.cmbTamanioFuenteBB.SelectedText = "";
if (pcf.lb_poseeEstilo)
{
for (int i = 0; i < this.comboBox2.Items.Count; i++)
{
if (this.comboBox2.Items[i].ToString() == pcf._NombreEstiloTexto)
{
this.comboBox2.SelectedIndex = i;
}
}
143
}
if(pcf.lb_poseeOtraFamiliaTexto)
{
for (int i = 0; i < this.comboBox1.Items.Count; i++)
{
if (this.comboBox1.Items[i].ToString() == pcf._NombreFamiliaTexto)
{
this.comboBox1.SelectedIndex = i;
}
}
}
if (pcf.lb_otrotamanioTexto)
{
for (int i = 0; i < this.cmbTamanioFuenteBB.Items.Count; i++)
{
if (this.cmbTamanioFuenteBB.Items[i].ToString() == pcf._TamanioTexto)
{
this.cmbTamanioFuenteBB.SelectedIndex = i;
}
}
}
if (pcf.poseeColorTextop)
{
this.txtColorFuenteEtiquetaBB.Text = "";
this.txtColorFuenteEtiquetaBB.Text = pcf.ColorEtiqueta.Name;
}
if (pcf.poseeColorfondo)
{
this.txtColorFodoEtiquetaBB.Text = "";
this.txtColorFodoEtiquetaBB.Text = pcf.ColorFondo.Name;
}
break;
#endregion
#region propiedades OPCION
case "OPCION":
this.pnlFuentes.Visible = true;
PanelCampoOpcion pco = (PanelCampoOpcion)obj1;
this.txtNombreEtiquetaBB.Text = pco._Nombrecontrol;
this.txtTextoEtiquetaBB.Text = pco._Texto;
//this.comboBox1.SelectedText = "";
//this.comboBox2.SelectedText = "";
//this.cmbTamanioFuenteBB.SelectedText = "";
if (pco.lb_poseeEstilo)
{
for (int i = 0; i < this.comboBox2.Items.Count; i++)
{
if (this.comboBox2.Items[i].ToString() == pco._NombreEstiloTexto)
{
this.comboBox2.SelectedIndex = i;
}
}
}
if (pco.lb_poseeOtraFamiliaTexto)
{
for (int i = 0; i < this.comboBox1.Items.Count; i++)
{
144
if (this.comboBox1.Items[i].ToString() == pco._NombreFamiliaTexto)
{
this.comboBox1.SelectedIndex = i;
}
}
}
if (pco.lb_otrotamanioTexto)
{
for (int i = 0; i < this.cmbTamanioFuenteBB.Items.Count; i++)
{
if (this.cmbTamanioFuenteBB.Items[i].ToString() == pco._TamanioTexto)
{
this.cmbTamanioFuenteBB.SelectedIndex = i;
}
}
}
if (pco.poseeColorTextop)
{
this.txtColorFuenteEtiquetaBB.Text = "";
this.txtColorFuenteEtiquetaBB.Text = pco.ColorEtiqueta.Name;
}
if (pco.poseeColorfondo)
{
this.txtColorFodoEtiquetaBB.Text = "";
this.txtColorFodoEtiquetaBB.Text = pco.ColorFondo.Name;
}
break;
#endregion
#region propiedades IMAGEN
case "IMAGEN":
PanelCampoImagen pci = (PanelCampoImagen)obj1;
this.txtNombreEtiquetaBB.Text = pci._Nombrecontrol;
this.pnlFuentes.Visible = false;
this.pnlColorControles.Visible = false;
this.txtAncho.Text = pci._ancho.ToString();
this.txtAlto.Text = pci._alto.ToString();
this.pnlDimensiones.Visible=true;
this.pnlImagenControl.Visible = true;
break;
#endregion
#region propiedades BROWSER
case "BROWSER":
PanelBrowserField pbw = (PanelBrowserField)obj1;
this.txtNombreEtiquetaBB.Text = pbw._Nombrecontrol;
this.pnlFuentes.Visible = false;
this.pnlColorControles.Visible = false;
break;
#endregion
#region propiedades MAPA
case "MAPA":
PanelCamposMapa pm = (PanelCamposMapa)obj1;
this.txtNombreEtiquetaBB.Text = pm._Nombrecontrol;
this.pnlFuentes.Visible = false;
this.pnlColorControles.Visible = false;
break;
#endregion
}
145
}
catch (Exception ex) {
MessageBox.Show("Error " + ex.Message, "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
}
#endregion
#region cambia nombre controles
private void txtNombreEtiquetaBB_TextChanged(object sender, EventArgs e)
{
ObjetoBase obj = (ObjetoBase)arreglo[indiceSeleccionado];
switch (obj._TipoControl)
{
#region nombre etiqueta
case "ETIQUETA":
PanelEtiqueta pe = (PanelEtiqueta)obj;
pe._Nombrecontrol = this.txtNombreEtiquetaBB.Text;
break;
#endregion
#region nombre richttextbox
case "RICHTEXTBOX":
PanelRichTextBox prtb = (PanelRichTextBox)obj;
prtb._Nombrecontrol = this.txtNombreEtiquetaBB.Text;
break;
#endregion
#region nombre CAJATEXTO
case "CAJATEXTO":
PanelCajatexto pct = (PanelCajatexto)obj;
pct._Nombrecontrol = this.txtNombreEtiquetaBB.Text;
break;
#endregion
#region nombre BOTON
case "BOTON":
PanelBoton pb = (PanelBoton)obj;
pb._Nombrecontrol = this.txtNombreEtiquetaBB.Text;
break;
#endregion
#region nombre PASSWORD
case "PASSWORD":
PanelPassword pp = (PanelPassword)obj;
pp._Nombrecontrol = this.txtNombreEtiquetaBB.Text;
break;
#endregion
#region nombre EMAIL
case "EMAIL":
PanelEmail pem = (PanelEmail)obj;
pem._Nombrecontrol = this.txtNombreEtiquetaBB.Text;
break;
#endregion
#region nombre TEXTOAUTOCOMPLETAR
case "TEXTOAUTOCOMPLETAR":
PanelTextoAutocompletar pta = (PanelTextoAutocompletar)obj;
pta._Nombrecontrol = this.txtNombreEtiquetaBB.Text;
break;
#endregion
#region nombre CAJATEXTOAUTOCORREGIR
146
case "CAJATEXTOAUTOCORREGIR":
PanelTextoAutocorregir ptac = (PanelTextoAutocorregir)obj;
ptac._Nombrecontrol = this.txtNombreEtiquetaBB.Text;
break;
#endregion
#region nombre TEXTOAUTOCOMPLETAR_
case "TEXTOAUTOCOMPLETAR_":
PanelAutoCompletar paut = (PanelAutoCompletar)obj;
paut._Nombrecontrol = this.txtNombreEtiquetaBB.Text;
break;
#endregion
#region nombre CHECKBOX
case "CHECKBOX":
PanelCheckBox pchb = (PanelCheckBox)obj;
pchb._Nombrecontrol = this.txtNombreEtiquetaBB.Text;
break;
#endregion
#region nombre COMBOBOX
case "COMBOBOX":
PanelComboBox pcb = (PanelComboBox)obj;
pcb._Nombrecontrol = this.txtNombreEtiquetaBB.Text;
break;
#endregion
#region nombre COMBOBOXNUMERICO
case "COMBOBOXNUMERICO":
PanelComboBoxNumerico pcbn = (PanelComboBoxNumerico)obj;
pcbn._Nombrecontrol = this.txtNombreEtiquetaBB.Text;
break;
#endregion
#region nombre CAMPOFECHA
case "CAMPOFECHA":
PanelCampoFecha pf = (PanelCampoFecha)obj;
pf._Nombrecontrol = this.txtNombreEtiquetaBB.Text;
break;
#endregion
#region nombre OPCION
case "OPCION":
PanelCampoOpcion po = (PanelCampoOpcion)obj;
po._Nombrecontrol = this.txtNombreEtiquetaBB.Text;
break;
#endregion
#region nombre IMAGEN
case "IMAGEN":
PanelCampoImagen pim = (PanelCampoImagen)obj;
pim._Nombrecontrol = this.txtNombreEtiquetaBB.Text;
break;
#endregion
#region nombre BROWSER
case "BROWSER":
PanelBrowserField pbr = (PanelBrowserField)obj;
pbr._Nombrecontrol = this.txtNombreEtiquetaBB.Text;
break;
#endregion
#region nombre MAPA
case "MAPA":
PanelCamposMapa pmap = (PanelCamposMapa)obj;
pmap._Nombrecontrol = this.txtNombreEtiquetaBB.Text;
147
break;
#endregion
}
}
#endregion
#region cambia texto controles
private void txtTextoEtiquetaBB_TextChanged(object sender, EventArgs e)
{
if (cambiaTexto)
{
ObjetoBase obj = (ObjetoBase)arreglo[indiceSeleccionado];
switch (obj._TipoControl)
{
#region texto ETIQUETA
case "ETIQUETA":
PanelEtiqueta pe = (PanelEtiqueta)obj;
pe._Texto = this.txtTextoEtiquetaBB.Text;
pe.cambiaEtiquetaVisible(this.txtTextoEtiquetaBB.Text);
break;
#endregion
#region texto RICHTEXTBOX
case "RICHTEXTBOX":
PanelRichTextBox prtb = (PanelRichTextBox)obj;
prtb._Texto = this.txtTextoEtiquetaBB.Text;
prtb.cambiaEtiquetaVisible(this.txtTextoEtiquetaBB.Text);
break;
#endregion
#region texto BOTON
case "BOTON":
PanelBoton pb = (PanelBoton)obj;
pb._Texto = this.txtNombreEtiquetaBB.Text;
pb.cambiaEtiquetaVisible(pb._Texto);
break;
#endregion
#region texto CHECKBOX
case "CHECKBOX":
PanelCheckBox pchb = (PanelCheckBox)obj;
pchb._Texto = this.txtNombreEtiquetaBB.Text;
pchb.cambiaEtiquetaVisible(pchb._Texto);
break;
#endregion
#region texto OPCION
case "OPCION":
PanelCampoOpcion pco = (PanelCampoOpcion)obj;
pco._Texto = this.txtNombreEtiquetaBB.Text;
pco.cambiaEtiquetaVisible(pco._Texto);
break;
#endregion
}
}
}
#endregion
#region cambia color texto controles
private void button10_Click(object sender, EventArgs e)
{
ObjetoBase obj = (ObjetoBase)arreglo[indiceSeleccionado];
VentanaColores vc = new VentanaColores();
148
vc.ShowDialog();
switch (obj._TipoControl)
{
#region color texto ETIQUETA
case "ETIQUETA":
PanelEtiqueta pe = (PanelEtiqueta)obj;
pe.ColorEtiqueta = vc.colorClick;
pe.cambiarColorEtiqueta(vc.colorClick);
break;
#endregion
#region color texto RICHTEXTBOX
case "RICHTEXTBOX":
PanelRichTextBox prtb = (PanelRichTextBox)obj;
prtb.ColorEtiqueta = vc.colorClick;
prtb.cambiarColorEtiqueta(vc.colorClick);
break;
#endregion
#region color texto CAJATEXTO
case "CAJATEXTO":
PanelCajatexto pct = (PanelCajatexto)obj;
pct.ColorEtiqueta = vc.colorClick;
break;
#endregion
#region color texto PASSWORD
case "PASSWORD":
PanelPassword pp = (PanelPassword)obj;
pp.ColorEtiqueta = vc.colorClick;
break;
#endregion
#region color texto EMAIL
case "EMAIL":
PanelEmail pem = (PanelEmail)obj;
pem.ColorEtiqueta = vc.colorClick;
break;
#endregion
#region color texto TEXTOAUTOCOMPLETAR
case "TEXTOAUTOCOMPLETAR":
PanelTextoAutocompletar pta = (PanelTextoAutocompletar)obj;
pta.ColorEtiqueta = vc.colorClick;
break;
#endregion
#region color texto CAJATEXTOAUTOCORREGIR
case "CAJATEXTOAUTOCORREGIR":
PanelTextoAutocorregir ptac = (PanelTextoAutocorregir)obj;
ptac.ColorEtiqueta = vc.colorClick;
break;
#endregion
#region color texto TEXTOAUTOCOMPLETAR_
case "TEXTOAUTOCOMPLETAR_":
PanelAutoCompletar paut = (PanelAutoCompletar)obj;
paut.ColorEtiqueta = vc.colorClick;
break;
#endregion
#region color texto CHECKBOX
case "CHECKBOX":
PanelCheckBox pchb = (PanelCheckBox)obj;
pchb.ColorEtiqueta = vc.colorClick;
149
pchb.cambiarColorEtiqueta(vc.colorClick);
break;
#endregion
#region color texto COMBOBOX
case "COMBOBOX":
PanelComboBox pcb = (PanelComboBox)obj;
pcb.ColorEtiqueta = vc.colorClick;
break;
#endregion
#region coolor texto COMBOBOXNUMERICO
case "COMBOBOXNUMERICO":
PanelComboBoxNumerico pcbn = (PanelComboBoxNumerico)obj;
pcbn.ColorEtiqueta = vc.colorClick;
break;
#endregion
#region color texto CAMPOFECHA
case "CAMPOFECHA":
PanelCampoFecha pf = (PanelCampoFecha)obj;
pf.ColorEtiqueta = vc.colorClick;
break;
#endregion
#region color texto OPCION
case "OPCION":
PanelCampoOpcion po = (PanelCampoOpcion)obj;
po.ColorEtiqueta = vc.colorClick;
po.cambiarColorEtiqueta(vc.colorClick);
break;
#endregion
}
this.txtColorFuenteEtiquetaBB.Text = vc.colorClick.Name;
}
#endregion
#region cambia color fondo controles
private void button11_Click(object sender, EventArgs e)
{
ObjetoBase obj = (ObjetoBase)arreglo[indiceSeleccionado];
VentanaColores vc = new VentanaColores();
vc.ShowDialog();
switch (obj._TipoControl)
{
case "ETIQUETA":
PanelEtiqueta pe = (PanelEtiqueta)obj;
pe.ColorFondo = vc.colorClick;
pe.cambiarColorFondo(vc.colorClick);
this.txtColorFodoEtiquetaBB.Text = vc.colorClick.Name;
break;
case "RICHTEXTBOX":
PanelRichTextBox prtb = (PanelRichTextBox)obj;
prtb.ColorFondo = vc.colorClick;
prtb.cambiarColorFondo(vc.colorClick);
this.txtColorFodoEtiquetaBB.Text = vc.colorClick.Name;
break;
case "CAJATEXTO":
PanelCajatexto pct = (PanelCajatexto)obj;
pct.ColorFondo = vc.colorClick;
pct.cambiarColorFondo(vc.colorClick);
this.txtColorFodoEtiquetaBB.Text = vc.colorClick.Name;
150
break;
}
}
#endregion
#region cambia familia texto
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (cambiaTexto)
{
ObjetoBase obj = (ObjetoBase)arreglo[indiceSeleccionado];
switch (obj._TipoControl)
{
#region familia texto ETIQUETA
case "ETIQUETA":
PanelEtiqueta pe = (PanelEtiqueta)obj;
pe._NombreFamiliaTexto =
this.comboBox1.Items[this.comboBox1.SelectedIndex].ToString();
pe.cambiaFamiliaTexto(pe._NombreFamiliaTexto);
break;
#endregion
#region familia texto RICHTEXTBOX
case "RICHTEXTBOX":
PanelRichTextBox prtb = (PanelRichTextBox)obj;
prtb._NombreFamiliaTexto =
this.comboBox1.Items[this.comboBox1.SelectedIndex].ToString();
prtb.cambiaFamiliaTexto(prtb._NombreFamiliaTexto);
break;
#endregion
#region familia texto CAJATEXTO
case "CAJATEXTO":
PanelCajatexto pct = (PanelCajatexto)obj;
pct._NombreFamiliaTexto =
this.comboBox1.Items[this.comboBox1.SelectedIndex].ToString();
break;
#endregion
#region nombre familia texto PASSWORD
case "PASSWORD":
PanelPassword pp = (PanelPassword)obj;
pp._NombreFamiliaTexto =
this.comboBox1.Items[this.comboBox1.SelectedIndex].ToString();
break;
#endregion
#region nombre familia texto EMAIL
case "EMAIL":
PanelEmail pem = (PanelEmail)obj;
pem._NombreFamiliaTexto =
this.comboBox1.Items[this.comboBox1.SelectedIndex].ToString();
break;
#endregion
#region nombre familia texto TEXTOAUTOCOMPLETAR
case "TEXTOAUTOCOMPLETAR":
PanelTextoAutocompletar pta = (PanelTextoAutocompletar)obj;
pta._NombreFamiliaTexto =
this.comboBox1.Items[this.comboBox1.SelectedIndex].ToString();
break;
#endregion
151
#region nombre familia texto CAJATEXTOAUTOCORREGIR
case "CAJATEXTOAUTOCORREGIR":
PanelTextoAutocorregir ptac = (PanelTextoAutocorregir)obj;
ptac._NombreFamiliaTexto =
this.comboBox1.Items[this.comboBox1.SelectedIndex].ToString();
break;
#endregion
#region nombre familia texto TEXTOAUTOCOMPLETAR_
case "TEXTOAUTOCOMPLETAR_":
PanelAutoCompletar paut = (PanelAutoCompletar)obj;
paut._NombreFamiliaTexto =
this.comboBox1.Items[this.comboBox1.SelectedIndex].ToString();
break;
#endregion
#region nombre familia texto CHECKBOX
case "CHECKBOX":
PanelCheckBox pchb = (PanelCheckBox)obj;
pchb._NombreFamiliaTexto =
this.comboBox1.Items[this.comboBox1.SelectedIndex].ToString();
pchb.cambiaFamiliaTexto(this.comboBox1.Items[this.comboBox1.SelectedIndex].ToString());
break;
#endregion
#region nombre familia texto COMBOBOX
case "COMBOBOX":
PanelComboBox pcb = (PanelComboBox)obj;
pcb._NombreFamiliaTexto =
this.comboBox1.Items[this.comboBox1.SelectedIndex].ToString();
break;
#endregion
#region nombre familia COMBOBOXNUMERICO
case "COMBOBOXNUMERICO":
PanelComboBoxNumerico pcbn = (PanelComboBoxNumerico)obj;
pcbn._NombreFamiliaTexto =
this.comboBox1.Items[this.comboBox1.SelectedIndex].ToString();
break;
#endregion
#region nombre familia CAMPOFECHA
case "CAMPOFECHA":
PanelCampoFecha pf = (PanelCampoFecha)obj;
pf._NombreFamiliaTexto =
this.comboBox1.Items[this.comboBox1.SelectedIndex].ToString();
break;
#endregion
#region nombre familia OPCION
case "OPCION":
PanelCampoOpcion po = (PanelCampoOpcion)obj;
po._NombreFamiliaTexto =
this.comboBox1.Items[this.comboBox1.SelectedIndex].ToString();
po.cambiaFamiliaTexto(this.comboBox1.Items[this.comboBox1.SelectedIndex].ToString());
break;
#endregion
}
}
}
152
#endregion
#region modifica estilo textos
private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
{
if (cambiaTexto)
{
ObjetoBase obj = (ObjetoBase)arreglo[indiceSeleccionado];
switch (obj._TipoControl)
{
#region nombre estilo ETIQUETA
case "ETIQUETA":
PanelEtiqueta pe = (PanelEtiqueta)obj;
pe._NombreEstiloTexto =
this.comboBox2.Items[this.comboBox2.SelectedIndex].ToString();
pe.cambiarEstiloTexto(pe._NombreEstiloTexto);
break;
#endregion
#region nombre estilo RICHTEXTBOX
case "RICHTEXTBOX":
PanelRichTextBox prtb = (PanelRichTextBox)obj;
prtb._NombreEstiloTexto =
this.comboBox2.Items[this.comboBox2.SelectedIndex].ToString();
prtb.cambiarEstiloTexto(prtb._NombreEstiloTexto);
break;
#endregion
#region nombre estilo CAJATEXTO
case "CAJATEXTO":
PanelCajatexto pct = (PanelCajatexto)obj;
pct._NombreEstiloTexto =
this.comboBox2.Items[this.comboBox2.SelectedIndex].ToString();
break;
#endregion
#region nombre estilo texto PASSWORD
case "PASSWORD":
PanelPassword pp = (PanelPassword)obj;
pp._NombreEstiloTexto =
this.comboBox2.Items[this.comboBox2.SelectedIndex].ToString();
break;
#endregion
#region nombre estilo texto EMAIL
case "EMAIL":
PanelEmail pem = (PanelEmail)obj;
pem._NombreEstiloTexto =
this.comboBox2.Items[this.comboBox2.SelectedIndex].ToString();
break;
#endregion
#region nombre estilo texto TEXTOAUTOCOMPLETAR
case "TEXTOAUTOCOMPLETAR":
PanelTextoAutocompletar pta = (PanelTextoAutocompletar)obj;
pta._NombreEstiloTexto =
this.comboBox2.Items[this.comboBox2.SelectedIndex].ToString();
break;
#endregion
#region nombre estilo texto CAJATEXTOAUTOCORREGIR
case "CAJATEXTOAUTOCORREGIR":
PanelTextoAutocorregir ptac = (PanelTextoAutocorregir)obj;
153
ptac._NombreEstiloTexto =
this.comboBox2.Items[this.comboBox2.SelectedIndex].ToString();
break;
#endregion
#region nombre estilo texto TEXTOAUTOCOMPLETAR_
case "TEXTOAUTOCOMPLETAR_":
PanelAutoCompletar paut = (PanelAutoCompletar)obj;
paut._NombreEstiloTexto =
this.comboBox2.Items[this.comboBox2.SelectedIndex].ToString();
break;
#endregion
#region nombre estilo texto CHECKBOX
case "CHECKBOX":
PanelCheckBox pchb = (PanelCheckBox)obj;
pchb._NombreEstiloTexto =
this.comboBox2.Items[this.comboBox2.SelectedIndex].ToString();
pchb.cambiarEstiloTexto(this.comboBox2.Items[this.comboBox2.SelectedIndex].ToString());
break;
#endregion
#region nombre estilo texto COMBOBOX
case "COMBOBOX":
PanelComboBox pcb = (PanelComboBox)obj;
pcb._NombreEstiloTexto =
this.comboBox2.Items[this.comboBox2.SelectedIndex].ToString();
break;
#endregion
#region nombre estilo COMBOBOXNUMERICO
case "COMBOBOXNUMERICO":
PanelComboBoxNumerico pcbn = (PanelComboBoxNumerico)obj;
pcbn._NombreEstiloTexto =
this.comboBox2.Items[this.comboBox2.SelectedIndex].ToString();
break;
#endregion
#region nombre estilo CAMPOFECHA
case "CAMPOFECHA":
PanelCampoFecha pf = (PanelCampoFecha)obj;
pf._NombreEstiloTexto =
this.comboBox2.Items[this.comboBox2.SelectedIndex].ToString();
break;
#endregion
#region nombre estilo OPCION
case "OPCION":
PanelCampoOpcion po = (PanelCampoOpcion)obj;
po._NombreEstiloTexto =
this.comboBox2.Items[this.comboBox2.SelectedIndex].ToString();
po.cambiarEstiloTexto(this.comboBox2.Items[this.comboBox2.SelectedIndex].ToString());
break;
#endregion
}
}
}
#endregion
#region modifica tamaño controles
private void cmbTamanioFuenteBB_SelectedIndexChanged(object sender, EventArgs e)
{
if (cambiaTexto)
154
{
ObjetoBase obj = (ObjetoBase)arreglo[indiceSeleccionado];
switch (obj._TipoControl)
{
#region tamaño texto ETIQUETA
case "ETIQUETA":
PanelEtiqueta pe = (PanelEtiqueta)obj;
pe._TamanioTexto =
this.cmbTamanioFuenteBB.Items[this.cmbTamanioFuenteBB.SelectedIndex].ToString();
pe.modificaTamanioTexto(pe._TamanioTexto);
break;
#endregion
#region tamaño textoRICHTEXTBOX
case "RICHTEXTBOX":
PanelRichTextBox prtb = (PanelRichTextBox)obj;
prtb._TamanioTexto =
this.cmbTamanioFuenteBB.Items[this.cmbTamanioFuenteBB.SelectedIndex].ToString();
prtb.modificaTamanioTexto(prtb._TamanioTexto);
break;
#endregion
#region tamaño texto CAJATEXTO
case "CAJATEXTO":
PanelCajatexto pct = (PanelCajatexto)obj;
pct._TamanioTexto =
this.cmbTamanioFuenteBB.Items[this.cmbTamanioFuenteBB.SelectedIndex].ToString();
break;
#endregion
#region tamaño texto PASSWORD
case "PASSWORD":
PanelPassword pp = (PanelPassword)obj;
pp._TamanioTexto =
this.cmbTamanioFuenteBB.Items[this.cmbTamanioFuenteBB.SelectedIndex].ToString();
break;
#endregion
#region tamaño texto EMAIL
case "EMAIL":
PanelEmail pem = (PanelEmail)obj;
pem._TamanioTexto =
this.cmbTamanioFuenteBB.Items[this.cmbTamanioFuenteBB.SelectedIndex].ToString();
break;
#endregion
#region tamaño texto TEXTOAUTOCOMPLETAR
case "TEXTOAUTOCOMPLETAR":
PanelTextoAutocompletar pta = (PanelTextoAutocompletar)obj;
pta._TamanioTexto =
this.cmbTamanioFuenteBB.Items[this.cmbTamanioFuenteBB.SelectedIndex].ToString();
break;
#endregion
#region tamaño texto CAJATEXTOAUTOCORREGIR
case "CAJATEXTOAUTOCORREGIR":
PanelTextoAutocorregir ptac = (PanelTextoAutocorregir)obj;
ptac._TamanioTexto =
this.cmbTamanioFuenteBB.Items[this.cmbTamanioFuenteBB.SelectedIndex].ToString();
break;
#endregion
#region tamaño texto TEXTOAUTOCOMPLETAR_
case "TEXTOAUTOCOMPLETAR_":
155
PanelAutoCompletar paut = (PanelAutoCompletar)obj;
paut._TamanioTexto =
this.cmbTamanioFuenteBB.Items[this.cmbTamanioFuenteBB.SelectedIndex].ToString();
break;
#endregion
#region tamaño texto CHECKBOX
case "CHECKBOX":
PanelCheckBox pchb = (PanelCheckBox)obj;
pchb._TamanioTexto =
this.cmbTamanioFuenteBB.Items[this.cmbTamanioFuenteBB.SelectedIndex].ToString();
pchb.modificaTamanioTexto(this.cmbTamanioFuenteBB.Items[this.cmbTamanioFuenteBB.SelectedIndex].
ToString());
break;
#endregion
#region tamaño texto COMBOBOX
case "COMBOBOX":
PanelComboBox pcb = (PanelComboBox)obj;
pcb._TamanioTexto =
this.cmbTamanioFuenteBB.Items[this.cmbTamanioFuenteBB.SelectedIndex].ToString();
break;
#endregion
#region tamaño COMBOBOXNUMERICO
case "COMBOBOXNUMERICO":
PanelComboBoxNumerico pcbn = (PanelComboBoxNumerico)obj;
pcbn._TamanioTexto =
this.cmbTamanioFuenteBB.Items[this.cmbTamanioFuenteBB.SelectedIndex].ToString();
break;
#endregion
#region tamaño CAMPOFECHA
case "CAMPOFECHA":
PanelCampoFecha pf = (PanelCampoFecha)obj;
pf._TamanioTexto =
this.cmbTamanioFuenteBB.Items[this.cmbTamanioFuenteBB.SelectedIndex].ToString();
break;
#endregion
#region tamaño texto OPCION
case "OPCION":
PanelCampoOpcion po = (PanelCampoOpcion)obj;
po._TamanioTexto =
this.cmbTamanioFuenteBB.Items[this.cmbTamanioFuenteBB.SelectedIndex].ToString();
po.modificaTamanioTexto(this.cmbTamanioFuenteBB.Items[this.cmbTamanioFuenteBB.SelectedIndex].To
String());
break;
#endregion
}
}
}
#endregion
#region agrega control etiqueta
private void AgregaEtiqueta_Click(object sender, EventArgs e)
{
PanelEtiqueta pnl = new PanelEtiqueta("Texto etiqueta");
aumentaPanel(pnl, pnl._ancho,pnl._alto);
AsignaNombre();
}
156
#endregion
#region agrega control caja texto solo lectura
private void button12_Click(object sender, EventArgs e)
{
PanelRichTextBox pnl = new PanelRichTextBox("Texto Caja");
aumentaPanel(pnl, pnl._ancho, pnl._alto);
AsignaNombre();
}
#endregion
private void txtColorFuenteEtiquetaBB_TextChanged(object sender, EventArgs e)
{
}
#region agrega control caja texto
private void button2_Click(object sender, EventArgs e)
{
PanelCajatexto pnl = new PanelCajatexto(true);
aumentaPanel(pnl,pnl._ancho,pnl._alto);
AsignaNombre();
}
#endregion
#region agrega control password
private void button13_Click(object sender, EventArgs e)
{
PanelPassword pnl = new PanelPassword(true);
aumentaPanel(pnl,pnl._ancho,pnl._alto);
AsignaNombre();
}
#endregion
#region elimina contorl seleccionado
private void toolStripMenuItem1_Click_1(object sender, EventArgs e)
{
try
{
arreglo.RemoveAt(indiceSeleccionado);
pnlSeleccionado.Visible = false;
indiceSeleccionado = -1;
}
catch (Exception ex)
{
MessageBox.Show("No Existen Elementos Para Eliminar", "No Items", MessageBoxButtons.OK,
MessageBoxIcon.Asterisk);
}
}
#endregion
#region agrega control email
private void button14_Click(object sender, EventArgs e)
{
PanelEmail pnl = new PanelEmail(true);
aumentaPanel(pnl,pnl._ancho,pnl._alto);
AsignaNombre();
}
#endregion
#region agrega control texto autocompletar
private void button15_Click(object sender, EventArgs e)
{
PanelTextoAutocompletar ptac = new PanelTextoAutocompletar(true);
157
aumentaPanel(ptac,ptac._ancho,ptac._alto);
AsignaNombre();
}
#endregion
#region cambia texto de combos box
private void button16_Click(object sender, EventArgs e)
{
DialogoAccionBoton vnt = new DialogoAccionBoton();
vnt.Text = "Contenido ";
vnt.ShowDialog();
this.txtContenidoCombo.Text = vnt.contenidoT;
string conteidoIngresado = vnt.contenidoT;
string[] miArregloIngresado = conteidoIngresado.Replace(Encoding.ASCII.GetString(new byte[] {
(byte)13 }).ToString() + Encoding.ASCII.GetString(new byte[] { (byte)10 }).ToString(),"*").Split('*');
Array n = miArregloIngresado.ToArray();
ObjetoBase obj1 = (ObjetoBase)arreglo[indiceSeleccionado];
if (obj1._TipoControl == "TEXTOAUTOCOMPLETAR")
{
PanelTextoAutocompletar ptac = (PanelTextoAutocompletar)arreglo[indiceSeleccionado];
ptac.Contenido = n;
}
if (obj1._TipoControl == "COMBOBOX")
{
PanelComboBox ptac = (PanelComboBox)arreglo[indiceSeleccionado];
ptac.Contenido = n;
}
}
#endregion
#region agrega control autocorregir
private void button18_Click(object sender, EventArgs e)
{
PanelTextoAutocorregir ptac = new PanelTextoAutocorregir(true);
aumentaPanel(ptac,ptac._ancho,ptac._alto);
AsignaNombre();
}
#endregion
#region agrega region autocompletar
private void button19_Click(object sender, EventArgs e)
{
PanelAutoCompletar ptac = new PanelAutoCompletar(true);
aumentaPanel(ptac,ptac._ancho,ptac._alto);
AsignaNombre();
}
#endregion
private void ovalShape1_Click(object sender, EventArgs e)
{
}
#region agrega control check box
private void button4_Click(object sender, EventArgs e)
{
PanelCheckBox ptac = new PanelCheckBox();
aumentaPanel(ptac,ptac._ancho,ptac._alto);
AsignaNombre();
}
#endregion
#region agrega control combo box
158
private void button20_Click(object sender, EventArgs e)
{
PanelComboBox ptac = new PanelComboBox(true);
aumentaPanel(ptac,ptac._ancho,ptac._alto);
AsignaNombre();
}
#endregion
#region agrega contorl combo box numerico
private void button21_Click(object sender, EventArgs e)
{
PanelComboBoxNumerico pcbn = new PanelComboBoxNumerico(true);
pcbn.indiceInicio = 0;
pcbn.indiceFinal = 100;
pcbn.incremento = 1;
pcbn.comienzo = 0;
aumentaPanel(pcbn,pcbn._ancho,pcbn._alto);
AsignaNombre();
}
#endregion
#region agrega control fecha
private void button22_Click(object sender, EventArgs e)
{
PanelCampoFecha ptac = new PanelCampoFecha(true);
aumentaPanel(ptac,ptac._ancho,ptac._alto);
AsignaNombre();
}
#endregion
#region agrega control opcion
private void button23_Click(object sender, EventArgs e)
{
PanelCampoOpcion pco = new PanelCampoOpcion();
aumentaPanel(pco, pco._ancho,pco._alto);
AsignaNombre();
}
#endregion
#region agrega control boton
private void button24_Click(object sender, EventArgs e)
{
PanelBoton pnl = new PanelBoton(true);
aumentaPanel(pnl,pnl._ancho,pnl._alto);//,pnl._ancho);
AsignaNombre();
}
#endregion
#region agrega campo imagen
private void button6_Click(object sender, EventArgs e)
{
PanelCampoImagen pci = new PanelCampoImagen();
aumentaPanel(pci, pci._ancho,pci._alto);
AsignaNombre();
}
#endregion
#region cambia imagen de control imagen
private void button25_Click(object sender, EventArgs e)
{
ObjetoBase obj = (ObjetoBase)arreglo[indiceSeleccionado];
if (obj._TipoControl == "IMAGEN")
{
159
PanelCampoImagen pci = (PanelCampoImagen)arreglo[indiceSeleccionado];
opfdImagen.Filter = "Imagenes Ligeras (*.jpg)|*.jpg|Mapas de Bits(*.bmp)|*.bmp|Imagenes
Web(*.gif)|*.gif";
opfdImagen.ShowDialog();
string pathImagen = opfdImagen.FileName;
string nombreArchivo = "";
string nombreDirectorio = "";
separaDirArchivo(pathImagen, ref nombreDirectorio, ref nombreArchivo);
nombreImagenFondo = nombreArchivo;
this.txtImagenSeleccionada.Text = nombreImagenFondo;
/*if(File.Exists("C:\\FuentesDesarrolladosTHWPR\\Proyecto\\res\\" + nombreArchivo)){
File.Delete("C:\\FuentesDesarrolladosTHWPR\\Proyecto\\res\\" + nombreArchivo);
}
File.Copy(pathImagen, "C:\\FuentesDesarrolladosTHWPR\\Proyecto\\res\\" + nombreArchivo);
Image img1 = Image.FromFile("C:\\FuentesDesarrolladosTHWPR\\Proyecto\\res\\" +
nombreArchivo);*/
if (File.Exists(_DirectorioJava.Replace("\\src", "\\res\\") + nombreArchivo))
{
File.Delete(_DirectorioJava.Replace("\\src", "\\res\\") + nombreArchivo);
}
File.Copy(pathImagen, _DirectorioJava.Replace("\\src", "\\res\\") + nombreArchivo);
Image img1 = Image.FromFile(_DirectorioJava.Replace("\\src", "\\res\\") + nombreArchivo);
160
MessageBox.Show("El Tamaño de la imagen es Superior al permitido...favor de seleccionar
imagenes de maximo 18kb", "Archivo incorrecto", MessageBoxButtons.OK,
MessageBoxIcon.Exclamation);
return;
}
161
pbk.comienzo = int.Parse((this.txtComienzo.Text == "") ? "0" : this.txtComienzo.Text);
}
162
mostrar++;
}
163
generasolucion(pathInput, pathOutput, nombreApp);
}
164
string nombreArchivo = "";
string nombreDirectorio = "";
separaDirArchivo(pathImagen, ref nombreDirectorio, ref nombreArchivo);
this.txtIconoSolucionApp.Text = nombreArchivo;
if (File.Exists(_DirectorioJava.Replace("\\src", "\\res\\img\\") + nombreArchivo))
{
File.Delete(_DirectorioJava.Replace("\\src", "\\res\\img\\") + nombreArchivo);
}
try
{
File.Copy(pathImagen, _DirectorioJava.Replace("\\src", "\\res\\img\\") + nombreArchivo);
}
catch (Exception ex)
{
MessageBox.Show("La Imagen ya esta siendo utilizada en el Proyecto Actual", "Imagen
Repetida", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
}
catch (Exception ex)
{
}
}
Codificación AppConfig
165
MANUAL DE USUARIO
1
Índice General
INTRODUCCIÓN 5
OBJETIVOS DE ESTE MANUAL 5
A QUIEN VA DIRIGIDO ESTE MANUAL 5
CONOCIMIENTOS PREVIOS 5
ACERCA DE ESTE MANUAL 6
CARACTERÍSTICAS DEL APLICATIVO 6
BENEFICIOS 7
PANTALLA DE PRESENTACION 7
PANTALLA DE CREACION SELECCIÓN DE SOLICITUD 8
PANTALLA PRINCIPAL 9
Área De Propiedades de controles de Formularios 11
2
Índice de Gráficos
GRÁFICO 1 Verificación Framework 6 6
GRAFICO 2 Verificación de JDK 7
GRÁFICO 3 PRESENTACION AGBB 8
GRÁFICO 4 Pantalla de Creación , Selección de Solución 8
GRÁFICO 5 Selección de Solución existente 9
GRÁFICO 6 Selección de Clase Creada 9
GRAFICO 7 Pantalla de Diseño 10
GRÁFICO 8 Detalle de Pantalla de Desarrollo - Detalle 10
GRÁFICO 9 Área de Desarrollo 11
GRÁFICO 10 Área de propiedades de Formulario y propiedades 11
de solución
GRAFICO 11 Selección de Tipo de Fondo de Pantalla 12
GRAFICO 12 Selección Color 12
GRAFICO 13 Selección Imagen 12
GRÁFICO 14 Área De Cuadro de Herramientas 13
GRÁFICO 15 Propiedades de control Label 16
GRAFICO 16 Propiedades de Caja de Selección 16
GRÁFICO 17 Propiedades Control de Opción 17
GRÁFICO 18 Propiedades de Botón 17
GRÁFICO 19 Propiedades de Lista de Selección de Texto 18
GRAFICO 20 Propiedades Lista de Selección numérica 18
GRÁFICO 21 Propiedades de Control Texto 19
GRAFICO 12 Propiedades de Texto de Solo Lectura 20
GRAFICO 13 Propiedades de Texto Auto búsqueda 20
GRÁFICO 14 Propiedades de texto Autocorregir 21
GRAFICO 15 Propiedades Texto Autocompletar 21
GRÁFICO 16 Propiedades de control Correo Electrónico 22
GRÁFICO 17 Propiedades de Password 22
3
GRAFICO 18 Propiedades de control fecha 23
GRÁFICO 19 Propiedades de Control Web 23
GRÁFICO 20 Propiedades de control imagen 24
GRÁFICO 21 Propiedades de control mapa 24
GRÁFICO 22 Menú de Control 25 25
GRAFICO 23 Código Generado 26
GRÁFICO 24 Diseño 27
GRÁFICO 25 Menú Acción Compilar 28
GRÁFICO 26 Ventana de Diseño Para compilación 28
GRÁFICO 27 Importación de Solución a Eclipse 29
GRÁFICO 28 Paso 2 de importación de solución a eclipse 30
GRÁFICO 29 Importación de solución a Eclipse Paso 3 30
GRAFICO 30 Selección de Carpeta Solución 31
GRÁFICO 31 Verificación de Archivo Solución 31
GRÁFICO 32 Visualización de solución en Eclipse 32
GRAFICO 33 Ejecución del Proyecto en Eclipse – Selección de 32
Emulador
GRAFICO 34 Ejecución de Proyecto, Verificación de 33
compilación en Eclipse
GRÁFICO 35 Visualización e Solución 33
4
GENERALIDADES
INTRODUCCIÓN
Este manual contiene información respecto a cómo operar con el Aplicativo AGBB
que conozca las facilidades que este brinda al momento de crear aplicaciones para
dispositivos BlackBerry.
móviles.
Está dirigido a desarrolladores que buscan hacer aplicaciones amigables para los
usuarios finales.
Está dirigido a todos los desarrolladores que estan familiarizados con desarrollos de
java.
Está dirigido a desarrolladores que tiene un conocimiento del IDE Eclipse para la
5
Está dirigido a desarrolladores que tiene conocimiento de proyectos J2ME.
CONOCIMIENTOS PREVIOS
Se recomienda, que el usuario tenga conocimiento de desarrollo de aplicaciones
El usuario deber estar familiarizado con las funcionalidades que brindan los
El usuario debe tener conocimiento del uso del aplicativo Eclipse para Java, debido
El usuario debe confirmar que tenga instalado el componente net Framework 3.5 o
GRÁFICO 1
Verificación Framework
6
panel de control programas instalados.
GRAFICO 2
Verificación de JDK
BENEFICIOS
Se buscar optimizar el desarrollo de aplicaciones para dispositivos móviles
BlackBerry.
interfaces de usuarios.
compilación.
7
AGBB de Contenido
PANTALLA DE PRESENTACION
GRÁFICO 3
PRESENTACION AGBB
GRÁFICO 4
Pantalla de Creación , Selección de Solucion
asi como los diferentes objetos iniciales para que la solución pueda ser compilada,
8
Este contiene la información necesaria para ser abierto y retomar el diseño, en la
GRÁFICO 5
Selección de Solución existente
Y una vez abierto este archivo se cargaran las clases creadas en esta solución.
GRÁFICO 6
Selección de Clase Creada
PANTALLA PRINCIPAL
9
Pantalla Desarrollador
Esta pantalla contiene todo lo concerniente a los controles de las aplicaciones para
los dispositivos BlackBerry.
GRAFICO 7
Pantalla de Diseño
GRÁFICO 8
Detalle de Pantalla de Desarrollo - Detalle
A: Área de Desarrollo
B: Área De Propiedades de Formulario y Propiedades de Solución
C: Área De Cuadro de herramientas
D: Área De Propiedades de Controles de Formulario
E: Menú de Control.
10
GRÁFICO 9
Área de Desarrollo
GRÁFICO 10
Área de propiedades de Formulario y propiedades de solución
11
Notificaciones: Indica si se mostraran las notificaciones en la barra de tarea de la
aplicación
Señal: Indica si se muestra el identificador de señalen la barra de titulo
GRAFICO 11
Selección de Tipo de Fondo de Pantalla
GRAFICO 12
Selección Color
Imagen: indica que se usara una imagen, aquí se solicita una imagen
GRAFICO 13
Selección Imagen
12
GRÁFICO 14
Área De Cuadro de Herramientas.
Muestra todos los controles a ser usados en una aplicación para el dispositivo
Blackberry
Etiqueta:
Permite mostrar un texto con el formato que se desee, este texto no es editable en el
momento de ejecución.
Caja de Selección
13
pueden elegir más de 2 a la vez, es una caja de selección múltiple
Caja de Opción
Este control es de opción única, es decir si hay más de un control solo se permite
coger una sola opción.
Botón
Texto
Es un control que permite ingresar texto en varia líneas, este control en tiempo
de ejecución no permite la edición.
14
Es un control que permite la edición y se guarda en memoria lo escrito para que
en un futuro se permita el ingreso del mismo y se busque entre las diferentes
opciones ingresadas.
Texto Autocorregir
Texto Autocompletar
Correo Electrónico
Password
Campo Fecha
Campo Web
15
Es un campo donde se puede ingresar código HTML o en su defecto una uro
para que se muestre una página en el aplicativo de dispositivo BlackBerry
Campo Imagen
16
GRAFICO 16
Propiedades de Caja de Selección
GRÁFICO 17
Propiedades Control de Opción
17
Color Fondo: Color de fondo de la etiqueta
Familia Fuente: Nombre de la familia de texto del control
Estilo Fuente: Nombre del estilo del texto en el control
Tamaño Fuente: Tamaño de fuente del control
Color Fuente: el color de la fuente del texto del control
GRÁFICO 18
Propiedades de Botón
GRÁFICO 19
Propiedades de Lista de Selección de Texto
18
Color Fuente: el color de la fuente del texto del control
Elementos: listado de elementos a utilizarse.
GRAFICO 20
Propiedades Lista de Selección numérica
GRÁFICO 21
Propiedades de Control Texto
19
Nombre: Nombre del control
Texto: texto de la etiqueta
Color Fondo: Color de fondo de la etiqueta
Familia Fuente: Nombre de la familia de texto del control
Estilo Fuente: Nombre del estilo del texto en el control
Tamaño Fuente: Tamaño de fuente del control
Color Fuente: el color de la fuente del texto del control
Elementos: listado de elementos a utilizarse.
GRAFICO 12
Propiedades de Texto de Solo Lectura.
20
Familia Fuente: Nombre de la familia de texto del control
Estilo Fuente: Nombre del estilo del texto en el control
Tamaño Fuente: Tamaño de fuente del control
Color Fuente: el color de la fuente del texto del control
Elementos: listado de elementos a utilizarse.
GRAFICO 13
Propiedades de Texto Auto búsqueda
GRÁFICO 14
Propiedades de texto Autocorregir
21
Nombre: Nombre del control
Texto: texto de la etiqueta
Color Fondo: Color de fondo de la etiqueta
Familia Fuente: Nombre de la familia de texto del control
Estilo Fuente: Nombre del estilo del texto en el control
Tamaño Fuente: Tamaño de fuente del control
Color Fuente: el color de la fuente del texto del control
GRAFICO 15
Propiedades Texto Autocompletar
GRÁFICO 16
22
Propiedades de control Correo Electrónico
GRÁFICO 17
Propiedades de Password
GRAFICO 18
Propiedades de control fecha
23
Nombre: Nombre del control
Texto: texto de la etiqueta
Color Fondo: Color de fondo de la etiqueta
GRÁFICO 19
Propiedades de Control Web
GRÁFICO 20
Propiedades de control imagen
24
Nombre: Nombre del control
Texto: no aplica
Ancho del control imagen
Alto alto del control imagen
Imagen imagen a cargar en el control
GRÁFICO 21
Propiedades de control mapa
Para eliminar un control se hace click derecho en el control y aparece l opción de eliminar.
25
GRAFICO 22
Menú de Control
Permite ver las acciones que se realizaran, las cuales son las siguientes.
Nuevo. Permite crear un nuevo proyecto desde cero
Mostrar Codigo. Muestra el codigo que se genero con el formulario
Compilar Pewmrite compilar el codigo generado o modificado
Generar Solucion. Permite geenerar la solucion para ser importada en Eclipse
GRAFICO 23
26
Código Generado
27
El código generado es el resultado de la interacción con los diferentes controles que se
utilizaron para la aplicación
GRÁFICO 24
Diseño
28
GRÁFICO 25
Menú Acción Compilar
GRÁFICO 26
Ventana de Diseño Para compilación
GRÁFICO 27
Importación de Solución a Eclipse
30
GRÁFICO 28
Paso 2 de importación de solución a eclipse
GRÁFICO 29
Importación de solución a Eclipse Paso 3
31
GRAFICO 30
Selección de Carpeta Solución
GRÁFICO 31
Verificación de Archivo Solución
32
GRÁFICO 32
Visualización de solución en Eclipse
ejecución de proyecto
Para ejecutar se hace click al botón play y seleccionar el emulador
GRAFICO 33
Ejecucion del Proyecto en Eclipse – Selección de Emulador
33
GRAFICO 34
Ejecución de Proyecto, Verificación de compilación en Eclipse
GRÁFICO 35
Visualización e Solución
34