IUP_FB_EDITOR (simple development environment)

User projects written in or related to FreeBASIC.
VANYA
Posts: 1255
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

IUP_FB_EDITOR (simple development environment)

Postby VANYA » Oct 17, 2017 14:22

Hi ALL!

I decided to try the IUP libraries, LibConv in practice. In principle, I did not care which program to write. I decided to write a simple editor with the possibility of encoding. However, the further I wrote, the more I added functions. As a result, we got the simplest development environment for freebasic :) . The icons for the toolbar were taken from the FbEdit editor. First the menu and everything else looked like windows Notepad, but after that I rewrote everything and the interface made it look like the FbEdit editor. The editor should work under Windows and Linux; must be compiled with fbc 32 \ 64 bit.

Image

In the archives, in the help folder, I indicated that the editor code can be used for any needs. Also there are some tips for the editor.

More about the editor on the site sf.net

Good luck!
Imortis
Posts: 1452
Joined: Jun 02, 2005 15:10
Location: USA
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Postby Imortis » Oct 17, 2017 14:39

This is a very promising looking editor. Thanks for sharing it.
D.J.Peters
Posts: 7191
Joined: May 28, 2005 3:28

Re: IUP_FB_EDITOR (simple development environment)

Postby D.J.Peters » Oct 17, 2017 15:18

Good job I like it :-)

Looks like a good replacement for FBIDE (not aktive anymore) and it works on Linux too.

Joshy
D.J.Peters
Posts: 7191
Joined: May 28, 2005 3:28

Re: IUP_FB_EDITOR (simple development environment)

Postby D.J.Peters » Oct 17, 2017 17:07

I study your source codes and let me once say "You got it it man !"

It's so clean and beauty I saw and read ALL your lines of code from Windows 9 library in the past it was far far away from clean coding :-)

but now you made a big step up.

Really good job.

Joshy
c-sanchez
Posts: 106
Joined: Dec 06, 2012 0:38

Re: IUP_FB_EDITOR (simple development environment)

Postby c-sanchez » Oct 17, 2017 17:21

Cool!
I have a doubt, this like poseidonFB is iup+scintilla or is just iup?
by other side is really nice view the editor writed in freebasic :D

as with poseidonFB, I will follow the development and I will comment what I see :P

1. Save shortcut (Ctrl+S) is not working properly with saved files.

2. The Recent files menu is always showing an list, even if a empty one. A bit weird for me heh

3. Please add an "Clear recent files" option for Recent files menu.

4. The settings are only saved in Settings Window (?)
Change any option in View menu.
by ex. if in Settings window we have Show line numbers enabled, disable from View menu. Open settings window and press Cancel.

5. Various things need fixed/simplified in translation files.
menuuppercase=UPPERCASE and optioncaseup=Up, are not the same? indeed I translated optioncaseup as menuuppercase because "Up" for me haven't sense where it goes :P

In my opinion, some unnecessary duplicate strings
Like all texts between View menu and General > Editor from Settings window

and well, are many several things that I would like to see from poseidonFB here heh :P
anyway this editor looks promising.
VANYA
Posts: 1255
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Postby VANYA » Oct 18, 2017 5:09

Thank you all for your good feedback!

D.J.Peters wrote:It's so clean and beauty I saw and read ALL your lines of code from Windows 9 library in the past it was far far away from clean coding


Joshy, any code you will understand if you wish :)

c-sanchez wrote:1. Save shortcut (Ctrl+S) is not working properly with saved files.


An unfortunate mistake, don't even know how I had not noticed ... In any case it's fixed now, files updated.

c-sanchez wrote:2. The Recent files menu is always showing an list, even if a empty one. A bit weird for me heh

3. Please add an "Clear recent files" option for Recent files menu.


This is an implementation of the IUP libraries from the author, I just took advantage of the built-in functions (IupConfigRecentInit, IupConfigRecentUpdate). This function does not provide clearance. Create crutches or completely rewrite will not, because I do not see the big troubles from an empty list (when you use the editor it fills up very quickly)

