kstars
#include <detailstable.h>
Public Member Functions | |
DetailsTable () | |
~DetailsTable () | |
void | clearContents () |
void | createAsteroidCometTable (SkyObject *obj) |
void | createCoordinatesTable (SkyObject *obj, const KStarsDateTime &ut, GeoLocation *geo) |
void | createGeneralTable (SkyObject *obj) |
void | createRSTTAble (SkyObject *obj, const KStarsDateTime &ut, GeoLocation *geo) |
QTextDocument * | getDocument () |
QTextCharFormat | getItemNameCharFormat () |
QTextCharFormat | getItemValueCharFormat () |
QTextTableFormat | getTableFormat () |
QTextCharFormat | getTableTitleCharFormat () |
void | setItemNameCharFormat (const QTextCharFormat &format) |
void | setItemValueCharFormat (const QTextCharFormat &format) |
void | setTableFormat (const QTextTableFormat &format) |
void | setTableTitleCharFormat (const QTextCharFormat &format) |
Detailed Description
Represents details tables that can be inserted to finder charts and logging forms.
DetailsTable class is used for creating QTextTables filled with details about objects of all types. Created tables are stored inside QTextDocument, which can be obtained by DetailsTable::getDocument() and inserted into other QTextDocument as fragment. Four types of details tables are supported: general details, position details, Rise/Set/Transit details and Asteroid/Comet details.
Definition at line 39 of file detailstable.h.
Constructor & Destructor Documentation
DetailsTable::DetailsTable | ( | ) |
Default constructor - creates empty details table.
Definition at line 35 of file detailstable.cpp.
DetailsTable::~DetailsTable | ( | ) |
Destructor.
Definition at line 42 of file detailstable.cpp.
Member Function Documentation
void DetailsTable::clearContents | ( | ) |
Clear current table.
Definition at line 704 of file detailstable.cpp.
void DetailsTable::createAsteroidCometTable | ( | SkyObject * | obj | ) |
Create Asteroid/Comet details table.
- Parameters
-
obj Sky object (Asteroid/Comet) for which table will be created.
Definition at line 365 of file detailstable.cpp.
void DetailsTable::createCoordinatesTable | ( | SkyObject * | obj, |
const KStarsDateTime & | ut, | ||
GeoLocation * | geo | ||
) |
Create coordinates details table.
- Parameters
-
obj Sky object for which table will be created. ut Date and time. geo Geographic location.
Definition at line 513 of file detailstable.cpp.
void DetailsTable::createGeneralTable | ( | SkyObject * | obj | ) |
Create general details table.
- Parameters
-
obj SkyObject for which table will be created.
Definition at line 50 of file detailstable.cpp.
void DetailsTable::createRSTTAble | ( | SkyObject * | obj, |
const KStarsDateTime & | ut, | ||
GeoLocation * | geo | ||
) |
Create Rise/Set/Transit details table.
- Parameters
-
obj Sky object for which table will be created. ut Date and time. geo Geographic location.
Definition at line 602 of file detailstable.cpp.
|
inline |
|
inline |
Get table item name character format.
- Returns
- Current table item name character format.
Definition at line 68 of file detailstable.h.
|
inline |
Get table item value character format.
- Returns
- Current table item value character format.
Definition at line 74 of file detailstable.h.
|
inline |
|
inline |
Get table title character format.
- Returns
- Current table title character format.
Definition at line 62 of file detailstable.h.
|
inline |
Set table item name character format.
- Parameters
-
format New table item name character format.
Definition at line 92 of file detailstable.h.
|
inline |
Set table item value character format.
- Parameters
-
format New table item value character format.
Definition at line 98 of file detailstable.h.
|
inline |
|
inline |
Set table title character format.
- Parameters
-
format New table title character format.
Definition at line 86 of file detailstable.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:22 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.