src/engine_gui.h
author Tero Marttila <terom@fixme.fi>
Tue, 22 Jul 2008 23:20:33 +0300
changeset 11184 88c967f1422b
parent 10764 e46596b87826
permissions -rw-r--r--
add an empty bin/cache dir
10737
0f704b9afd93 (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$ */
0f704b9afd93 (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
     2
0f704b9afd93 (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 */
0f704b9afd93 (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
     4
0f704b9afd93 (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
0f704b9afd93 (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
0f704b9afd93 (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
     7
10764
e46596b87826 (svn r13314) -Codechange: Switch EngineList from std::vector to GUIList
peter1138
parents: 10737
diff changeset
     8
#include "sortlist_type.h"
10737
0f704b9afd93 (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
     9
10764
e46596b87826 (svn r13314) -Codechange: Switch EngineList from std::vector to GUIList
peter1138
parents: 10737
diff changeset
    10
typedef GUIList<EngineID> GUIEngineList;
10737
0f704b9afd93 (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
    11
0f704b9afd93 (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()
10764
e46596b87826 (svn r13314) -Codechange: Switch EngineList from std::vector to GUIList
peter1138
parents: 10737
diff changeset
    13
void EngList_Sort(GUIEngineList *el, EngList_SortTypeFunction compare);  ///< qsort of the engine list
e46596b87826 (svn r13314) -Codechange: Switch EngineList from std::vector to GUIList
peter1138
parents: 10737
diff changeset
    14
void EngList_SortPartial(GUIEngineList *el, EngList_SortTypeFunction compare, uint begin, uint num_items); ///< qsort of specified portion of the engine list
10737
0f704b9afd93 (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
    15
0f704b9afd93 (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 */