c-sanchez wrote:4. The settings are only saved in Settings Window (?)
Change any option in View menu.
by ex. if in Settings window we have Show line numbers enabled, disable from View menu. Open settings window and press Cancel.


From the menu "View" settings are saved only for global widget (StatusBar, ToolBar), all other menu items are temporarily change until exist a tab or until you go to settings.

c-sanchez wrote:5. Various things need fixed/simplified in translation files.
menuuppercase=UPPERCASE and optioncaseup=Up, are not the same? indeed I translated optioncaseup as menuuppercase because "Up" for me haven't sense where it goes :P

In my opinion, some unnecessary duplicate strings
Like all texts between View menu and General > Editor from Settings window


In Russian localization is nothing unnecessary, maybe I'm not quite correctly translated into English. I find it easier to translate from English to Russian, Russian to English than:)
Makoto WATANABE
Posts: 91
Joined: Apr 10, 2010 11:41
Location: Japan
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Postby Makoto WATANABE » Oct 26, 2017 13:59

Dear VANYA

Thank you for your great support at the Window 9.
Now I am very interested in your IUP_FB_EDITOR.
I made a Japanese Lang file.
http://makoto-watanabe.main.jp/zJP.cfg

In my environment the options screen is too small to display all the setting items.
Image
Please tell me how to enlarge the Options screen or reduce the size of the display font.
VANYA
Posts: 1255
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Postby VANYA » Oct 26, 2017 15:42

Hi Makoto!

In the next few days I will fix this, please wait. Thanks for the Japanese localization file!
VANYA
Posts: 1255
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Postby VANYA » Oct 27, 2017 4:24

1) Added Japanese localization file
2) Added relative paths. In windows for the compiler \ debugger \ help files \ tools, in linux for help files \ tools. $A - the path where the editor is installed.
3) Minor corrections

Archives updated
Makoto WATANABE
Posts: 91
Joined: Apr 10, 2010 11:41
Location: Japan
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Postby Makoto WATANABE » Nov 01, 2017 5:06

Dear VANYA

>Archives updated

Thanks for your quick action.
In my environment the options screen displays all the setting items.

I could easily create my favorite color setting based on Black by selecting "Black" of "theme" on the "color" tab and adding my original.
I am very grateful to you.
VANYA
Posts: 1255
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Postby VANYA » Nov 02, 2017 7:21

Updated:

1) Added font styles in the settings for some groups in the tab "COLOR"
2) Added the option to open include files (#include "xxxx") with a combination of (CTRL+ LEFT CLICK MOUSE) (the settings must specify the path to the directory "\inc")
3) Fixed minor bugs
c-sanchez
Posts: 106
Joined: Dec 06, 2012 0:38

Re: IUP_FB_EDITOR (simple development environment)

Postby c-sanchez » Nov 05, 2017 4:29

1. When all documents are closed the window is not properly redrawed. ie, this keep a "white background".
I will explain me better with an image
This is how it looks now
https://s6.postimg.org/9nuift7wh/iupfbe001.gif
I think it must be like that
https://s6.postimg.org/h3ts1lnw1/poseidond.gif

2. Why that Dots between document editor window and output window? :P

3. Can be nice got a option to setup keywords and another to setup shortcut keys.

4. Some errors in language files:
menuviewtoolbar=View Tollbar
menuviewtoolbar=View Toolbar

optioncmarker=marker
optioncmarker=Marker (all here first it has a capital letter)

submenuconvertsimvols=Convert Simvols to
submenuconvertsimvols=Convert Simbols to

5. I think the language file have too many repeated words, like:

Code: Select all

buttongotocancel=Cancel
findbtncancel=Cancel
optionbtncancel=Cancel

buttongotook=OK
optionbtnok=OK

