29 kcfg_XplanetProjection->addItem(
i18nc(
"Map projection method",
"No projection"),
"no projection");
30 kcfg_XplanetProjection->addItem(
i18nc(
"Map projection method",
"Ancient"),
"ancient");
31 kcfg_XplanetProjection->addItem(
i18nc(
"Map projection method",
"Azimuthal"),
"azimuthal");
32 kcfg_XplanetProjection->addItem(
i18nc(
"Map projection method",
"Bonne"),
"bonne");
33 kcfg_XplanetProjection->addItem(
i18nc(
"Map projection method",
"Gnomonic"),
"gnomonic");
34 kcfg_XplanetProjection->addItem(
i18nc(
"Map projection method",
"Hemisphere"),
"hemisphere");
35 kcfg_XplanetProjection->addItem(
i18nc(
"Map projection method",
"Lambert"),
"lambert");
36 kcfg_XplanetProjection->addItem(
i18nc(
"Map projection method",
"Mercator"),
"mercator");
37 kcfg_XplanetProjection->addItem(
i18nc(
"Map projection method",
"Mollweide"),
"mollweide");
38 kcfg_XplanetProjection->addItem(
i18nc(
"Map projection method",
"Orthographic"),
"orthographic");
39 kcfg_XplanetProjection->addItem(
i18nc(
"Map projection method",
"Peters"),
"peters");
40 kcfg_XplanetProjection->addItem(
i18nc(
"Map projection method",
"Polyconic"),
"polyconic");
41 kcfg_XplanetProjection->addItem(
i18nc(
"Map projection method",
"Rectangular"),
"rectangular");
42 kcfg_XplanetProjection->addItem(
i18nc(
"Map projection method",
"TSC"),
"tsc");
45 connect( kcfg_XplanetWait, SIGNAL( toggled(
bool) ), SLOT( slotUpdateWidgets(
bool) ) );
46 connect( kcfg_XplanetConfigFile, SIGNAL( toggled(
bool) ), SLOT( slotConfigFileWidgets(
bool) ) );
47 connect( kcfg_XplanetStarmap, SIGNAL( toggled(
bool) ), SLOT( slotStarmapFileWidgets(
bool) ) );
48 connect( kcfg_XplanetArcFile, SIGNAL( toggled(
bool) ), SLOT( slotArcFileWidgets(
bool) ) );
49 connect( kcfg_XplanetLabel, SIGNAL( toggled(
bool) ), SLOT( slotLabelWidgets(
bool) ) );
50 connect( kcfg_XplanetMarkerFile, SIGNAL( toggled(
bool) ), SLOT( slotMarkerFileWidgets(
bool) ) );
51 connect( kcfg_XplanetMarkerBounds, SIGNAL( toggled(
bool) ), SLOT( slotMarkerBoundsWidgets(
bool) ) );
52 connect( kcfg_XplanetProjection, SIGNAL( currentIndexChanged(
int) ), SLOT( slotProjectionWidgets(
int) ) );
53 connect( kcfg_XplanetBackground, SIGNAL( toggled(
bool) ), SLOT( slotBackgroundWidgets(
bool) ) );
78 kcfg_XplanetMarkerBoundsPath->setEnabled(
true );
80 kcfg_XplanetMarkerBoundsPath->setEnabled(
false );
82 groupBoxBackground->setEnabled(
false );
88 groupBoxBackground->setEnabled(
false );
94 void OpsXplanet::slotUpdateWidgets(
bool on ) {
95 kcfg_XplanetWaitValue->setEnabled( on );
96 textLabelXplanetSecondes->setEnabled( on );
99 void OpsXplanet::slotConfigFileWidgets(
bool on ) {
100 kcfg_XplanetConfigFilePath->setEnabled( on );
103 void OpsXplanet::slotStarmapFileWidgets(
bool on ) {
104 kcfg_XplanetStarmapPath->setEnabled( on );
107 void OpsXplanet::slotArcFileWidgets(
bool on ) {
108 kcfg_XplanetArcFilePath->setEnabled( on );
111 void OpsXplanet::slotLabelWidgets(
bool on ) {
112 kcfg_XplanetLabelLocalTime->setEnabled( on );
113 kcfg_XplanetLabelGMT->setEnabled( on );
114 textLabelXplanetLabelString->setEnabled( on );
115 kcfg_XplanetLabelString->setEnabled( on );
116 textLabelXplanetDateFormat->setEnabled( on );
117 kcfg_XplanetDateFormat->setEnabled( on );
118 textLabelXplanetFontSize->setEnabled( on );
119 kcfg_XplanetFontSize->setEnabled( on );
120 textLabelXplanetColor->setEnabled( on );
121 kcfg_XplanetColor->setEnabled( on );
122 textLabelLabelPos->setEnabled( on );
123 kcfg_XplanetLabelTL->setEnabled( on );
124 kcfg_XplanetLabelTR->setEnabled( on );
125 kcfg_XplanetLabelBR->setEnabled( on );
126 kcfg_XplanetLabelBL->setEnabled( on );
129 void OpsXplanet::slotMarkerFileWidgets(
bool on ) {
130 kcfg_XplanetMarkerFilePath->setEnabled( on );
131 kcfg_XplanetMarkerBounds->setEnabled( on );
132 if (kcfg_XplanetMarkerBounds->isChecked() )
133 kcfg_XplanetMarkerBoundsPath->setEnabled( on );
136 void OpsXplanet::slotMarkerBoundsWidgets(
bool on ) {
137 kcfg_XplanetMarkerBoundsPath->setEnabled( on );
140 void OpsXplanet::slotProjectionWidgets(
int index ) {
142 groupBoxBackground->setEnabled(
false );
144 groupBoxBackground->setEnabled(
true );
146 if( ! kcfg_XplanetBackground->isChecked() ) {
147 kcfg_XplanetBackgroundImage->setEnabled(
false );
148 kcfg_XplanetBackgroundImagePath->setEnabled(
false );
149 kcfg_XplanetBackgroundColor->setEnabled(
false );
150 kcfg_XplanetBackgroundColorValue->setEnabled(
false );
154 void OpsXplanet::slotBackgroundWidgets(
bool on ) {
155 kcfg_XplanetBackgroundImage->setEnabled( on );
156 kcfg_XplanetBackgroundImagePath->setEnabled( on );
157 kcfg_XplanetBackgroundColor->setEnabled( on );
158 kcfg_XplanetBackgroundColorValue->setEnabled( on );
161 #include "opsxplanet.moc"
static bool xplanetArcFile()
Get Arc file.
static bool xplanetMarkerBounds()
Get Write marker bounds.
This is the main window for KStars.
static bool xplanetMarkerFile()
Get Use marker file.
static bool xplanetWait()
Get Update view.
static bool xplanetConfigFile()
Get Config file.
i18nc("string from libindi, used in the config dialog","100x")
static bool xplanetLabel()
Get Show label.
static bool xplanetBackgroundImage()
Get Use background image.
static bool xplanetStarmap()
Get Star map.
static uint xplanetProjection()
Get Projection.