2004-05-28 12:14:00 +00:00
|
|
|
/*
|
|
|
|
* ReactOS kernel
|
|
|
|
* Copyright (C) 2004 ReactOS Team
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
2009-10-27 10:34:16 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2004-05-28 12:14:00 +00:00
|
|
|
*/
|
2013-03-16 20:08:56 +00:00
|
|
|
/*
|
2004-05-28 12:14:00 +00:00
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS text-mode setup
|
2015-09-13 16:40:36 +00:00
|
|
|
* FILE: base/setup/usetup/genlist.h
|
2004-05-28 12:14:00 +00:00
|
|
|
* PURPOSE: Generic list functions
|
2018-05-27 19:33:07 +00:00
|
|
|
* PROGRAMMER:
|
2004-05-28 12:14:00 +00:00
|
|
|
*/
|
|
|
|
|
2010-02-26 11:43:19 +00:00
|
|
|
#pragma once
|
2004-05-28 12:14:00 +00:00
|
|
|
|
2017-08-28 11:28:08 +00:00
|
|
|
// #include "../lib/utils/genlist.h"
|
2017-05-15 16:22:18 +00:00
|
|
|
|
2017-12-29 18:09:56 +00:00
|
|
|
typedef NTSTATUS
|
|
|
|
(NTAPI *PGET_ENTRY_DESCRIPTION)(
|
|
|
|
IN PGENERIC_LIST_ENTRY Entry,
|
|
|
|
OUT PSTR Buffer,
|
|
|
|
IN SIZE_T cchBufferSize);
|
|
|
|
|
2017-05-15 16:22:18 +00:00
|
|
|
typedef struct _GENERIC_LIST_UI
|
|
|
|
{
|
|
|
|
PGENERIC_LIST List;
|
|
|
|
|
|
|
|
PLIST_ENTRY FirstShown;
|
|
|
|
PLIST_ENTRY LastShown;
|
2017-12-29 18:09:56 +00:00
|
|
|
PGENERIC_LIST_ENTRY BackupEntry;
|
|
|
|
|
|
|
|
PGET_ENTRY_DESCRIPTION GetEntryDescriptionProc;
|
2017-05-15 16:22:18 +00:00
|
|
|
|
|
|
|
SHORT Left;
|
|
|
|
SHORT Top;
|
|
|
|
SHORT Right;
|
|
|
|
SHORT Bottom;
|
|
|
|
BOOL Redraw;
|
2017-09-03 19:46:26 +00:00
|
|
|
|
|
|
|
CHAR CurrentItemText[256];
|
|
|
|
|
2017-05-15 16:22:18 +00:00
|
|
|
} GENERIC_LIST_UI, *PGENERIC_LIST_UI;
|
2004-05-28 12:14:00 +00:00
|
|
|
|
2008-01-23 16:14:50 +00:00
|
|
|
VOID
|
2017-05-15 16:22:18 +00:00
|
|
|
InitGenericListUi(
|
|
|
|
IN OUT PGENERIC_LIST_UI ListUi,
|
2017-12-29 18:09:56 +00:00
|
|
|
IN PGENERIC_LIST List,
|
|
|
|
IN PGET_ENTRY_DESCRIPTION GetEntryDescriptionProc);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
RestoreGenericListUiState(
|
|
|
|
IN PGENERIC_LIST_UI ListUi);
|
2008-01-23 16:14:50 +00:00
|
|
|
|
2017-05-15 16:22:18 +00:00
|
|
|
VOID
|
|
|
|
DrawGenericList(
|
|
|
|
IN PGENERIC_LIST_UI ListUi,
|
|
|
|
IN SHORT Left,
|
|
|
|
IN SHORT Top,
|
|
|
|
IN SHORT Right,
|
|
|
|
IN SHORT Bottom);
|
|
|
|
|
2017-12-29 18:09:56 +00:00
|
|
|
VOID
|
|
|
|
DrawGenericListCurrentItem(
|
|
|
|
IN PGENERIC_LIST List,
|
|
|
|
IN PGET_ENTRY_DESCRIPTION GetEntryDescriptionProc,
|
|
|
|
IN SHORT Left,
|
|
|
|
IN SHORT Top);
|
|
|
|
|
2017-05-15 16:22:18 +00:00
|
|
|
VOID
|
|
|
|
ScrollDownGenericList(
|
|
|
|
IN PGENERIC_LIST_UI ListUi);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
ScrollUpGenericList(
|
|
|
|
IN PGENERIC_LIST_UI ListUi);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
ScrollPageDownGenericList(
|
|
|
|
IN PGENERIC_LIST_UI ListUi);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
ScrollPageUpGenericList(
|
|
|
|
IN PGENERIC_LIST_UI ListUi);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
ScrollToPositionGenericList(
|
|
|
|
IN PGENERIC_LIST_UI ListUi,
|
|
|
|
IN ULONG uIndex);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
RedrawGenericList(
|
|
|
|
IN PGENERIC_LIST_UI ListUi);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
GenericListKeyPress(
|
|
|
|
IN PGENERIC_LIST_UI ListUi,
|
|
|
|
IN CHAR AsciiChar);
|
2015-10-18 13:52:51 +00:00
|
|
|
|
2004-05-28 12:14:00 +00:00
|
|
|
/* EOF */
|