Functions for modal progress windows. More...
#include "stdafx.h"#include "thread/thread.h"Go to the source code of this file.
Functions | |
| void | SetModalProgress (bool state) |
| Set the modal progress state. | |
| bool | IsFirstModalProgressLoop () |
| Check whether this is the first modal progress loop. | |
Variables | |
| bool | _in_modal_progress = false |
| Are we in a modal progress or not? | |
| bool | _first_in_modal_loop = false |
| ThreadMutex * | _modal_progress_work_mutex = ThreadMutex::New() |
| Rights for the performing work. | |
| ThreadMutex * | _modal_progress_paint_mutex = ThreadMutex::New() |
| Rights for the painting. | |
Functions for modal progress windows.
Definition in file progress.cpp.
| bool IsFirstModalProgressLoop | ( | ) |
Check whether this is the first modal progress loop.
Definition at line 39 of file progress.cpp.
Referenced by DrawDirtyBlocks().
| void SetModalProgress | ( | bool | state | ) |
Set the modal progress state.
| state | The new state; are we modal or not? |
Definition at line 28 of file progress.cpp.
References _in_modal_progress.
Referenced by CleanupGeneration(), DoScanNewGRFFiles(), GenerateWorld(), and ScanNewGRFFiles().
| ThreadMutex* _modal_progress_paint_mutex = ThreadMutex::New() |
Rights for the painting.
Definition at line 21 of file progress.cpp.
Referenced by GRFFileScanner::AddFile(), DoScanNewGRFFiles(), DrawDirtyBlocks(), ScanNewGRFFiles(), and WaitTillGeneratedWorld().
| ThreadMutex* _modal_progress_work_mutex = ThreadMutex::New() |
Rights for the performing work.
Definition at line 19 of file progress.cpp.
Referenced by _GenerateWorld(), GRFFileScanner::AddFile(), DoScanNewGRFFiles(), DrawDirtyBlocks(), GenerateWorld(), ScanNewGRFFiles(), and WaitTillGeneratedWorld().
1.7.1