[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #2929: Generic Events


http://gambaswiki.org/bugtracker/edit?object=BUG.2929&from=L21haW4-

Fabien BODARD reported a new bug.

Summary
-------

Generic Events

Type             : Request
Priority         : Medium
Gambas version   : Unknown
Product          : Unknown


Description
-----------

I there a way to have something generic on class for Data Structure that allow to know whereas one of the content value is changed or at least try to be changed.

for example :

CLASS MyData
  Property Id as integer Use $id
  Property Name as Integer Use $sName
END CLASS


Private $hData as new MyData as "Data"

Public sub Main()
  $hData.Id = 3  
End

Public sub Data_Change(Name as string)
  Print "Property : " & Name & " modified"
End


This is the Idea... Or Maybe a generic thing in the Child Class such as a _PropertyRead(Name) Event called by the interpreter


System information
------------------

[System]
Gambas=3.19.90 7e9830928 (master)
OperatingSystem=Linux
Distribution=Manjaro Linux 
Kernel=6.6.41-1-MANJARO
Architecture=x86_64
Cores=4
Memory=7827M
Language=fr_FR.UTF-8
Platform=wayland
Desktop=KDE
DesktopResolution=96
DesktopScale=7
WidgetTheme=breeze
Font=Ubuntu,10
[Programs]
clang=clang version 18.1.8
dpkg=Programme « dpkg » de gestion de paquets Debian version 1.22.6 (amd64).
gcc=gcc (GCC) 14.1.1 20240522
git=git version 2.45.2
msgmerge=msgmerge (GNU gettext-tools) 0.22.5
[Libraries]
Cairo=libcairo.so.2.11800.0
Curl=libcurl.so.4.8.0
DBus=libdbus-1.so.3.32.4
GDK2=libgdk-x11-2.0.so.0.2400.33
GDK3=libgdk-3.so.0.2411.32
GStreamer=libgstreamer-1.0.so.0.2405.0
GTK+2=libgtk-x11-2.0.so.0.2400.33
GTK+3=libgtk-3.so.0.2411.32
OpenGL=libGL.so.1.7.0
Poppler=libpoppler.so.138.0.0
QT5=libQt5Core.so.5.15.14
QT6=libQt6Core.so.6.7.2
RSvg=librsvg-2.so.2.50.0
SDL=libSDL2-2.0.so.0.3000.5
SQLite3=libsqlite3.so.0.8.6
[Environment]
APPMENU_DISPLAY_BOTH=1
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
DEBUGINFOD_URLS=https://debuginfod.archlinux.org 
DESKTOP_SESSION=plasmawayland
DISPLAY=:1
GB_GUI=gb.qt5
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:<home>/.gtkrc-2.0:<home>/.config/gtkrc-2.0
GTK_RC_FILES=/etc/gtk/gtkrc:<home>/.gtkrc:<home>/.config/gtkrc
HOME=<home>
ICEAUTHORITY=/run/user/1001/iceauth_HlNglS
INVOCATION_ID=5fd366490a144a42bbdf357594c3c469
JOURNAL_STREAM=8:11375
KDE_APPLICATIONS_AS_SCOPE=1
KDE_FULL_SESSION=true
KDE_SESSION_UID=1001
KDE_SESSION_VERSION=6
LANG=fr_FR.UTF-8
LANGUAGE=fr_FR.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_IDENTIFICATION=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_MONETARY=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
LC_NUMERIC=fr_FR.UTF-8
LC_PAPER=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
LOGNAME=<user>
MAIL=/var/spool/mail/<user>
MANAGERPID=637
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1001.slice/user@1001.service/session.slice/plasma-plasmashell.service/memory.pressure
MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=
MOTD_SHOWN=pam
PAM_KWALLET5_LOGIN=/run/user/1001/kwallet5.socket
PATH=<home>/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
PWD=<home>
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
QT_LOGGING_RULES=*.debug=false
QT_WAYLAND_RECONNECT=1
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/780,unix/<hostname>:/tmp/.ICE-unix/780
SHELL=/usr/bin/bash
SYSTEMD_EXEC_PID=816
TZ=:/etc/localtime
USER=<user>
WAYLAND_DISPLAY=wayland-0
XAUTHORITY=/run/user/1001/xauth_QiwHhU
XCURSOR_SIZE=24
XCURSOR_THEME=breeze_cursors
XDG_ACTIVATION_TOKEN=kwin-13
XDG_CONFIG_DIRS=<home>/.config/kdedefaults:/etc/xdg:/usr/share/manjaro-kde-settings/xdg
XDG_CURRENT_DESKTOP=KDE
XDG_DATA_DIRS=<home>/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
XDG_MENU_PREFIX=plasma-
XDG_RUNTIME_DIR=/run/user/1001
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=KDE
XDG_SESSION_ID=2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SESSION_TYPE=wayland
XDG_VTNR=1
XKB_DEFAULT_LAYOUT=fr
force_s3tc_enable=true


----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----

Follow-Ups:
[Gambas-bugtracker] Bug #2929: Generic Events<bugtracker@xxxxxxxxxxxxxx>
[Gambas-bugtracker] Bug #2929: Generic Events<bugtracker@xxxxxxxxxxxxxx>
[Gambas-bugtracker] Bug #2929: Generic Events<bugtracker@xxxxxxxxxxxxxx>