jaPBe - First Release

Developed or developing a new product in PureBasic? Tell the world about it.
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

i have uploaded it with a diffrent name. please try this.

Edit:
@Fenix: In the Sources-Zip are hidden files and by default Windows don't show them! When you just copy the files, you forget all .declares. that could be your problem.

GPI

Edit2:
Hidden declares and Windows XP:
Under Windows XP PureBasic can't overwrite hidden files, under 98SE no problems. So when you want to edit japbe (or older projects), please dehide all declares. (Explorere>Extra>Folderoptions in there must be something like show all files; I have the german version, so i can't give the right name).
Edit3: And deaktivate in japbe "hidden declares"

GPI
RJP Computing
Enthusiast
Enthusiast
Posts: 202
Joined: Sun Apr 27, 2003 4:44 am
Location: Michigan, USA
Contact:

Post by RJP Computing »

@GPI

I was going to metion that I can't create the Declares in Win2k SP4 and on WinXP. The editor gives me errors.

also what are the declare files used for. Do I not need to declare function in my source anymore or are they used for populating the side bar?

Thanks
-Ryan
RJP Computing

Ubuntu 8.10/WinXP, AMD Athlon 64 3000+, 1000MB RAM, AC 97 Audio, nVidia GeForce 7600GT 512MB
Searhin
User
User
Posts: 41
Joined: Mon May 26, 2003 10:53 am
Location: Germany

Post by Searhin »

@ GPI

similar problem here: when saving my code i get an error message saying "can't save. declare file could not be created" (or something like that). Also error when compiling the code.

Well, the code is saved anyway and it does compile - but the messages are somewhat annoying :D

PS: i use jaPBe exclusively now, but i feel there may be some improvements still: :wink:
(1) would be nice to exit the "search" window with ESC
(2) Prefereences: font size should be changeable for all text types simultaneously (e.g. if i set constant text size to 12 there should be an option to change all of the code to 12) - or is there already??
(3) i feel the AutoComplete function (which is really really cool) should also work with the ENTER key, not just with LeftDoubleClick, so you can type the first few letters, choose the function/constant/variable with the arrow keys and hit ENTER to complete it :D

Greets,
Searhin
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

>similar problem here: when saving my code i get an error message
>saying "can't save. declare file could not be created" (or something like
>that). Also error when compiling the code.

As i posted above,PB 3.72 has problems with hidden files under XP, they are write protected for createfile(). Remove the hidde-flag and it will work.

>(1) would be nice to exit the "search" window with ESC

Should do, when the find-window is active.

>(2) Prefereences: font size should be changeable for all text types
>simultaneously (e.g. if i set constant text size to 12 there should be an
>option to change all of the code to 12) - or is there already??

There is a button (something like set default font, or set all font. I have at the moment no access to japbe.)

>(3) i feel the AutoComplete function (which is really really cool) should
>also work with the ENTER key, not just with LeftDoubleClick, so you can
>type the first few letters, choose the function/constant/variable with the
>arrow keys and hit ENTER to complete it :D

Press tab or ctrl+return

And maybe read the readme.txt

GPI
RJP Computing
Enthusiast
Enthusiast
Posts: 202
Joined: Sun Apr 27, 2003 4:44 am
Location: Michigan, USA
Contact:

Post by RJP Computing »

RJP Computing wrote:
what are the declare files used for. Do I not need to declare function in my source anymore or are they used for populating the side bar?
Thanks GPI for the explaination of the declare function. But just so I know, what are the declare file actually for.

Thanks for all your great work. I use this editor exclusively now!
-Ryan
RJP Computing

Ubuntu 8.10/WinXP, AMD Athlon 64 3000+, 1000MB RAM, AC 97 Audio, nVidia GeForce 7600GT 512MB
Fenix
Enthusiast
Enthusiast
Posts: 102
Joined: Wed May 07, 2003 1:45 am
Location: Germany

Post by Fenix »

Hi!

