src/engine_gui.h
author glx
Wed, 17 Dec 2008 00:48:18 +0000
changeset 10432 c2451b76df30
parent 9403 8cfca59c11f1
permissions -rw-r--r--
(svn r14685) -Change: don't popup cmd windows when determining version (MSVC)
9380
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
     1
/* $Id$ */
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
     2
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
     3
/** @file engine_gui.h Engine GUI functions, used by build_vehicle_gui and autoreplace_gui */
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
     4
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
     5
#ifndef ENGINE_GUI_H
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
     6
#define ENGINE_GUI_H
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
     7
9403
8cfca59c11f1 (svn r13314) -Codechange: Switch EngineList from std::vector to GUIList
peter1138
parents: 9380
diff changeset
     8
#include "sortlist_type.h"
9380
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
     9
9403
8cfca59c11f1 (svn r13314) -Codechange: Switch EngineList from std::vector to GUIList
peter1138
parents: 9380
diff changeset
    10
typedef GUIList<EngineID> GUIEngineList;
9380
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
    11
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
    12
typedef int CDECL EngList_SortTypeFunction(const void*, const void*); ///< argument type for EngList_Sort()
9403
8cfca59c11f1 (svn r13314) -Codechange: Switch EngineList from std::vector to GUIList
peter1138
parents: 9380
diff changeset
    13
void EngList_Sort(GUIEngineList *el, EngList_SortTypeFunction compare);  ///< qsort of the engine list
8cfca59c11f1 (svn r13314) -Codechange: Switch EngineList from std::vector to GUIList
peter1138
parents: 9380
diff changeset
    14
void EngList_SortPartial(GUIEngineList *el, EngList_SortTypeFunction compare, uint begin, uint num_items); ///< qsort of specified portion of the engine list
9380
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
    15
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
    16
#endif /* ENGINE_GUI_H */