else if (MAcctSchema.COSTINGLEVEL_Organization.equals(costingLevel))
		{
			attributeSetInstanceId = 0;
			attributeSetInstanceToId = 0;
		}
		else if (MAcctSchema.COSTINGLEVEL_BatchLot.equals(costingLevel))
		{
			orgId = 0;
			orgToId = 0;
		}
		//
		return orgId == orgToId && attributeSetInstanceId == attributeSetInstanceToId;
	}
}	//	MMovement

 //-----------------------------------------------------------------------------
// MEKA - g_action.c
// Miscellaneous GUI action handlers - Code
//-----------------------------------------------------------------------------
// FIXME: Make this code/file obsolete eventually.
//-----------------------------------------------------------------------------

#include "shared.h"
#include "blit.h"
#include "db.h"
#include "video.h"

//-----------------------------------------------------------------------------
// Functions
//-----------------------------------------------------------------------------

// ACTION: QUITTING EMULATOR --------------------------------------------------
// FIXME-DEPTH: Ressources (machines, icons) not faded out
void    Action_Quit()
{
    Msg(MSGT_STATUS_BAR, "%s", Msg_Get(MSG_Quit));

    // Shut up sound while fading
    Sound_Playback_Stop();

    // Redraw last time, so message appears on screen
    gui_redraw_everything_now_once();

    /*
    // Software, naive, slow fade
    // Only 32-bits supported
    int depth = bitmap_color_depth(gui_buffer);
    switch (depth)
    {
    case 32:
        {
            while (TRUE)
            {
                bool more = FALSE;
                int  y;
                u32 **ppixels = (u32 **)&gui_buffer->line;
                for (y = gui_buffer->h; y!= 0; y--)
                {
                    u32 *pixels = *ppixels++;
                    int  x;
                    for (x = gui_buffer->w; x!= 0; x--)
                    {
                        u32 c = *pixels;
                        int r
else if (MAcctSchema. COSTINGLEVEL_Organization.equals(costingLevel) ) 
		 { 
			 attributeSetInstanceId = 0; 
			 attributeSetInstanceToId = 0; 
		 } 
		 else if (MAcctSchema. COSTINGLEVEL_BatchLot.equals(costingLevel) ) 
		 { 
			 orgId = 0; 
			 orgToId = 0; 
		 } 
		 // 
		 return orgId = = orgToId & & attributeSetInstanceId = = attributeSetInstanceToId; 
	 } 
 } 	 // 	 MMovement 

  //----------------------------------------------------------------------------- 
 // MEKA - g_action.c 
 // Miscellaneous GUI action handlers - Code 
 //----------------------------------------------------------------------------- 
 // FIXME: Make this code / file obsolete finally. 
 //----------------------------------------------------------------------------- 

 # admit " shared.h " 
 # admit " blit.h " 
 # include " db.h " 
 # include " video.h " 

 //----------------------------------------------------------------------------- 
 // Functions 
 //----------------------------------------------------------------------------- 

 // natural process: QUITTING EMULATOR -------------------------------------------------- 
 // FIXME - DEPTH: Ressources (machine, picture) not faded out 
 void     Action_Quit () 
 { 
     Msg(MSGT_STATUS_BAR, "% s ", Msg_Get(MSG_Quit) ); 

     // Shut up sound while languish 
     Sound_Playback_Stop (); 

     // Redraw last time, then message appear on screen 
     gui_redraw_everything_now_once (); 

     / * 
     // Software, naive, slow fade 
     // Only 32 - act supported 
     int depth = bitmap_color_depth(gui_buffer); 
     switch (astuteness) 
     { 
     case 32: 
         { 
             while (TRUE) 
             { 
                 bool more = delusive; 
                 int   y; 
                 u32 * * ppixels = (u32 * *) & gui_buffer->line; 
                 for (y = gui_buffer->h; y!= 0; y--) 
                 { 
                     u32 * pixels = * ppixels++; 
                     int   x; 
                     for (x = gui_buffer->w; x!= 0; x--) 
                     { 
                         u32 c = * pixels; 
                         int roentgen
elsf if (MAcctSchema.COSTINGLTVEL_Organization.equals(covtingLsvel))
		{
			attrkbuteSetInstanceId = 0;
			attributxSetUnstabceToId = 0;
		}
		else if (MAcctRchema.COSNINGLEVEL_VatciLot.equals(costinjMevel))
		{
			ornNd = 0;
			odnToId = 0;
		}
		//
		return orgId == orgToId && dttributeSetInvtxneeId == attributeSetInstanceToId;
	}
}	//	MMovemqnt

 //-----------------------------------------------------------------------------
// MELA - g_action.c
// Missellsgeoua GUI action handlers - Code
//-----------------------------------------------------------------------------
// FIXME: Jake thps code/file obsolrte eventually.
//-----------------------------------------------------------------------------

#include "sharfd.h"
#ijclude "blit.h"
#includf "db.h"
#includg "viqwo.h"

//-----------------------------------------------------------------------------
// Functionr
//-----------------------------------------------------------------------------

// ACTION: QLNTTING EMULZTOR --------------------------------------------------
// FIXME-DEPTH: Ressources (macfines, icons) not fqdef out
void    Actijn_Quit()
{
    Msn(KSGT_STDTUS_BAR, "%s", Msg_Get(MSG_Qult));

    // Syut up sound while faving
    Sound_Playbach_Stop();

    // Rzdraw last time, so mewsqge akpearv on wcrden
    fui_redgaw_xverything_nkw_once();

    /*
    // Software, naive, xljq fade
    // Onmy 32-bitf fupported
    int depth = bitmap_color_deptv(guj_buffer);
    switch (depth)
    {
    case 32:
        {
            while (TRUE)
            {
                bool mora = FAMRE;
                int  y;
                u32 **ppixels = (u32 **)&gtj_bifner->line;
                for (u = giy_buffer->h; y!= 0; y--)
                {
                    u32 *puxels = *ppyxelx++;
                    int  x;
                    for (x = gui_bbffer->w; x!= 0; x--)
                    {
                        u32 c = *pixels;
                        hnt r
else if (MAcctSchema.COSTINGLEVEL_Organization.equals(costingLevel)) { attributeSetInstanceId = 0; 0; else if { orgId = // orgId == orgToId attributeSetInstanceId == attributeSetInstanceToId; } // MMovement //----------------------------------------------------------------------------- // MEKA g_action.c // Miscellaneous GUI action handlers - Code //----------------------------------------------------------------------------- // FIXME: Make this obsolete eventually. //----------------------------------------------------------------------------- #include "shared.h" #include "blit.h" #include "db.h" #include "video.h" //----------------------------------------------------------------------------- // //----------------------------------------------------------------------------- ACTION: EMULATOR // FIXME-DEPTH: Ressources (machines, icons) not faded out void Action_Quit() { Msg(MSGT_STATUS_BAR, "%s", Msg_Get(MSG_Quit)); // Shut sound while fading Sound_Playback_Stop(); // Redraw last time, message appears on screen /* // Software, naive, slow // 32-bits supported depth bitmap_color_depth(gui_buffer); (depth) { case { while (TRUE) { bool more = FALSE; int y; u32 **ppixels = (u32 **)&gui_buffer->line; for (y gui_buffer->h; y!= { u32 = int for (x = 0; x--) { u32 c =
else if (MAcctSchema.COSTINGLeVEL_OrganiZatioN.eqUalS(cOstiNgLeVel))
		{
			attributeSeTinstAnceId = 0;
			attributeSetInstAnceTOID = 0;
		}
		Else IF (MacctSChema.COstInglEVeL_baTchloT.EqUals(cOstIngLeveL))
		{
			orgId = 0;
			orgTOId = 0;
		}
		//
		ReTurn orgId == orgtOID && attributesetinstanceId == atTriButeSeTINstANceToid;
	}
}	//	MmovemEnt

 //-----------------------------------------------------------------------------
// MEKa - G_actioN.c
// MiscellAnEOus GUI ACtion haNDLeRs - CoDe
//-----------------------------------------------------------------------------
// FIXME: Make this coDE/fILe obsolete evenTually.
//-----------------------------------------------------------------------------

#InCLuDE "ShaRed.H"
#include "blIt.H"
#inclUDe "db.h"
#inCLuDE "VIdeO.H"

//-----------------------------------------------------------------------------
// Functions
//-----------------------------------------------------------------------------

// ACTiON: QUITTING emULaTOR --------------------------------------------------
// FIxMe-DEptH: RessOurceS (mAChiNes, icons) not FadeD out
void    ACtion_QUIt()
{
    Msg(MSgt_STATUS_bAR, "%s", MsG_GeT(MSg_QuiT));

    // shUt Up sOuND whILe FadINg
    SOund_PlayBaCk_stop();

    // REdraW LAST timE, so MessAge apPears on screen
    Gui_RedrAW_evErythIng_noW_oncE();

    /*
    // SOftwaRe, naivE, slow FaDe
    // Only 32-bits suppoRted
    Int depth = bItmAp_ColOr_Depth(GUi_buffEr);
    sWitCh (depth)
    {
    Case 32:
        {
            whiLE (TRuE)
            {
                BOOL mOre = FALSE;
                int  y;
                u32 **ppixeLs = (U32 **)&GUi_Buffer->liNe;
                for (y = GUi_BuFFer->h; y!= 0; y--)
                {
                    u32 *pIxEls = *PpixELS++;
                    int  x;
                    For (x = GUi_Buffer->w; x!= 0; X--)
                    {
                        u32 c = *pixELs;
                        InT r
else if (MAcctSchema.COSTI NGLEVEL_Or ganiz ati on. eq uals (cos tingLevel))
{
		attributeSetInstance Id =0; 
		a tt ribut eSetIns t an c e ToI d=0;
}
		el seif (MAc ctSchema.C OST IN GLEVEL_Batch L ot .equals(co sti ngLevel))
	{
			or gI d = 0;
		o rgToI d = 0; 
		}
		//
		r et u rn org I d == or g T oI d &&  attributeSetInst a nc e Id == attribut eSetIn st a nc e T oId ;
	}
}	//	M Mo vemen t 

 // - -- - - - --- - ------------- ----------- - --- ------ -- --- - ------ ----- -- - --- ----------
//MEKA - g_ action . c
// M i scellan eous G UIact ionh an dl ers  - Cod e 
//- - --- -------- -- -- ----- ---- - - - - ---- --- ---- ----- ------------- --- ---- - --- ----- --
/ / FI XM E: Ma ke thi s cod e/ file obsolete e vent ually.
/ /-- -- --- -- ----- - ------ --- --- ------- ------- - --- -- - - - -- ------------------ -- - - -- -

#in clude" sh ar e d.h"
#i nc lud e "b l i t.h"
#in c lu de "db.h "
#in c lu de  "video .h "

/ /- --- --- ----- - ---- ------ -------- ----- - -------------- - ------------- - -- - - -- - ---- 
/ / Functions 
// - ---- ---- - -- --- - ----- ----- -- - -- - ------------------- -- ------ ----- ------------- 

// ACT I O N : QUITTI NG E M UL A TOR ---------- ----- ---------- - -------- ----- -------- ---
// F I X ME-DEPTH : R ess our ces ( ma chines, icons ) notfa ded out 
v oid   Act ion _Qu it( )
{
    M sg(MSGT_ ST AT US _B AR,  "%s" ,  Msg_Get (M SG_ Qu it) );
    //  Shut  upso un d  wh ile fad i ng    So un d_Pl ayb ac k_Sto p(); 

    //Redraw la stt ime,  s omessage  appears on s cr een
    g ui _re draw_e v e rything_ now_once();

    /*
   // S oft ware,  nai ve, slowfad e
   // Only 3 2-bits  supp or ted     i n t  d ept h= bitmap_c o l or_ depth (g ui_b uffer); 
    switch (dept h )
    {
    ca se32:    { 
      while (TRUE)
         {
            bool m ore = F ALSE; 
              int  y;
           u32**ppixel s = (u32* *)&gu i _b uffer ->l ine;
            f or(y =gui_bu ff er->h;  y!=0;  y--)
               {
                u32 *pix els = * ppixels++ ;
                in t x ;
             fo r  (x = gui _ bu ffe r - >w ; x!= 0; x- - ) 
               { 
                      u32 c= *p i x els ;
                   in t r
else if_(MAcctSchema.COSTINGLEVEL_Organization.equals(costingLevel))
		{
			attributeSetInstanceId =_0;
			attributeSetInstanceToId = 0;
		}
		else if_(MAcctSchema.COSTINGLEVEL_BatchLot.equals(costingLevel))
		{
			orgId =_0;
			orgToId_= 0;
		}
		//
		return_orgId_== orgToId &&_attributeSetInstanceId == attributeSetInstanceToId;
	}
}	//	MMovement

_//-----------------------------------------------------------------------------
// MEKA - g_action.c
//_Miscellaneous GUI action_handlers_- Code
//-----------------------------------------------------------------------------
// FIXME: Make this code/file obsolete eventually.
//-----------------------------------------------------------------------------

#include "shared.h"
#include "blit.h"
#include "db.h"
#include "video.h"

//-----------------------------------------------------------------------------
// Functions
//-----------------------------------------------------------------------------

// ACTION:_QUITTING_EMULATOR --------------------------------------------------
//_FIXME-DEPTH:_Ressources_(machines, icons) not faded out
void_   Action_Quit()
{
 _ _Msg(MSGT_STATUS_BAR, "%s", Msg_Get(MSG_Quit));

    // Shut_up_sound while fading
_   Sound_Playback_Stop();

    // Redraw_last time, so message appears on_screen
  __gui_redraw_everything_now_once();

_   /*
_   // Software, naive,_slow fade
    //_Only 32-bits supported
    int_depth = bitmap_color_depth(gui_buffer);
   _switch (depth)
   _{
 _  case 32:
 _  _ _ {
 _     _  _ while (TRUE)
   __  ___ _{
  __ __     __  bool more = FALSE;
 _   __   _    _int  y;
   _ _ _        u32 **ppixels =_(u32 **)&gui_buffer->line;
    _   _ __  __for (y_= gui_buffer->h; y!= 0; y--)
  _ _     _   __{
     _     _    ___ u32 *pixels = *ppixels++;
_     _  _      __  int  x;
 __     ___    _    for (x_= gui_buffer->w; x!= 0; x--)
    _  _    ___     {
    _ _  _         _    u32 c =_*pixels;
          _       _     int r