findbtnfind=Find
findframefind=Find
findlblfind=Find:
toolfind=Find (Ctrl+F)


6. Here my Spanish language :)

Code: Select all


[zES]
aboutmessage=Autor del editor: Stanislav Budinov
buttongotocancel=Cancelar
buttongotook=Aceptar
convertdocenconfly=Convertir codificación del documento al vuelo
dlgerrorendmess=¡Conversión fallida!
dlgerrorendtitle=¡Error!
dlgerrormess=Algunos símbolos del archivo actual no se pueden convertir al juego de caracteres actual.Si continúa la conversión, los caracteres no compatibles se perderán.¿Desea continuar la conversión?
dlgerrornamecompile=¡El archivo no se ha guardado o contiene extensión de archivo incorrecta!
dlgerrornotexist=¡El archivo no está compilado!
dlgerrornotterminal=¡Especifique el nombre de la Terminal en los ajustes!
dlgerrorpathcompile=¡La ruta para el compilador no está especificada!
dlgerrorpathdebug=¡La ruta del depurador no está especificada!
dlgerrortitle=¡Problema con la codificación!
dlgerrorwritefile=Error al escribir el archivo
dlgissavemess=El archivo no fue guardado. ¿Desea guardar?
dlgopenfile=Abrir archivos
dlgsaveas=Guardar archivo como
dlgwarningtitle=¡Advertencia!
errorallocate=¡Error al asignar memoria!
errorgoto=Número de línea no válido.
errorrewite=¡Error al volver a escribir!
findbtncancel=Cancelar
findbtncheckaround=Envolver alrededor
findbtncheckcase=Caso Sensible
findbtncheckposix=Posix
findbtncheckregular=Expresión regular
findbtncheckwholeword=Palabra entera
findbtncheckwordstart=Inicio de palabra
findbtnfind=Buscar
findbtnfindall=Buscar todo
findbtnreplace=Reemplazar
findbtnreplaceall=Reemplazar todo
finddlgr=Reemplazar
findframedirect=Direction
findframefind=Buscar
findlblfind=Buscar:
findlblreplace=Reemplazar:
findmessagefind=Nada encontrado.
findradiodown=Abajo
findradioup=Arriba
findreplaceall=Reemplazos completados: 
iconverrormess=Problema con la conversión.La función iconv_open devolvió que el identificador no es válido.
menuabout=Acerca de
menuautoindent=Sangría automática
menuclearbook=Limpiar todo los marcadores
menuclose=Cerrar
menucloseall=Cerrar todo
menucompile=Compilar
menucompileandrun=&Compilar y Ejecutar
menucopy=Copiar
menucut=Cortar
menudebug=Ejecutar con depurador
menudelete=Eliminar
menuexit=Salir
menufind=Buscar
menufindnext=Buscar siguiente
menufindprev=Buscar anterior
menugoto=Ir a
menuhelpFB=Ayuda de FreeBasic
menulowercase=minúsculas
menunew=Nuevo
menunextbook=Siguiente marcador
menuopen=Abrir
menupaste=Pegar
menupopupbbclear=Limpiar
menupopupbbcopyall=Copiar todo
menupopupbbcopysel=Copiar elementos seleccionados
menupopupbberrwar=Mostrar errores y advertencias
menupopupbbonlyerr=Mostrar sólo errores
menupopupbbonlywar=Mostrar sólo advertencias
menuprevbook=Marcador anterior
menuquickrun=Ejecución rápida
menurecent=Archivos recientes
menuredo=Rehacer
menureplace=Reemplazar
menurun=Ejecutar
menusave=Guardar
menusaveall=Guardar todo
menusaveas=Guardar como
menuselectall=Seleccionar todo
menushowwhitespaces=Mostrar espacios en blanco
menuspacetotab=Espacios a Tabulaciones
menuspacetotabbegin=Espacios a Tabulaciones (al inicio)
menutabtospace=Tabuladores a Espacios
menutabtospacebegin=Tabuladores a Espacios (al inicio)
menutogglebook=Alternar marcador
menutrimspaceinle=Recortar espacios en interlineado
menutrimspaceintr=Recortar espacios en final
menutrimspaceintrle=Recortar espacios en interlineado y final
menuundo=Deshacer
menuuppercase=MAYÚSCULAS
menuviewlinenumbers=Ver números de línea
menuviewstatusbar=Ver barra de estado
menuviewtoolbar=Ver barra de herramientas
menuwordwrap=Ajuste de línea
menuzoomdefault=Enfoque por defecto
menuzoomin=Acercar
menuzoomout=Alejar
numberencinmenu=Número de codificaciones en el menú...
optionalpha=Alpha Caret: 
optionautocomplect=Autocompletar
optionbackfront=Color de fondo\primer plano
optionbtnapply=Aplicar
optionbtncancel=Cancelar
optionbtndelete=Eliminar
optionbtninsert=Insertar
optionbtnok=Aceptar
optionbuildcommand=Comando:
optionbuilditem=Menú del elemento:
optioncasecamel=Mixto
optioncasedown=minúsculas
optioncasemixed=Sin cambio
optioncaseup=MAYÚSCULAS
optionccaret=Caret\Cursor
optionccomments=Comentarios
optioncedit=Editor
optioncidentifiers=Identificadores
optionckeywords0=Palabras clave 0
optionckeywords1=Palabras clave 1
optionckeywords2=Palabras clave 2
optionckeywords3=Palabras clave 3
optioncmarker=Marcador
optioncnumbers=Números
optioncodecase=Palabras clave
optioncolor=Color
optioncoperator=Operadores
optioncpanelcollapse=Contraer panel
optioncpanelnumbers=Panel números de línea
optioncseltext=Texto seleccionado
optioncstrings=Cadenas
optioncwinout=Salida de ventana
optionedit=Editor
optionfont=Fuentes
optionfontedit=Editor
optionfontstatus=Barra de estado
optionfontwinout=Ventana de salida
optiongen=General
optionindents=Sangrías
optionlang=Idioma
optionlineend=Fin de líneas
optionlinelin=Linux (LF)
optionlinewin=Windows (CRLF)
optionmesstextbuildempty=¡Uno o ambos campos de entrada vacíos!
optionmesstextlangreboot=¡Los cambios sólo tendrán efecto después de reiniciar el editor!
optionmesstitletool=Personalización de Herramienta
optionmesstitletoolbuild=Personalización de Compilación
optionmesstitletoolhelp=Personalización de Archivos de ayuda
optionmesstitlewarning=¡Advertencia!
optionpath=Ruta
optionpathbrowser=Navegador
optionpathcompilier=Ruta al compilador
optionpathdebug=Ruta al depurador
optionpathhelpfb=Ruta a la Ayuda de Freebasic
optionpathinclude=La ruta al directorio INCLUDE
optionpathterminal=Terminal
optionsbuild=Personalización de Compilación...
optionseditor=Personalización de Editor...
optionshelps=Personalización de Menú de Ayuda...
optionspace=Espacios
optionstools=Personalización de Menú Herramientas...
optiontab=Tabulación
optiontheme=Tema
optionthemeadd=Añadir
optionvisiblefolding=Plegable
optionvisibleindents=Mostrar sangrías de marcador
optionvisiblenumbers=Mostrar números de línea
optionvisiblespace=Mostrar espacios en blanco
optionwrapline=Líneas de envoltura
reopenfileenc=Reabrir el archivo codificado
setdefaultenc=Establecer codificación por defecto del sistema...
setencforsave=Establecer codificación para guardar archivo
statuschangesno=Sin cambio
statuschangesyes=Cambiado
submenubook=Marcadores
submenubuild=Construir
submenuconvertsimvols=Convertir símbolos a
submenuedit=Editar
submenufile=Archivo
submenuhelp=Ayuda
submenuoperationswithspace=Operaciones con Espacios
submenuoptions=Opciones
submenutools=Herramientas
submenuview=Ver
submenuzoom=Enfoque
titlegotodlg=Ir a línea
titlelinenumber=Líneas desde\hasta
toolcomment=Comentar (F9)
toolcompile=Compilar (Shift+Ctrl+F5)
toolcompileandrun=Compilar y Ejecutar (Ctrl+F5)
toolcopy=Copiar (Ctrl+C)
toolcut=Cortar (Ctrl+X)
tooldelete=Eliminar (Del)
tooldeletebook=Eliminar todos los marcadores (Shift+Ctrl+F8)
toolencoding=Codificación
toolfind=Buscar (Ctrl+F)
toolindent=Añadir Sangría
toolnew=Nuevo (Ctrl+N)
toolnextbook=Siguiente marcador (F8)
toolopen=Abrir (Ctrl+O)
tooloutdent=Quitar Sangría
toolpaste=Pegar (Ctrl+V)
toolprevbook=Marcador anterior (Ctrl+F8)
toolquickrun=Ejecución rápida (F5)
toolredo=Rehacer (Ctrl+Y)
toolreplace=Reemplazar (Ctrl+R)
toolrun=Ejecutar (Shift+F5)
toolsave=Guardar (Ctrl+S)
toolsaveall=Guardar todo (Shift+Ctrl+S)
tooltogglebook=Alternar marcador (Shift+F8)
tooluncomment=Descomentar (Ctrl+F9)
toolundo=Deshacer (Ctrl+Z)
VANYA
Posts: 1255
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Postby VANYA » Nov 09, 2017 8:31

