Документ взят из кэша поисковой машины. Адрес оригинального документа : http://astro.uni-altai.ru/~aw/stellarium/api/classStelMainScriptAPIProxy.html
Дата изменения: Unknown
Дата индексирования: Fri Feb 28 07:49:38 2014
Кодировка:

Поисковые слова: occultation
Stellarium: StelMainScriptAPIProxy Class Reference
Stellarium 0.12.3
List of all members | Public Slots | Public Member Functions
StelMainScriptAPIProxy Class Reference

Because the core API runs in a different thread to the main program, direct function calls to some classes can cause problems - especially when images must be loaded, or other non-atomic operations are involved. More...

#include <StelMainScriptAPIProxy.hpp>

Public Slots

void setDiskViewport (bool b)
 

Public Member Functions

 StelMainScriptAPIProxy (QObject *parent=0)
 

Detailed Description

Because the core API runs in a different thread to the main program, direct function calls to some classes can cause problems - especially when images must be loaded, or other non-atomic operations are involved.

This class acts as a proxy - running in the Main thread. Connect signals from the StelMainScriptAPI to the instance of this class running in the main thread and let the slots do the work which is not possible within StelMainScriptAPI itself.

Please follow the following convention: member in StelMainScriptAPI: someSlot(...) signal in StelMainScriptAPI: requestSomeSlot(...) member in StelMainScriptAPIProxy: someSlot(...)

The dis-advantage of this method is that there is no way to get a return value. This is because of how the signal/slot mechanism works.

Definition at line 42 of file StelMainScriptAPIProxy.hpp.


The documentation for this class was generated from the following file: