Commit d69187bc authored by Ben Avison's avatar Ben Avison
Browse files

Initial commit of Configure plug-in '!MousSetup' to CVS.

parents
/* Copyright 1998 Acorn Computers Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/****** Main.h ************************************************************\
Project: Ursula (RISC OS for Risc PC II)
Component: Mouse configuration plug-in
This file: Overall control
History:
Date Who Change
----------------------------------------------------------------------------
09/12/1997 BJGA Split into Main, Settings, ToolboxE, WimpE & WimpM
Added these headers
\**************************************************************************/
#ifndef __main_h
#define __main_h
/* Toolbox */
#include "toolbox.h"
/* Global variables */
extern BOOL quit;
extern ObjectId mainwindow_id;
extern MessagesFD messages;
/* Prototypes */
extern int main (int argc, char *argv[]);
#endif
/* Copyright 1998 Acorn Computers Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/****** MouseType.h *******************************************************\
Project: Ursula (RISC OS for Risc PC II)
Component: Mouse configuration plug-in
This file: Mouse driver routines
History:
Date Who Change
----------------------------------------------------------------------------
09/12/1997 BJGA Added these headers
\**************************************************************************/
#ifndef __mousetype_h
#define __mousetype_h
/* Prototypes */
extern int mousetype_getavailable (char *buffer);
extern char *mousetype_get (int(get)(cmos item, void *messages));
extern int mousetype_set (char *value);
#endif
/* Copyright 1998 Acorn Computers Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/****** Settings.h ********************************************************\
Project: Ursula (RISC OS for Risc PC II)
Component: Mouse configuration plug-in
This file: GUI <-> settings routines
History:
Date Who Change
----------------------------------------------------------------------------
09/12/1997 BJGA Split from Main
Added these headers
11/05/1998 BJGA Redefined cmos constants in line with new allocation
Added autoscroll component id
\**************************************************************************/
#ifndef __settings_h
#define __settings_h
/* Toolbox */
#include "toolbox.h"
/* Common */
#include "cmos.h"
/* Constants */
#define MouseMultiplier ((cmos) cmos_details[0])
#define MouseType ((cmos) cmos_details[1])
#define WimpDragDelay ((cmos) cmos_details[2])
#define WimpAutoScrollDelay ((cmos) cmos_details[3])
#define WimpDragDelayUnit ((cmos) cmos_details[4])
#define WimpAutoScrollDelayUnit ((cmos) cmos_details[5])
#define WimpDragMove ((cmos) cmos_details[6])
#define WimpDoubleClickDelay ((cmos) cmos_details[7])
#define WimpAutoFrontDelay ((cmos) cmos_details[8])
#define WimpDoubleClickDelayUnit ((cmos) cmos_details[9])
#define WimpAutoFrontDelayUnit ((cmos) cmos_details[10])
#define WimpDoubleClickMove ((cmos) cmos_details[11])
#define WimpAutoFrontIconBar ((cmos) cmos_details[12])
#define WimpFlagsSubMenus ((cmos) cmos_details[13])
#define WimpAutoMenuDelay ((cmos) cmos_details[14])
#define WimpAutoMenuDelayUnit ((cmos) cmos_details[15])
#define WimpMenuDragDelay ((cmos) cmos_details[16])
#define WimpMenuDragDelayUnit ((cmos) cmos_details[17])
#define mainwindow_mousespeed ((ComponentId) 0x002)
#define mainwindow_mousetype ((ComponentId) 0x005)
#define mainwindow_dragdelay ((ComponentId) 0x007)
#define mainwindow_dragdist ((ComponentId) 0x00a)
#define mainwindow_dclickdelay ((ComponentId) 0x00d)
#define mainwindow_dclickdist ((ComponentId) 0x010)
#define mainwindow_autoscr ((ComponentId) 0x01e)
#define mainwindow_openmenu ((ComponentId) 0x012)
#define mainwindow_openmenudelay ((ComponentId) 0x014)
#define mainwindow_closemenudelay ((ComponentId) 0x017)
#define mainwindow_autofront ((ComponentId) 0x019)
#define mainwindow_autofrontdelay ((ComponentId) 0x01b)
#define mainwindow_set ((ComponentId) 0x100)
#define mainwindow_cancel ((ComponentId) 0x101)
#define mainwindow_default ((ComponentId) 0x102)
#define mainwindow_openmenu_shademin ((ComponentId) 0x013)
#define mainwindow_openmenu_shademax ((ComponentId) 0x018)
#define mainwindow_autofront_shademin ((ComponentId) 0x01a)
#define mainwindow_autofront_shademax ((ComponentId) 0x01c)
/* Global variables */
extern const cmos cmos_details [];
/* Prototypes */
extern void settings_read (int(*get)(cmos item, void *messages));
extern BOOL settings_write (void);
#endif
/* Copyright 1998 Acorn Computers Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/****** ToolboxE.h ********************************************************\
Project: Ursula (RISC OS for Risc PC II)
Component: Mouse configuration plug-in
This file: Toolbox event code
History:
Date Who Change
----------------------------------------------------------------------------
09/12/1997 BJGA Split from Main
Added these headers
10/12/1997 BJGA Made handler routines static
\**************************************************************************/
#ifndef __toolboxe_h
#define __toolboxe_h
/* Global variables */
extern int toolboxe_events [];
/* Prototypes */
extern void toolboxe_register (void);
#endif
/* Copyright 1998 Acorn Computers Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/****** WimpE.h ***********************************************************\
Project: Ursula (RISC OS for Risc PC II)
Component: Mouse configuration plug-in
This file: Wimp event code
History:
Date Who Change
----------------------------------------------------------------------------
09/12/1997 BJGA Split from Main
Added these headers
10/12/1997 BJGA Made handler routines static
\**************************************************************************/
#ifndef __wimpe_h
#define __wimpe_h
/* Global variables */
extern int wimpe_mask;
/* Prototypes */
extern void wimpe_register (void);
#endif
/* Copyright 1998 Acorn Computers Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/****** WimpM.h ***********************************************************\
Project: Ursula (RISC OS for Risc PC II)
Component: Mouse configuration plug-in
This file: Wimp message code
History:
Date Who Change
----------------------------------------------------------------------------
09/12/1997 BJGA Split from Main
Added these headers
10/12/1997 BJGA Made handler routines static
\**************************************************************************/
#ifndef __wimpm_h
#define __wimpm_h
/* Global variables */
extern int wimpm_messages [];
/* Prototypes */
extern void wimpm_register (void);
#endif
*
!.gitignore
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment