|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 2066 (0x812)
Types: TextFile
Notes: R1k Text-file segment
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦2f61cd2ee⟧
└─⟦this⟧
/*=================================================================
; IRP MULHOUSE AVRIL 92
;-------------------------------------------------------------------
; PROJECT : Z80 SIMULATOR
; STUDENTS : MOREAUX & VERGER
;
; FILE : FileOpen.c
==================================================================
; DESCRIPTION :
; Fichier source la gestion de la fenetre entree du fichier
; WINDOW SYSTEM
;----------------------------------------------------------------*/
/*----------- Inclusion -------------------------*/
#include "GUI_Interface.h"
/*----------- Globales --------------------------*/
int CntOpenOkActivate = 0;
char avFileName [45];
Widget wgFileOpen;
int Iterator = 0;
/*-------------------------------------------------
Initialisation
( Appel depuis C )
--------------------------------------------------*/
void OpenFileInit (Widget TopLevel)
{
wgFileOpen = XtNameToWidget(TopLevel,"FileOpen");
FmAttachAv ( "FileName",avFileName);
}
/*-------------------------------------------------
Gestion PushButon par CallBacks + Compteur
--------------------------------------------------*/
void OpenOkActivate() /* Appel depuis WINDOW */
{
CntOpenOkActivate ++;
}
int GetCntOpenOkActivate () /* Appel depuis Ada */
{
return CntOpenOkActivate;
}
/*-------------------------------------------------
Lecture de la variable active
( Appels depuis C )
--------------------------------------------------*/
void FileNameIterInit()
{
FmGetActiveValue ( 0, "FileName" );
Iterator = 0;
}
void FileNameIterNext ()
{
Iterator++;
}
Boolean FileNameIterDone ()
{
return (Iterator == strlen (avFileName));
}
char FileNameIterValue()
{
return avFileName[Iterator];
}
/*-------------------------------------------------
Ferme la fenetre
( Appel depuis Ada )
--------------------------------------------------*/
void HideWindowOpen()
{
FmHideWidget(wgFileOpen);
}
/*================= FIN DU FICHIER ======================================*