version 1.64, 2017/08/24 06:59:03
|
version 1.69, 2018/12/24 15:55:01
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.1.28 |
RPL/2 (R) version 4.1.30 |
Copyright (C) 1989-2017 Dr. BERTRAND Joël |
Copyright (C) 1989-2018 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
|
|
Line 84 encart(struct_processus *s_etat_processu
|
Line 84 encart(struct_processus *s_etat_processu
|
int y_max; |
int y_max; |
int y_min; |
int y_min; |
|
|
Pixel couleur_arriere_plan; |
|
Pixel couleur_avant_plan; |
|
|
|
Pixmap pixmap_rpl; |
Pixmap pixmap_rpl; |
Pixmap pixmap_rpl_masque; |
Pixmap pixmap_rpl_masque; |
|
|
Position hauteur_popup; |
Position hauteur_popup; |
Position largeur_popup; |
Position largeur_popup; |
|
|
|
Screen *screen; |
|
|
String *argv; |
String *argv; |
|
|
struct timespec attente; |
struct timespec attente; |
Line 147 encart(struct_processus *s_etat_processu
|
Line 146 encart(struct_processus *s_etat_processu
|
xmFormWidgetClass, objet_principal, |
xmFormWidgetClass, objet_principal, |
NULL); |
NULL); |
|
|
|
XtVaGetValues(objet_principal, |
|
XmNmwmDecorations, &decor, |
|
XmNmwmFunctions, &fonctions, |
|
NULL); |
|
|
|
decor &= ~(MWM_DECOR_ALL + MWM_DECOR_MAXIMIZE + MWM_DECOR_RESIZEH |
|
+ MWM_DECOR_TITLE + MWM_DECOR_MENU + MWM_DECOR_BORDER); |
|
fonctions &= ~(MWM_FUNC_ALL + MWM_FUNC_RESIZE + MWM_FUNC_CLOSE |
|
+ MWM_FUNC_MINIMIZE + MWM_FUNC_MAXIMIZE); |
|
|
|
XtVaSetValues(objet_principal, |
|
XmNmwmDecorations, decor, |
|
XmNmwmFunctions, fonctions, |
|
NULL); |
|
|
cadre = XtVaCreateManagedWidget("rplExternalFrame", |
cadre = XtVaCreateManagedWidget("rplExternalFrame", |
xmFrameWidgetClass, form, |
xmFrameWidgetClass, form, |
XmNtopAttachment, XmATTACH_FORM, |
XmNtopAttachment, XmATTACH_FORM, |
Line 161 encart(struct_processus *s_etat_processu
|
Line 175 encart(struct_processus *s_etat_processu
|
XmNmarginHeight, 5, |
XmNmarginHeight, 5, |
NULL); |
NULL); |
|
|
XtVaGetValues(form, |
|
XmNforeground, &couleur_avant_plan, |
|
XmNbackground, &couleur_arriere_plan, |
|
NULL); |
|
|
|
if ((erreur = XpmCreatePixmapFromData(XtDisplay(form), |
if ((erreur = XpmCreatePixmapFromData(XtDisplay(form), |
DefaultRootWindow(XtDisplay(form)), rpl_xpm, |
DefaultRootWindow(XtDisplay(form)), rpl_xpm, |
&pixmap_rpl, &pixmap_rpl_masque, NULL)) != 0) |
&pixmap_rpl, &pixmap_rpl_masque, NULL)) != XpmSuccess) |
{ |
{ |
(*s_etat_processus).erreur_systeme = d_es_allocation_memoire; |
(*s_etat_processus).erreur_systeme = d_es_allocation_memoire; |
return; |
return; |
Line 180 encart(struct_processus *s_etat_processu
|
Line 189 encart(struct_processus *s_etat_processu
|
XmNlabelPixmap, pixmap_rpl, |
XmNlabelPixmap, pixmap_rpl, |
NULL); |
NULL); |
|
|
XtVaGetValues(objet_principal, |
|
XmNmwmDecorations, &decor, |
|
XmNmwmFunctions, &fonctions, |
|
NULL); |
|
|
|
decor &= ~(MWM_DECOR_ALL + MWM_DECOR_MAXIMIZE + MWM_DECOR_RESIZEH |
|
+ MWM_DECOR_TITLE + MWM_DECOR_MENU + MWM_DECOR_BORDER); |
|
fonctions &= ~(MWM_FUNC_ALL + MWM_FUNC_RESIZE + MWM_FUNC_CLOSE |
|
+ MWM_FUNC_MINIMIZE + MWM_FUNC_MAXIMIZE); |
|
|
|
XtVaSetValues(objet_principal, |
|
XmNmwmDecorations, decor, |
|
XmNmwmFunctions, fonctions, |
|
NULL); |
|
|
|
if (XineramaIsActive(display) == True) |
if (XineramaIsActive(display) == True) |
{ |
{ |
// Récupération de la localisation des différents écrans |
// Récupération de la localisation des différents écrans |
Line 348 encart(struct_processus *s_etat_processu
|
Line 342 encart(struct_processus *s_etat_processu
|
|
|
XtUnrealizeWidget(objet_principal); |
XtUnrealizeWidget(objet_principal); |
|
|
XtDestroyWidget(pixmap); |
|
XtDestroyWidget(cadre); |
|
XtDestroyWidget(form); |
|
XtDestroyWidget(objet_principal); |
|
|
|
while(XtAppPending(app) == 0) |
while(XtAppPending(app) == 0) |
{ |
{ |
nanosleep(&attente, NULL); |
nanosleep(&attente, NULL); |
Line 365 encart(struct_processus *s_etat_processu
|
Line 354 encart(struct_processus *s_etat_processu
|
nanosleep(&attente, NULL); |
nanosleep(&attente, NULL); |
} |
} |
|
|
XmDestroyPixmap(XtScreen(form), pixmap_rpl); |
screen = XtScreen(form); |
XmDestroyPixmap(XtScreen(form), pixmap_rpl_masque); |
|
|
XtDestroyWidget(pixmap); |
|
XtDestroyWidget(cadre); |
|
XtDestroyWidget(form); |
|
XtDestroyWidget(objet_principal); |
|
|
|
XmDestroyPixmap(screen, pixmap_rpl); |
|
XmDestroyPixmap(screen, pixmap_rpl_masque); |
|
|
XCloseDisplay(display); |
|
XtAppSetWarningHandler(app, old_message_handler); |
XtAppSetWarningHandler(app, old_message_handler); |
XtDestroyApplicationContext(app); |
XtDestroyApplicationContext(app); |
|
XCloseDisplay(display); |
} |
} |
# endif |
# endif |
|
|