Functions | Variables

textfile_gui.cpp File Reference

Implementation of textfile window. More...

#include "stdafx.h"
#include "fileio_func.h"
#include "fontcache.h"
#include "gfx_type.h"
#include "gfx_func.h"
#include "string_func.h"
#include "textfile_gui.h"
#include "widgets/misc_widget.h"
#include "table/strings.h"

Go to the source code of this file.

Functions

const char * GetTextfile (TextfileType type, Subdirectory dir, const char *filename)
 Search a textfile file next to the given content.

Variables

static const NWidgetPart _nested_textfile_widgets []
 Widgets for the textfile window.
static const WindowDesc _textfile_desc (WDP_CENTER, 630, 460, WC_TEXTFILE, WC_NONE, WDF_UNCLICK_BUTTONS, _nested_textfile_widgets, lengthof(_nested_textfile_widgets))
 Window definition for the textfile window.

Detailed Description

Implementation of textfile window.

Definition in file textfile_gui.cpp.


Function Documentation

const char* GetTextfile ( TextfileType  type,
Subdirectory  dir,
const char *  filename 
)

Search a textfile file next to the given content.

Parameters:
type The type of the textfile to search for.
dir The subdirectory to search in.
filename The filename of the content to look for.
Returns:
The path to the textfile, NULL otherwise.

Definition at line 203 of file textfile_gui.cpp.

References FioCheckFileExists(), GetCurrentLanguageIsoCode(), lastof, lengthof, seprintf(), and strecpy().

Referenced by AIConfigWindow::OnInvalidateData().


Variable Documentation

Initial value:

Widgets for the textfile window.

Definition at line 26 of file textfile_gui.cpp.