@GPI: "<- Insert here the complete path&name of the japbe-main-file" - Which file do you mean? exe or source?
(I`m using the v1.3.7.15 editor)


Fenix
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

@RJP Computing
jaPBe creates autmatic a file with the extension ".declare" which are all procedures declared (open it with wordpad, and you know what i mean). When your source-File is "Dumm.pb", a "dumm.pb.declare" is created. When the first line of "dumm.pb" is 'xincludefile "dumm.pb.declare"' you can call all procedures without takeing care of there order in the file. Also before compiling a "all.declare" is created, where all "*.declare" in the same directory of the source are included.
NOTE:(!) When a procedure has a own-definied structure in the parameter list (for example: "procedure dumm(*a.OwnStructure)") you must definied the structure BEFORE you include the declares.

@Fenix
The "jaPBe.pb"-File.
btw: Are the declare-files hidden?
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

@GPI

Did you have a webpage for your editor?
I mean, somewhere to find updates, news, etc. about the editor.
ARGENTINA WORLD CHAMPION
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

>Did you have a webpage for your editor?

no. i only place all new file on:
http://caosandkin.bei.t-online.de/purebasic/jaPBe/

There will you find always the newest version, and when it moved to a other side (and i don't lost this homepage from T-Online), i will place a link there.

btw: New Version 1.3.7.16

New Keys in jaPBe
* Shift+Return -> re-indent the current file
* Esc -> close Find Window & AutoCompletation

Fold
- It was possible, that a you can combine the line before the fold with the fold
- When you select a complete (open) fold and delete the fold, a fold-arrow was in the foldmargin

AutoCreate Declare
- Under WinXP you get realy problems, when you use hidden declare-files. solved
- When a declare without a "linked" file exist, the declare will not add to all.declare and is set visible

"Error" in the SourceCode
- I set "compile this" for the jaPBe-Main-File for testing.

Synch List
- Forgot a clearlist, when you choose "close all"

PlugIn Visual Designer Starter
* Start Project work now.
WARNING: The main-file is open with jaPBe and jaPBe will compile it (i think, this is the better methode than compile it direct with the compiler)
But then you can get problems, when you select in the preferences "load only a file, when it is not open". Because then the main-file will not reloaded! (But i don't think, that the visual designer will change much on the main-file :)

@Fenix:
Please try now to compile jaPbe (with jaPbe 1.3.7.16).
Fenix
Enthusiast
Enthusiast
Posts: 102
Joined: Wed May 07, 2003 1:45 am
Location: Germany

Post by Fenix »

Hi!

@GPI: The declare files were NOT hidden. I´ll give it another try with the 1.3.7.16 version.


see ya

Fenix
vkleonid
User
User
Posts: 15
Joined: Tue May 27, 2003 11:31 am

Post by vkleonid »

GPI

How I can copy the formatted text of program ( font color, bold etc.) from jaPBe?
This possible only in standard PB-editor.
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

>How I can copy the formatted text of program ( font color, bold etc.)
>from jaPBe?

This is a problem from Scintilla

>This possible only in standard PB-editor.

PB-Editor use a RichEdit, who has a standard-interface for colors etc.
vkleonid
User
User
Posts: 15
Joined: Tue May 27, 2003 11:31 am

Post by vkleonid »

GPI

In "SciTE Editor PureBasic Edition" (SciTE, http://www.scintilla.org), which too uses Scintilla-library, there is option "Menu -> Edit -> Copy as RTF" (i.e. with all formatting).
Possible include such option in jaPBe?
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

vkleonid wrote:GPI

In "SciTE Editor PureBasic Edition" (SciTE, http://www.scintilla.org), which too uses Scintilla-library, there is option "Menu -> Edit -> Copy as RTF" (i.e. with all formatting).
Possible include such option in jaPBe?
It Seems, that is not a function from scintilla, so i must write it myself. I don't know engouth to do this. Sorry.

But i work at the moment at a Printing-Routine. So i think, this is, what you want.

@ALL
I found a heavy bug in jaPBe 1.3.7.16. When you use folding, japbe can hang (with the complete system). You must close japbe with the task-manager. Wait a little bit and you should get the possibility to save changed text.

I work at the moment on a printing-routine. So please do the little bugfix self. Open in the original-PB-Editor "WindowCallback.pbi":
replace this lines between this bookmarks

Code: Select all

          ;-notify SciEdi StyleNeeded -> before Draw
          Case #SCN_STYLENEEDED
            StartLine=SCI_GetFirstVisibleLine()
            EndLine=SCI_VisibleFromDocLine( SCI_LineFromPosition(*msg\position))
            ;SCI_DocLineFromVisible(startLine+SCI_LinesOnScreen())
             If StartLine<>OldFirstVisibleLine Or OldLastVisibleLine<>EndLine
              OldLastVisibleLine=EndLine:OldFirstVisibleLine=StartLine
              ;ColorWordUnderCursor=#True
              NoFoldChangeProtection=#True
              For ii=StartLine To EndLine
                i=SCI_DocLineFromVisible(ii)
                ;If SCI_GetLineVisible(i)=#True ;And SCI_GetLineState(i)=#False
                 ColoringLine(#True,-1,i)
                  ;SCI_SetLineState(i,#True)
                ;EndIf
              Next
              NoFoldChangeProtection=#False
              ;ColorWordUnderCursor=#False
            EndIf
          ;-notify sciedi updateui
save and open japbe. Open japbe.pb and create the executable

btw: Scrolling over very big closed Folds should be faster now.

p.s.: Maybe Compile&Run don't work with the japbe-sourcecode, when the debugger is activated (i get only a error-message-sound and the compiler hangs then).
Saboteur
Enthusiast
Enthusiast
Posts: 272
Joined: Fri Apr 25, 2003 7:09 pm
Location: (Madrid) Spain
Contact:

Post by Saboteur »

Ok. A new fix for Spanish text.
I like this editor more and more. ;)

Code: Select all

; Spanish
;   Written by Saboteur
;
; jaPBe Language File 
; 
; ° = Tab 
; ^ = new Line 

;InfoBox 
;####### 
;  bienvenido a jaPBe %ver% para PureBasic %PBver% 
0:  bienvenido a jaPBe 
198:  para 

1:  Cargar archivo 
13: Guardar archivo 
10: Cargar archivo de definición 
2:  Hecho 
11: Rehacer estilo 
40: Cerrar 
41: Guardar definiciones 
42: Cargar lista de archivos 
43: Lista de archivos cargada. 
44: Guardar lista de archivos 
45: Lista de archivos guardada. 
108: Guardar declaración 
133: Guardar bloque 
134: Cargar bloque 
211: Ejecutar plugin 

;Messages 
;######## 
4:  No se puede cargar 
14: No se puede guardar 
34: El archivo ya existe.^¿Desea sobreescribirlo? 
35: Existe un directorio con ese nombre. 
36: El archivo ha cambiado.^¿Desea guardarlo? 
110: Las carpetas están protegidas! 
3:  No hay memoria disponible! 
212: No se puede ejecutar el plugin! 
245: El visor de estructuras se ha colgado.^Hay que cerrarlo... 
246: jaPBe no soporta este tipo de archivo!^¿Quieres cargarlo? 
247: Include no encontrado. 

;Main-Window / Editor 
;#################### 

; Tab 
;---- 
12: <nuevo> 

; Info-Panel 
;----------- 
19: Book 
20: Var 
21: Cons 
22: Struc 
23: Proc 
;Bookmark 
24: Sin ordenar 
25: Orden ascendente 
26: Orden descendente 
27: Sin ordenar (agrupado) 

;main-menu 
;######### 
28: Archivo 
;-------- 
29: Nuevo°Ctrl+N 
30: Abrir...°Ctrl+O 
31: Guardar°Ctrl+S 
32: Guardar como...°F12 
33: Guardar todo 
37: Cerrar°Ctrl+W 
38: Cerrar todo 
39: Guardar como definición... 
46: Cargar lista de archivos... 
47: Guardar lista de archivos... 
107: Guardar como declaración... 
75: Preferencias...°Ctrl+P 
96: Archivos recientes 
97: Salir 

15: Edición 
;-------- 
16: Deshacer°Ctrl+Z 
17: Rehacer°Ctrl+Y 
18: Cortar°Ctrl+X 
99: Copiar°Ctrl+C 
100: Pegar°Ctrl+V 
101: Bloque de comentarios: Insertar°Ctrl+B 
102: Bloque de comentarios: Quitar°Alt+B 
103: Aumentar tabulación°Tab 
104: Reducir tabulación°Shift+Tab 
105: Tabulación automática°Ctrl+Tab 
131: Guardar bloque... 
132: Cargar bloque... 
106: Seleccionar todo°Ctrl+A 

111: Buscar 
;-------- 
112: Buscar/Reemplazar...°Ctrl+F 
113: Buscar siguiente°F3 
114: Ir a línea...°Ctrl+G 

127: Carpeta 
;-------- 
128: (Des)Empaquetar°Ctrl+D 
129: Empaquetar todo°Alt+D 
130: Desempaquetar todo°Alt+Shift+D 

135: Compilador 
;------------ 
136: Compilar/Ejecutar°F5 
138: Ejecutar°F6 
139: Depurar 
140: Marcar como archivo principal 
141: Opciones de compilación... 
142: Crear ejecutable... 

194: Herramientas 
;--------- 
195: Visor de estructuras°Alt+S 
205: Tabla Ascii°Alt+A 
206: Elegir color°Alt+P 
288: Visor de includes°Alt+I 
299: Sincronizar listas°Alt+L 
242: Configurar herramientas 

181: Ayuda 
;-------- 
182: Ayuda...°F1 
249: Acerca de... 

;  PopUp-Menu 
;-------------- 
137: Documento 
241: Herramienta 
210: Plugin 
183: Ayuda externa 

;  Color-PopUp 
;--------------- 
207: Copiar como RGB() 
208: Copiar como Hex (RGB) 
209: Copiar como Hex (BGR / Default) 

;  ToolBar-Info 
;---------------- 
169: Nuevo archivo 
170: Abrir 
171: Guardar 
172: Cerrar 
173: Cortar 
174: Copiar 
175: Pegar 
176: Deshacer 
177: Rehacer 
178: Buscar 
290: Visor de includes 
179: Opciones de compilación 
180: Compilar/Ejecutar 

;Dialogbox general 
;################# 
68: Aceptar 
69: Cancelar 

297: Sincronizar listas 
;############### 
298: Limpiar 
301: Cargar definición... 

48: Preferencias 
;############## 

8: General 
;---------- 
91: Lenguaje 
92: Ejecutar sólo una instancia (necesita reiniciar) 
291: Cargar último proyecto al inicio 
292: Cargar archivo sólo cuando no esté abierto 
93: Directorio de proyectos 
94: Directorio de PureBasic (necesita reiniciar) 
95: Mostrar procedimiento completo en marcador 
300: Siempre añadir/quitar abrir/cerrar archivos en/desde las listas sincronizadas 
109: Guardar declaración automático 
295: Ocultar archivos de declaraciones 
123: Redibujar siempre la ventana completa (a veces necesario para Win9x) 
124: Ocultación automática del panel de información (como barra de tareas) 
189: Retardo para abrir el panel oculto: 
184: Asociar .PB, .PBI, .PBFL con jaPBe 
255: Quitar todas las asociaciones a jaPBe 
;  Messages 
;------------ 
185: jaPBe está asociado con .PB, .PBI, .PBFL 
256: Todas las asiciaciones a jaPBe han sido quitadas 

67: Estilo/Editor 
;---------------- 
49: Defecto 
50: Variable 
51: Constante 
52: Dígito 
53: Estructura 
54: Procedimiento 
55: Comando 
56: Cadena 
57: Comentario 
58: Palabra ASM 
59: Marcador ;- 
60: Título ;/ 
61: Paréntesis () 
62: Paréntesis malo () 
63: Número de línea 
64: Guía de tabulación 
65: Línea actual 
66: Selección 
70: Negrita 
71: Cursiva 
72: Subrayado 
73: Color principal
74: Color de fondo
76: Asignar fuente a todo 
77: Asignar fondo a todo 
78: Resaltar línea actual 
79: Habilitar coloreado 
80: Mostrar guías de tabulación 
81: Mostrar espacios 
82: Mostrar fín de línea 
83: Mostrar numeración de líneas 
84: Mostrar carpetas 
166: Alternar iluminación de paréntesis 
250: Guardar estilo actual 
251: Selección de estilo 
252: Estilo actual 

186: Editor 2 
;------------ 
187: Desplazamiento automático al abrir carpeta 
280: Scroll automático del marcador 
85: Mayúsculas automáticas 
86: Tabulación automática 
87: Margen de desplazamiento 
88: Horizontal (Pixel) 
89: Vertical (Lineas) 
90: Tabulador 
196: Autocompletar 
293: Añadir automáticamente el final de etiqueta para If/Select/For/While/Repeat/Procedure*/ Structure 

253: Definiciones 
254: Aquí puedes (des)activar todos los archivos de definición.^Es necesario reiniciar para que tenga efecto. 
296: Información 

;  ToolTip 
;----------- 
188: Esto asignará el actual a casi todos los otros estilos.

284: Visor de includes 
;################## 
281: Tipo 
282: Nombre 
283: Directorio 
285: Archivo 
286: Binario 
287: Actualizar lista 
289: Mostrar todo 

115: Buscar / Reemplazar 
;################## 
116: Buscar: 
117: Reemplazar con: 
118: Sólo palabras completas 
119: Coincidencia mayúsculas 
98: Caracteres extendidos 
120: Siguiente 
121: Reemplazar 
122: Reemplazar todo 
;  Messages 
;------------ 
125: No se encuentra nada más! 
294: ¿Siguiente archivo de código? 

126: Ir a línea 
;############# 

157: Opciones de compilación 
;#################### 
143: Compilar archivo: 
;----------------- 
156: Este archivo 

268: General 
;----------- 
144: Usar icono: 
145: Habilitar ASM en código 
146: Compatibilidad con NT 4.0 
147: Habilitar soporte de piel XP 
149: Línea de comando: 
190: Habilitar soporte OnError 
;  CPU-Type 
;------------ 
150: Todas las CPU 
151: CPU dinámica 
152: CPU con MMX 
153: CPU con 3DNOW 
154: CPU con SSE 
155: CPU con SSE2 
148: Formato de ejecutable: 
;---------------------- 
158: Windows 
159: Shared DLL 
160: Console 

269: Avanzado 
;------------ 
270: Soporte para múltiples iconos 
257: Incluir Manifest 
258: Nombre de empresa 
259: Descripción de archivo 
260: Versión de archivo 
261: Nombre interno 
262: Copyright Legal 
263: Archivo original 
264: E-Mail 
265: Web 
266: Comentarios 
275: Marcas legales 
276: Nombre de producto 
277: Versión de producto 
278: Compilación Especial 
279: Compilación Privada 
267: Lenguaje 
;  InfoBox 
;----------- 
271: Información de archivo... 
272: No se puede ejecutar GoRC! 
273: Incluir recursos... 
274: No se puede ejecutar ResHacker! 

;  Compiler errors 
;------------------- 
162: Compilador no iniciado.^Comprueba las preferencias y reinicia jaPBe. 
163: Error fatal de compilación 
164: Error de Assembler 
165: Error de Linker 
167: Error de compilación 
;  InfoBox 
;----------- 
161: Compilar... 
168: Crear ejecutable... 
5:  Iniciar compilador... 
6:  No se puede iniciar el compilador. 
7:  Cargar funciones de PureBasic... 
9:  Cerrar compilador. 

191: Visor de estructuras 
;#################### 
192: Padre 
;  Messages 
;------------ 
193: Estructura no encontrada. 
197: El compilador no está listo, por favor inténtalo más tarde!

199: Tabla ASCII 
;############### 
200: Copiar como Cadena 
201: Copiar como 'Char' 
202: Copiar como Hex 
203: Copy Copiar como Decimal 
;  Messages 
;------------ 
204: Caracteres no permitidos en cadena! 

215: Añadir herramientas 
;############# 
213: ninguna 
214: Línea de comandos: 
216: Buscar 
217: Nombre en menú: 
218: Atajo de teclado: 
219: Ejecutar oculto 
220: Esperar a que termine la herramienta 
221: Recargar código cuando termine la herramienta 
222: en nuevo código 
223: en código actual 
224: Ocultar editor 
225: Opciones 
226: Añadir 
227: Insertar 
228: Reemplazar 
229: Entradas de menú: 
230: Borrar 
231: Arriba 
232: Abajo 
243: Argumentos:  ( %PATH , %FILE , %TEMPFILE ) 
244: Directorio de trabajo: 
;  Messages 
;------------ 
233: No hay herramientas seleccionadas 
234: Eliminar herramienta 
235:  del menú ? 
236: No has especificado una línea de comando! 
237: No has especificado un nombre de menú! 
238: Nombre de menú 
239:  usado! 
240: Atajo de teclado ya usado en menú 

248: Acerca de 
;#########
[:: PB Registered ::]

Win10 Intel core i5-3330 8GB RAM Nvidia GTX 1050Ti
Post Reply