Hi c-sanchez !

1. When all documents are closed the window is not properly redrawed. ie, this keep a "white background".


I know about this problem. Unfortunately I could not solve it. Tried iupUpdate, IupRedraw, but no reaction. If this project was only for windows, I would have found the solution using WinApi, but with the Linux API I'm almost not familiar, so I use IUP. When you use other people's libraries, you have to put up with flaws \ bugs \ etc.

2. Why that Dots between document editor window and output window? :P


such an appearance at IupSplit

3. Can be nice got a option to setup keywords and another to setup shortcut keys.


Until I not plan it.

5. I think the language file have too many repeated words, like:


I do not consider this a problem

4. Some errors in language files:
6. Here my Spanish language :)


Thank you for testing and finding bugs. How will, I fix english language localization and I add Spanish language localization.
Kuan Hsu
Posts: 287
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: IUP_FB_EDITOR (simple development environment)

Postby Kuan Hsu » Nov 09, 2017 13:59

VANYA wrote:Hi c-sanchez !

1. When all documents are closed the window is not properly redrawed. ie, this keep a "white background".


I know about this problem. Unfortunately I could not solve it. Tried iupUpdate, IupRedraw, but no reaction. If this project was only for windows, I would have found the solution using WinApi, but with the Linux API I'm almost not familiar, so I use IUP. When you use other people's libraries, you have to put up with flaws \ bugs \ etc.

2. Why that Dots between document editor window and output window? :P


such an appearance at IupSplit

1. In tabs.bi line 60: change

Code: Select all

IupRefreshChildren(TGlobalVariables->tabs)   

to

Code: Select all

IupRefresh(TGlobalVariables->tabs)


2. Default is dot...., use IupSetattribute( splitHandle, "SHOWGRIP", "LINES" ) to change.
VANYA
Posts: 1255
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: IUP_FB_EDITOR (simple development environment)

Postby VANYA » Nov 09, 2017 14:22

1. In tabs.bi line 60: change


Default is dot...., use IupSetattribute( splitHandle, "SHOWGRIP", "LINES" ) to change.


Many thanks Kuan Hsu , you helped a lot. The problem with updating windows will now be solved. About iupSplit , I still decided to leave dots :) , but your advice is all the more valuable

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 4 guests