Stellarium  1.2
Public Slots | Signals | Public Member Functions | Properties
OnlineQueries Class Reference

#include <OnlineQueries.hpp>

Public Slots

void setEnabled (bool b)
 Enable plugin usage (show dialog)
 
bool isEnabled () const
 Is plugin dialog shown?
 
void saveConfiguration (void)
 Save the settings to the main configuration file.
 
void queryWikipedia ()
 Connect from a button that triggers information query.
 
void queryAAVSO ()
 Connect from a button that triggers information query.
 
void queryGCVS ()
 Connect from a button that triggers information query.
 
void queryAncientSkies ()
 Connect from a button that triggers information query.
 
void queryCustomSite1 ()
 Connect from a button that triggers information query.
 
void queryCustomSite2 ()
 Connect from a button that triggers information query.
 
void queryCustomSite3 ()
 Connect from a button that triggers information query.
 
QString getCustomUrl1 () const
 
QString getCustomUrl2 () const
 
QString getCustomUrl3 () const
 
bool webEngineDisabled () const
 

Signals

void flagEnabledChanged (bool b)
 

Public Member Functions

virtual void init () Q_DECL_OVERRIDE
 Initialize itself. More...
 
virtual bool configureGui (bool show) Q_DECL_OVERRIDE
 Detect or show the configuration GUI elements for the module. More...
 
- Public Member Functions inherited from StelModule
 StelModule ()
 Constructor. Every derived class MUST call setObjectName(className) in its constructor.
 
virtual void deinit ()
 Called before the module will be deleted, and before the OpenGL context is suppressed. More...
 
virtual QSettings * getSettings ()
 Return module-specific settings. More...
 
virtual void draw (StelCore *core)
 Execute all the drawing functions for this module. More...
 
virtual void update (double deltaTime)
 Update the module with respect to the time. More...
 
virtual QString getModuleVersion () const
 Get the version of the module, default is stellarium main version.
 
virtual QString getAuthorName () const
 Get the name of the module author.
 
virtual QString getAuthorEmail () const
 Get the email address of the module author.
 
virtual void handleMouseClicks (class QMouseEvent *)
 Handle mouse clicks. More...
 
virtual void handleMouseWheel (class QWheelEvent *)
 Handle mouse wheel. More...
 
virtual bool handleMouseMoves (int x, int y, Qt::MouseButtons b)
 Handle mouse moves. More...
 
virtual void handleKeys (class QKeyEvent *e)
 Handle key events. More...
 
virtual bool handlePinch (qreal scale, bool started)
 Handle pinch gesture events. More...
 
virtual double getCallOrder (StelModuleActionName actionName) const
 Return the value defining the order of call for the given action For example if stars.callOrder[ActionDraw] == 10 and constellation.callOrder[ActionDraw] == 11, the stars module will be drawn before the constellations. More...
 

Properties

bool enabled
 show dialog?
 

Additional Inherited Members

- Public Types inherited from StelModule
enum  StelModuleSelectAction { AddToSelection, ReplaceSelection, RemoveFromSelection }
 Enum used when selecting objects to define whether to add to, replace, or remove from the existing selection list. More...
 
enum  StelModuleActionName {
  ActionDraw, ActionUpdate, ActionHandleMouseClicks, ActionHandleMouseMoves,
  ActionHandleKeys
}
 Define the possible action for which an order is defined. More...
 
- Protected Member Functions inherited from StelModule
class StelActionaddAction (const QString &id, const QString &groupId, const QString &text, QObject *target, const char *slot, const QString &shortcut="", const QString &altShortcut="")
 convenience methods to add an action (call to slot) to the StelActionMgr object. More...
 
class StelActionaddAction (const QString &id, const QString &groupId, const QString &text, const char *slot, const QString &shortcut="", const QString &altShortcut="")
 convenience methods to add an action (call to own slot) to the StelActionMgr object. More...
 
StelActionaddAction (const QString &id, const QString &groupId, const QString &text, QObject *contextObject, std::function< void()> lambda, const QString &shortcut="", const QString &altShortcut="")
 convenience methods to add an action (call to Lambda functor) to the StelActionMgr object. More...
 

Detailed Description

Main class of the Online Queries plugin.

Author
Georg Zotti, Alexander Wolf

Member Function Documentation

◆ configureGui()

virtual bool OnlineQueries::configureGui ( bool  show)
virtual

This is to be used with plugins to display a configuration dialog from the plugin list window.

Parameters
showif true, make the configuration GUI visible. If false, hide the config GUI if there is one.
Returns
true if the module has a configuration GUI, else false.

Reimplemented from StelModule.

◆ init()

virtual void OnlineQueries::init ( )
virtual

If the initialization takes significant time, the progress should be displayed on the loading bar.

Implements StelModule.