Changeset 1476 for trunk/src


Ignore:
Timestamp:
Oct 27, 1999, 2:38:48 PM (26 years ago)
Author:
phaller
Message:

Add: console properties update

Location:
trunk/src/kernel32
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/KERNEL32.DEF

    r1454 r1476  
    1 ; $Id: KERNEL32.DEF,v 1.45 1999-10-26 11:15:32 sandervl Exp $
     1; $Id: KERNEL32.DEF,v 1.46 1999-10-27 12:38:44 phaller Exp $
    22
    33;Created by BLAST for IBM's compiler
     
    1919  _DosAliasMem                 =  DOSCALLS.298
    2020   DosQuerySysState            =  DOSCALLS.368
     21
     22  _O32_RegCloseKey             = PMWINX.541
     23  _O32_RegCreateKeyEx          = PMWINX.543
     24  _O32_RegOpenKeyEx            = PMWINX.550
     25  _O32_RegQueryValueEx         = PMWINX.553
     26  _O32_RegSetValueEx           = PMWINX.555
     27
    2128
    2229
  • trunk/src/kernel32/conprop.cpp

    r767 r1476  
    1 /* $Id: conprop.cpp,v 1.8 1999-08-31 22:44:33 phaller Exp $ */
     1/* $Id: conprop.cpp,v 1.9 1999-10-27 12:38:45 phaller Exp $ */
    22
    33/*
     
    66 * 1998/03/06 Patrick Haller (haller@zebra.fh-weingarten.de)
    77 *
    8  * @(#) conprop.cpp             1.0.0   1998/03/06 PH Start from scratch
     8 * @(#) conprop.cpp             1.0.0   1998/03/06 PH Start from scratch
    99 */
    1010
     
    3232#define  INCL_VIO
    3333#define  INCL_AVIO
    34 #include <os2wrap.h>    //Odin32 OS/2 api wrappers
     34#include <os2wrap.h>    //Odin32 OS/2 api wrappers
    3535#include <builtin.h>
    3636
     
    18911891
    18921892
    1893 
    1894 
    1895 
    18961893/*****************************************************************************
    1897  * Name      : APIRET EXPENTRY ConsolePropertyLoad
    1898  * Funktion  : load properties from registry
    1899  * Parameter : PICONSOLEOPTIONS pConsoleOptions
    1900  * Variablen :
    1901  * Ergebnis  : APIRET
    1902  * Bemerkung :
    1903  *
    1904  * Autor     : Patrick Haller [1998/06/13 23:20]
    1905  *****************************************************************************/
    1906 
    1907 APIRET EXPENTRY ConsolePropertyLoad(PICONSOLEOPTIONS pConsoleOptions)
    1908 {
    1909   dprintf (("KERNEL32: Console:ConsolePropertyLoad(%08xh) not implemented.\n",
    1910             pConsoleOptions));
    1911 
    1912   // HKEY_CURRENT_USER/SOFTWARE/ODIN/<process name>/<option name>
    1913 
    1914   return (NO_ERROR);
    1915 }
    1916 
    1917 
    1918 
    1919 /*****************************************************************************
    1920  * Name      : APIRET EXPENTRY ConsolePropertySave
     1894 * Name      : APIRET EXPENTRY ConsolePropertyApply
    19211895 * Funktion  : save properties from registry
    19221896 * Parameter : PICONSOLEOPTIONS pConsoleOptions
     
    19281902 *****************************************************************************/
    19291903
    1930 APIRET EXPENTRY ConsolePropertySave(PICONSOLEOPTIONS pConsoleOptions)
    1931 {
    1932   dprintf (("KERNEL32: Console:ConsolePropertySave(%08xh) not implemented.\n",
    1933             pConsoleOptions));
    1934 
    1935   return (NO_ERROR);
    1936 }
    1937 
    1938 
    1939 /*****************************************************************************
    1940  * Name      : APIRET EXPENTRY ConsolePropertyApply
    1941  * Funktion  : apply properties in memory to the console window
    1942  * Parameter : PICONSOLEOPTIONS pConsoleOptions
    1943  * Variablen :
    1944  * Ergebnis  : APIRET
    1945  * Bemerkung :
    1946  *
    1947  * Autor     : Patrick Haller [1998/06/13 23:20]
    1948  *****************************************************************************/
    1949 
    1950 APIRET EXPENTRY ConsolePropertyApply(PICONSOLEOPTIONS pConsoleOptions)
     1904DWORD ConsolePropertyApply(PICONSOLEOPTIONS pConsoleOptions)
    19511905{
    19521906  dprintf (("KERNEL32: Console:ConsolePropertyApply(%08xh) not implemented.\n",
     
    19551909  return (NO_ERROR);
    19561910}
    1957 
    1958 
    1959 
    1960 
    19611911
    19621912
  • trunk/src/kernel32/conprop.h

    r767 r1476  
    1 /* $Id: conprop.h,v 1.5 1999-08-31 22:44:33 phaller Exp $ */
     1/* $Id: conprop.h,v 1.6 1999-10-27 12:38:46 phaller Exp $ */
    22
    33/*
     
    5555                                        MPARAM mp2);
    5656
    57 
     57                                               /* default console properties */
     58DWORD ConsolePropertyDefault(PICONSOLEOPTIONS pConsoleOptions);
    5859                                                  /* read console properties */
    59 APIRET EXPENTRY ConsolePropertyLoad(PICONSOLEOPTIONS pConsoleOptions);
     60DWORD ConsolePropertyLoad(PICONSOLEOPTIONS pConsoleOptions);
    6061
    6162                                                 /* write console properties */
    62 APIRET EXPENTRY ConsolePropertySave(PICONSOLEOPTIONS pConsoleOptions);
     63DWORD ConsolePropertySave(PICONSOLEOPTIONS pConsoleOptions);
    6364
    6465                                                 /* apply console properties */
    65 APIRET EXPENTRY ConsolePropertyApply(PICONSOLEOPTIONS pConsoleOptions);
     66DWORD ConsolePropertyApply(PICONSOLEOPTIONS pConsoleOptions);
    6667
    6768#ifdef __cplusplus
  • trunk/src/kernel32/console.cpp

    r1182 r1476  
    1 /* $Id: console.cpp,v 1.14 1999-10-08 09:52:33 sandervl Exp $ */
     1/* $Id: console.cpp,v 1.15 1999-10-27 12:38:47 phaller Exp $ */
    22
    33/*
     
    384384   *************************************/
    385385
    386   ConsoleGlobals.Options.fTerminateAutomatically = FALSE;
    387   ConsoleGlobals.Options.fSpeakerEnabled         = TRUE;
    388 
    389   ConsoleGlobals.Options.fSetWindowPosition      = FALSE;
    390   ConsoleGlobals.Options.coordDefaultPosition.X  = 0;
    391   ConsoleGlobals.Options.coordDefaultPosition.Y  = 0;
    392   ConsoleGlobals.Options.coordDefaultSize.X      = 80;
    393   ConsoleGlobals.Options.coordDefaultSize.Y      = 25;
     386  // load defaults
     387  ConsolePropertyDefault(&ConsoleGlobals.Options);
     388
     389  ConsoleGlobals.ulTimerFrequency = 10;  /* cursor + blitter timer frequency */
     390
    394391  ConsoleGlobals.coordWindowSize.X               = ConsoleGlobals.Options.coordDefaultSize.X;
    395392  ConsoleGlobals.coordWindowSize.Y               = ConsoleGlobals.Options.coordDefaultSize.Y;
    396393  ConsoleGlobals.coordWindowPos.X                = 0;
    397394  ConsoleGlobals.coordWindowPos.Y                = 0;
    398 
    399   ConsoleGlobals.Options.fQuickInsert            = FALSE;
    400   ConsoleGlobals.Options.fInsertMode             = FALSE;
    401   ConsoleGlobals.Options.fMouseActions           = FALSE;
    402   ConsoleGlobals.Options.fToolbarActive          = FALSE;
    403 
    404   ConsoleGlobals.Options.ucDefaultAttribute = 0x0007;  /* 07 = grey on black */
    405 
    406   ConsoleGlobals.Options.ulTabSize               = 8;      /* tabulator size */
    407   ConsoleGlobals.Options.ulUpdateLimit           = 8; /* scroll max. n lines */
    408 
    409                                      /* priority settings for message thread */
    410   ConsoleGlobals.Options.ulConsoleThreadPriorityClass = PRTYC_REGULAR;
    411   ConsoleGlobals.Options.ulConsoleThreadPriorityDelta = +10;
    412 
    413   ConsoleGlobals.Options.ucCursorDivisor = 10; /* timer divisor for blinking */
    414 
    415   ConsoleGlobals.ulTimerFrequency = 10;  /* cursor + blitter timer frequency */
    416395
    417396
  • trunk/src/kernel32/makefile

    r1454 r1476  
    1 # $Id: makefile,v 1.47 1999-10-26 11:15:33 sandervl Exp $
     1# $Id: makefile,v 1.48 1999-10-27 12:38:48 phaller Exp $
    22
    33#
     
    2828os2heap.OBJ vmutex.OBJ initterm.OBJ handlemanager.OBJ  \
    2929hmdevice.obj hmopen32.obj hmobjects.obj hmevent.obj hmmutex.obj \
    30 hmsemaphore.obj wprocess.OBJ conprop.OBJ winimagelx.obj \
     30hmsemaphore.obj wprocess.OBJ conprop.OBJ conprop2.obj winimagelx.obj \
    3131winimagebase.OBJ windllbase.OBJ winexebase.OBJ time.obj mmap.obj \
    3232winimagepe2lx.obj winimagepeldr.obj windllpe2lx.obj windlllx.obj windllpeldr.obj \
     
    8181    $(PDWIN32_INCLUDE)\unicode.h \
    8282    $(PDWIN32_INCLUDE)\heap.h \
    83     $(PDWIN32_INCLUDE)\wprocess.h 
     83    $(PDWIN32_INCLUDE)\wprocess.h
    8484
    8585kobjects.obj: kobjects.cpp
     
    100100
    101101atom.obj: atom.cpp \
    102     $(PDWIN32_INCLUDE)\unicode.h 
     102    $(PDWIN32_INCLUDE)\unicode.h
    103103
    104104time.obj: time.cpp \
     
    132132    os2heap.h
    133133
    134 initterm.OBJ: .\initterm.cpp initterm.h  heapshared.h 
     134initterm.OBJ: .\initterm.cpp initterm.h  heapshared.h
    135135
    136136thunk.OBJ: \
     
    155155    oslibexcept.cpp \
    156156    $(PDWIN32_INCLUDE)\exceptions.h \
    157     oslibexcept.h 
     157    oslibexcept.h
    158158
    159159devio.OBJ: \
     
    316316        .\conprop.cpp
    317317
     318conprop2.OBJ: \
     319        .\conprop.h \
     320        .\conprop2.cpp
     321
    318322async.OBJ: \
    319323        .\async.cpp \
     
    327331pefile.OBJ:    pefile.cpp $(PDWIN32_INCLUDE)\pefile.h $(PDWIN32_INCLUDE)\winres.h
    328332
    329 winimagebase.obj:  winimagebase.cpp $(PDWIN32_INCLUDE)\winimagebase.h 
     333winimagebase.obj:  winimagebase.cpp $(PDWIN32_INCLUDE)\winimagebase.h
    330334winimagepe2lx.obj: winimagepe2lx.cpp $(PDWIN32_INCLUDE)\winimagebase.h $(PDWIN32_INCLUDE)\winimagepe2lx.h
    331335winimagepeldr.obj: winimagepeldr.cpp $(PDWIN32_INCLUDE)\winimagebase.h $(PDWIN32_INCLUDE)\winimagepeldr.h
Note: See TracChangeset for help on using the changeset viewer.