Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 00099 00100 00101 00102 00103 00104 00105 00106 00107 00108 00109 00110 00111 00112 00113 00114 00115 00116 00117 00118 00119 |
/** * Handles information about a collection of list elements are sorted. Responsible for invoking the * UISortableItem on each element to allow the element to perform the comparison. * Copyright 1998-2008 Epic Games, Inc. All Rights Reserved. */ class UIComp_ListElementSorter extends UIComp_ListComponentBase native(inherit) editinlinenew; /** * Contains parameters for a list sorting operation. */ struct native transient UIListSortingParameters { /** the index of the column/row that should be used for first-pass sorting */ var int PrimaryIndex; /** the index of the column/row that should be used when first pass sorting encounters two identical elements */ var int SecondaryIndex; /** indicates that the elements should be sorted in reverse for first-pass */ var bool bReversePrimarySorting; /** indicates that the elements should be sorted in reverse for second-pass */ var bool bReverseSecondarySorting; /** indicates that sorting should be case sensitive */ var bool bCaseSensitive; /** indicates that the strings should be converted into integers for sorting purposes */ var bool bIntSortPrimary; var bool bIntSortSecondary; /** indicates that the strings should be converted into floats for sorting purposes */ var bool bFloatSortPrimary; var bool bFloatSortSecondary; structcpptext { /** Constructor */ FUIListSortingParameters( INT InPrimaryIndex, INT InSecondaryIndex, UBOOL bReversePrimary, UBOOL bReverseSecondary, UBOOL bInCaseSensitive, UBOOL bIntSort[2], UBOOL bFloatSort[2] ) : PrimaryIndex(InPrimaryIndex), SecondaryIndex(InSecondaryIndex) , bReversePrimarySorting(bReversePrimary), bReverseSecondarySorting(bReverseSecondary), bCaseSensitive(bInCaseSensitive) , bIntSortPrimary(bIntSort[0]), bIntSortSecondary(bIntSort[1]), bFloatSortPrimary(bFloatSort[0]), bFloatSortSecondary(bFloatSort[1]) {} } }; /** Indicates whether sorting by multiple columns is allowed in this list */ var() bool bAllowCompoundSorting<Tooltip=Enables sorting by multiple columns>; /** the index of the column (or row) to use for sorting the list's elements when SortColumn is INDEX_NONE */ var() int InitialSortColumn; /** the index of the column (or row) to use for performing the initial secondary sorting of the list's elements when SecondarySortColumn is INDEX_NONE */ var() int InitialSecondarySortColumn; /** the index of the column (or row) being used for sorting the list's items */ var() editconst transient const int PrimarySortColumn; /** the index of the column (or row) of the previous SortColumn */ var() editconst transient const int SecondarySortColumn; /** indicates that the primary sort column should be sorted in reverse order */ var() bool bReversePrimarySorting; /** indicates that the secondary sort column should be sorted in reverse order */ var() bool bReverseSecondarySorting; // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) /** * Resets the PrimarySortColumn and SecondarySortColumn to the Initial* values. * * @param bResort specify TRUE to re-sort the list's elements after resetting the sort columns. */ native final function ResetSortColumns( optional bool bResort=true ); /** * Sorts the owning list's items using the parameters specified. * * @param ColumnIndex the column (when CellLinkType is LINKED_Columns) or row (when CellLinkType is LINKED_Rows) to * use for sorting. Specify INDEX_NONE to clear sorting. * @param bSecondarySort specify TRUE to set ColumnIndex as the SecondarySortColumn. If FALSE, resets the value of SecondarySortColumn * @param bCaseSensitive specify TRUE to perform case-sensitive comparison * * @return TRUE if the items were sorted successfully. */ native final function bool SortItems( int ColumnIndex, optional bool bSecondarySort, optional bool bCaseSensitive ); /** * Sorts the owning list's items without modifying any sorting parameters. * * @param bCaseSensitive specify TRUE to perform case-sensitive comparison * * @return TRUE if the items were sorted successfully. */ native final function bool ResortItems( optional bool bCaseSensitive ); defaultproperties { bAllowCompoundSorting=True InitialSortColumn=-1 InitialSecondarySortColumn=-1 PrimarySortColumn=-1 SecondarySortColumn=-1 Name="Default__UIComp_ListElementSorter" ObjectArchetype=UIComp_ListComponentBase'Engine.Default__UIComp_ListComponentBase' } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |