DetailsTable
#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 28 of file detailstable.h.
Constructor & Destructor Documentation
◆ DetailsTable()
DetailsTable::DetailsTable | ( | ) |
Default constructor - creates empty details table.
Definition at line 25 of file detailstable.cpp.
◆ ~DetailsTable()
DetailsTable::~DetailsTable | ( | ) |
Destructor.
Definition at line 32 of file detailstable.cpp.
Member Function Documentation
◆ clearContents()
void DetailsTable::clearContents | ( | ) |
Clear current table.
Definition at line 680 of file detailstable.cpp.
◆ createAsteroidCometTable()
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 343 of file detailstable.cpp.
◆ createCoordinatesTable()
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 491 of file detailstable.cpp.
◆ createGeneralTable()
void DetailsTable::createGeneralTable | ( | SkyObject * | obj | ) |
Create general details table.
- Parameters
-
obj SkyObject for which table will be created.
Definition at line 40 of file detailstable.cpp.
◆ createRSTTAble()
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 579 of file detailstable.cpp.
◆ getDocument()
|
inline |
◆ getItemNameCharFormat()
|
inline |
Get table item name character format.
- Returns
- Current table item name character format.
Definition at line 57 of file detailstable.h.
◆ getItemValueCharFormat()
|
inline |
Get table item value character format.
- Returns
- Current table item value character format.
Definition at line 63 of file detailstable.h.
◆ getTableFormat()
|
inline |
◆ getTableTitleCharFormat()
|
inline |
Get table title character format.
- Returns
- Current table title character format.
Definition at line 51 of file detailstable.h.
◆ setItemNameCharFormat()
|
inline |
Set table item name character format.
- Parameters
-
format New table item name character format.
Definition at line 81 of file detailstable.h.
◆ setItemValueCharFormat()
|
inline |
Set table item value character format.
- Parameters
-
format New table item value character format.
Definition at line 87 of file detailstable.h.
◆ setTableFormat()
|
inline |
◆ setTableTitleCharFormat()
|
inline |
Set table title character format.
- Parameters
-
format New table title character format.
Definition at line 75 of file detailstable.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.