Merge lp:~daggerstab/stellarium/printsky into lp:~peppujols/stellarium/printsky

Proposed by Bogdan Marinov
Status: Merged
Merged at revision: 4712
Proposed branch: lp:~daggerstab/stellarium/printsky
Merge into: lp:~peppujols/stellarium/printsky
Diff against target: 590 lines (+264/-163)
6 files modified
plugins/PrintSky/PrintSky.qrc (+3/-1)
plugins/PrintSky/nightStyle.css (+31/-0)
plugins/PrintSky/normalStyle.css (+31/-0)
plugins/PrintSky/src/PrintSky.cpp (+3/-0)
plugins/PrintSky/src/gui/PrintSkyDialog.cpp (+28/-20)
plugins/PrintSky/src/gui/printskyDialog.ui (+168/-142)
To merge this branch: bzr merge lp:~daggerstab/stellarium/printsky
Reviewer Review Type Date Requested Status
Pep Pujols Approve
Review via email: mp+40229@code.launchpad.net

Description of the change

These are the changes I had made to the PrintSky's code when I included it in the second experimental build, with some additional modifications.

Note that most of this is just quick fixes to make the plug-in functional. Some of the problems need to be addressed more deeply. Please see the comments in the code.

To post a comment you must log in.
Revision history for this message
Pep Pujols (peppujols) wrote :

> Bogdan Marinov has proposed merging lp:~daggerstab/stellarium/printsky into lp:~peppujols/stellarium/printsky.
>
> Requested reviews:
> Pep Pujols (peppujols)
>
>
> These are the changes I had made to the PrintSky's code when I included it in the second experimental build, with some additional modifications.
>
> Note that most of this is just quick fixes to make the plug-in functional. Some of the problems need to be addressed more deeply. Please see the comments in the code.

Good job Bogdan.

I will look the code and merge your branch in few days.

Pep.

Revision history for this message
Pep Pujols (peppujols) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'plugins/PrintSky/PrintSky.qrc'
--- plugins/PrintSky/PrintSky.qrc 2010-07-02 17:07:11 +0000
+++ plugins/PrintSky/PrintSky.qrc 2010-11-05 20:04:43 +0000
@@ -1,4 +1,6 @@
1<RCC>1<RCC>
2 <qresource prefix="printSky" >2 <qresource prefix="printsky">
3 <file>nightStyle.css</file>
4 <file>normalStyle.css</file>
3 </qresource>5 </qresource>
4</RCC>6</RCC>
57
=== added file 'plugins/PrintSky/nightStyle.css'
--- plugins/PrintSky/nightStyle.css 1970-01-01 00:00:00 +0000
+++ plugins/PrintSky/nightStyle.css 2010-11-05 20:04:43 +0000
@@ -0,0 +1,31 @@
1QTabBar {
2 border: none;
3 margin: 0px;
4 padding: 0px;
5 font-weight: bold;
6 color: rgb(120, 0, 0);
7 background-color: rgb(22, 0, 0);
8 font-size: 14px;
9}
10
11QTabBar::tab {
12 border: 0px;
13 margin: 0px;
14 padding: 4px 1ex;
15 min-height: 28px;
16 /*font-size: 14px; <-- Causes text being cut by the frame*/
17}
18
19QTabBar::tab:selected {
20 border: none;
21 margin: 0px;
22 border-top-left-radius: 10px;
23 border-top-right-radius: 10px;
24 color: rgb(220, 0, 0);
25 background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(68, 0, 0), stop: 1 rgb(86, 0, 0));
26}
27
28QTabWidget::pane {
29 margin-top: 0px;
30 border-top: none;
31}
032
=== added file 'plugins/PrintSky/normalStyle.css'
--- plugins/PrintSky/normalStyle.css 1970-01-01 00:00:00 +0000
+++ plugins/PrintSky/normalStyle.css 2010-11-05 20:04:43 +0000
@@ -0,0 +1,31 @@
1QTabBar {
2 border: none;
3 margin: 0px;
4 padding: 0px;
5 font-weight: bold;
6 color: rgb(170, 173, 164);
7 background-color: rgb(31, 31, 31);
8 font-size: 14px;
9}
10
11QTabBar::tab {
12 border: 0px;
13 margin: 0px;
14 padding: 4px 1ex;
15 min-height: 28px;
16 /*font-size: 14px; <-- Causes text being cut by the frame*/
17}
18
19QTabBar::tab:selected {
20 border: none;
21 margin: 0px;
22 border-top-left-radius: 10px;
23 border-top-right-radius: 10px;
24 color: rgb(220, 223, 214);
25 background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(68, 69, 72), stop: 1 rgb(86, 87, 90));
26}
27
28QTabWidget::pane {
29 margin-top: 0px;
30 border-top: none;
31}
032
=== modified file 'plugins/PrintSky/src/PrintSky.cpp'
--- plugins/PrintSky/src/PrintSky.cpp 2010-07-02 17:07:11 +0000
+++ plugins/PrintSky/src/PrintSky.cpp 2010-11-05 20:04:43 +0000
@@ -66,6 +66,9 @@
6666
67 try67 try
68 {68 {
69 //Make sure that "/modules/PrintSky" exists
70 StelFileMgr::makeSureDirExistsAndIsWritable(StelFileMgr::getUserDir() + "/modules/PrintSky/");
71
69 StelFileMgr::Flags flags = (StelFileMgr::Flags)(StelFileMgr::Directory|StelFileMgr::Writable);72 StelFileMgr::Flags flags = (StelFileMgr::Flags)(StelFileMgr::Directory|StelFileMgr::Writable);
70 QString printskyIniPath = StelFileMgr::findFile("modules/PrintSky/", flags) + "printsky.ini";73 QString printskyIniPath = StelFileMgr::findFile("modules/PrintSky/", flags) + "printsky.ini";
7174
7275
=== modified file 'plugins/PrintSky/src/gui/PrintSkyDialog.cpp'
--- plugins/PrintSky/src/gui/PrintSkyDialog.cpp 2010-07-02 17:07:11 +0000
+++ plugins/PrintSky/src/gui/PrintSkyDialog.cpp 2010-11-05 20:04:43 +0000
@@ -83,7 +83,7 @@
83 Q_ASSERT(gui);83 Q_ASSERT(gui);
84 const StelStyle pluginStyle = GETSTELMODULE(PrintSky)->getModuleStyleSheet(gui->getStelStyle());84 const StelStyle pluginStyle = GETSTELMODULE(PrintSky)->getModuleStyleSheet(gui->getStelStyle());
85 dialog->setStyleSheet(pluginStyle.qtStyleSheet);85 dialog->setStyleSheet(pluginStyle.qtStyleSheet);
86 ui->textBrowser->document()->setDefaultStyleSheet(QString(pluginStyle.htmlStyleSheet));86 //ui->textBrowser->document()->setDefaultStyleSheet(QString(pluginStyle.htmlStyleSheet));
87 }87 }
88}88}
8989
@@ -313,18 +313,16 @@
313313
314 //Initialize the style314 //Initialize the style
315 updateStyle();315 updateStyle();
316
317
318}316}
319317
320//! Print report on a preview window318//! Print report on a preview window
321void PrintSkyDialog::previewSky()319void PrintSkyDialog::previewSky()
322{320{
323 currentVisibilityGui=gui->getVisible();321 currentVisibilityGui = gui->getVisible();
324 gui->setVisible(false);322 gui->setVisible(false);
325 dialog->setVisible(false);323 dialog->setVisible(false);
326324
327 outputOption=true;325 outputOption = true;
328326
329 QTimer::singleShot(50, this, SLOT(executePrinterOutputOption()));327 QTimer::singleShot(50, this, SLOT(executePrinterOutputOption()));
330}328}
@@ -361,7 +359,13 @@
361 StelLocation locationData=core->getNavigator()->getCurrentLocation();359 StelLocation locationData=core->getNavigator()->getCurrentLocation();
362 double jd = core->getNavigator()->getJDay();360 double jd = core->getNavigator()->getJDay();
363361
364 painter.setFont(QFont("DejaVu Sans", 10));362 QFont font("DejaVu Sans", 10, QFont::Normal);
363 painter.setFont(font);
364 qDebug() << "PrintSky: printer debugging information:";
365 qDebug() << "Current printer resolution:" << printer->resolution();
366 qDebug() << "Supported printer resolutions:" << printer->supportedResolutions();
367 qDebug() << "Page size (size index, 0-30)" << printer->paperSize();
368 //For the paper size index, see http://doc.qt.nokia.com/qprinter.html#PaperSize-enum
365369
366 if (printDataOption)370 if (printDataOption)
367 {371 {
@@ -372,14 +376,12 @@
372 // painter.drawRect(surfaceData);376 // painter.drawRect(surfaceData);
373377
374378
375 painter.drawText(surfaceData.adjusted(0, 0, 0, -200), Qt::AlignCenter, "STELLARIUM GENERAL DATA");379 painter.drawText(surfaceData.adjusted(0, 0, 0, -200), Qt::AlignCenter, "CHART INFORMATION");
376
377 QString location="Location: ";
378380
379 QString printLatitude=StelUtils::radToDmsStr((std::fabs(locationData.latitude)/180.)*M_PI);381 QString printLatitude=StelUtils::radToDmsStr((std::fabs(locationData.latitude)/180.)*M_PI);
380 QString printLongitude=StelUtils::radToDmsStr((std::fabs(locationData.longitude)/180.)*M_PI);382 QString printLongitude=StelUtils::radToDmsStr((std::fabs(locationData.longitude)/180.)*M_PI);
381383
382 location+=QString("%1\t%2\t%3\t%4\t%5\t%6m")384 QString location = QString("Location: %1\t%2\t%3\t%4\t%5\t%6m")
383 .arg(locationData.name)385 .arg(locationData.name)
384 .arg(locationData.country)386 .arg(locationData.country)
385 .arg(locationData.planetName)387 .arg(locationData.planetName)
@@ -396,7 +398,7 @@
396398
397 QString str;399 QString str;
398 QTextStream wos(&str);400 QTextStream wos(&str);
399 wos << "FOV " << qSetRealNumberPrecision(3) << core->getMovementMgr()->getCurrentFov() << QChar(0x00B0);401 wos << "FOV: " << qSetRealNumberPrecision(3) << core->getMovementMgr()->getCurrentFov() << QChar(0x00B0);
400 painter.drawText(surfaceData.adjusted(50, 150, 0, 0), Qt::AlignLeft, *wos.string());402 painter.drawText(surfaceData.adjusted(50, 150, 0, 0), Qt::AlignLeft, *wos.string());
401403
402 painter.drawText(surfaceData.adjusted(surfaceData.width()-700, 0, 0, 0), Qt::AlignLeft, "Radius-magnitude relation");404 painter.drawText(surfaceData.adjusted(surfaceData.width()-700, 0, 0, 0), Qt::AlignLeft, "Radius-magnitude relation");
@@ -423,15 +425,15 @@
423 if (printSSEphemeridesOption)425 if (printSSEphemeridesOption)
424 {426 {
425 printer->newPage();427 printer->newPage();
426 painter.drawText(0, 0, printer->paperRect().width(), 50, Qt::AlignCenter, "STELLARIUM SOLAR SYSTEM EPHEMERIDES");428 painter.drawText(0, 0, printer->paperRect().width(), 50, Qt::AlignCenter, "SOLAR SYSTEM EPHEMERIDES");
427 painter.drawText(QRect(50, 150, 300, 50), Qt::AlignCenter, "Name");429 painter.drawText(QRect(50, 150, 300, 50), Qt::AlignCenter, "Name");
428 painter.drawText(QRect(400, 150, 300, 50), Qt::AlignCenter, "A.R.");430 painter.drawText(QRect(400, 150, 300, 50), Qt::AlignCenter, "RA");
429 painter.drawText(QRect(700, 150, 300, 50), Qt::AlignCenter, "DEC.");431 painter.drawText(QRect(700, 150, 300, 50), Qt::AlignCenter, "Dec");
430 painter.drawText(QRect(950, 100, 750, 50), Qt::AlignCenter, "Local Time");432 painter.drawText(QRect(950, 100, 750, 50), Qt::AlignCenter, "Local Time");
431 painter.drawText(QRect(950, 150, 250, 50), Qt::AlignCenter, "Rising");433 painter.drawText(QRect(950, 150, 250, 50), Qt::AlignCenter, "Rising");
432 painter.drawText(QRect(1200, 150, 250, 50), Qt::AlignCenter, "Transit");434 painter.drawText(QRect(1200, 150, 250, 50), Qt::AlignCenter, "Transit");
433 painter.drawText(QRect(1450, 150, 250, 50), Qt::AlignCenter, "Setting");435 painter.drawText(QRect(1450, 150, 250, 50), Qt::AlignCenter, "Setting");
434 painter.drawText(QRect(1700, 150, 300, 50), Qt::AlignCenter, "Distance (UA)");436 painter.drawText(QRect(1700, 150, 300, 50), Qt::AlignCenter, "Distance (AU)");
435 painter.drawText(QRect(2000, 150, 300, 50), Qt::AlignCenter, "Ap.Magnitude");437 painter.drawText(QRect(2000, 150, 300, 50), Qt::AlignCenter, "Ap.Magnitude");
436438
437 SolarSystem* ssmgr = GETSTELMODULE(SolarSystem);439 SolarSystem* ssmgr = GETSTELMODULE(SolarSystem);
@@ -442,6 +444,9 @@
442 PlanetP pHome=ssmgr->searchByEnglishName(locationData.planetName);444 PlanetP pHome=ssmgr->searchByEnglishName(locationData.planetName);
443 double standardSideralTime=pHome->getSiderealTime(((int) jd)+0.5)*M_PI/180.;445 double standardSideralTime=pHome->getSiderealTime(((int) jd)+0.5)*M_PI/180.;
444446
447 //After the introduction of the Comets and Asteroids plug-in,
448 //there will be *lots* of planet names. At the very least,
449 //this needs a mechanism for creating page breaks.
445 QStringList allBodiesNames=ssmgr->getAllPlanetEnglishNames();450 QStringList allBodiesNames=ssmgr->getAllPlanetEnglishNames();
446 allBodiesNames.sort();451 allBodiesNames.sort();
447 for (int iBodyName=1, yPos=200; iBodyName<=allBodiesNames.count(); ++iBodyName)452 for (int iBodyName=1, yPos=200; iBodyName<=allBodiesNames.count(); ++iBodyName)
@@ -538,19 +543,23 @@
538 }543 }
539544
540545
541 QPrinter printer(QPrinter::HighResolution);546 //QPrinter printer(QPrinter::HighResolution);
547 QPrinter printer(QPrinter::ScreenResolution);
548 printer.setResolution(300);
542 printer.setDocName("STELLARIUM REPORT");549 printer.setDocName("STELLARIUM REPORT");
543 printer.setOrientation((orientationOption=="Portrait"? QPrinter::Portrait: QPrinter::Landscape));550 printer.setOrientation((orientationOption=="Portrait"? QPrinter::Portrait: QPrinter::Landscape));
544551
545 if (outputOption)552 if (outputOption)
546 {553 {
547 QPrintPreviewDialog oPrintPreviewDialog(&printer, &StelMainGraphicsView::getInstance());554 //QPrintPreviewDialog oPrintPreviewDialog(&printer, &StelMainGraphicsView::getInstance());
555 QPrintPreviewDialog oPrintPreviewDialog(&printer);
548 connect(&oPrintPreviewDialog, SIGNAL(paintRequested(QPrinter *)), this, SLOT(printDataSky(QPrinter *)));556 connect(&oPrintPreviewDialog, SIGNAL(paintRequested(QPrinter *)), this, SLOT(printDataSky(QPrinter *)));
549 oPrintPreviewDialog.exec();557 oPrintPreviewDialog.exec();
550 }558 }
551 else559 else
552 {560 {
553 QPrintDialog dialogPrinter(&printer, &StelMainGraphicsView::getInstance());561 //QPrintDialog dialogPrinter(&printer, &StelMainGraphicsView::getInstance());
562 QPrintDialog dialogPrinter(&printer);
554 if (dialogPrinter.exec() == QDialog::Accepted)563 if (dialogPrinter.exec() == QDialog::Accepted)
555 printDataSky(&printer);564 printDataSky(&printer);
556 }565 }
@@ -563,8 +572,7 @@
563572
564void PrintSkyDialog::enableOutputOptions(bool enable)573void PrintSkyDialog::enableOutputOptions(bool enable)
565{574{
566 ui->previewSkyPushButton->setEnabled(enable);575 ui->buttonsFrame->setVisible(enable);
567 ui->printSkyPushButton->setEnabled(enable);
568}576}
569577
570578
571579
=== modified file 'plugins/PrintSky/src/gui/printskyDialog.ui'
--- plugins/PrintSky/src/gui/printskyDialog.ui 2010-07-02 17:07:11 +0000
+++ plugins/PrintSky/src/gui/printskyDialog.ui 2010-11-05 20:04:43 +0000
@@ -6,8 +6,8 @@
6 <rect>6 <rect>
7 <x>0</x>7 <x>0</x>
8 <y>0</y>8 <y>0</y>
9 <width>513</width>9 <width>500</width>
10 <height>342</height>10 <height>300</height>
11 </rect>11 </rect>
12 </property>12 </property>
13 <property name="sizePolicy">13 <property name="sizePolicy">
@@ -19,12 +19,9 @@
19 <property name="minimumSize">19 <property name="minimumSize">
20 <size>20 <size>
21 <width>300</width>21 <width>300</width>
22 <height>320</height>22 <height>300</height>
23 </size>23 </size>
24 </property>24 </property>
25 <property name="windowTitle">
26 <string>Form</string>
27 </property>
28 <layout class="QVBoxLayout" name="verticalLayout_2">25 <layout class="QVBoxLayout" name="verticalLayout_2">
29 <property name="spacing">26 <property name="spacing">
30 <number>0</number>27 <number>0</number>
@@ -156,149 +153,166 @@
156 <attribute name="title">153 <attribute name="title">
157 <string>General</string>154 <string>General</string>
158 </attribute>155 </attribute>
159 <widget class="QWidget" name="layoutWidget">156 <layout class="QVBoxLayout" name="verticalLayout_3">
160 <property name="geometry">157 <property name="spacing">
161 <rect>158 <number>0</number>
162 <x>170</x>159 </property>
163 <y>180</y>160 <property name="margin">
164 <width>158</width>161 <number>0</number>
165 <height>25</height>162 </property>
166 </rect>163 <item>
167 </property>164 <widget class="QGroupBox" name="groupBox">
168 <layout class="QHBoxLayout" name="horizontalLayout">165 <property name="title">
169 <item>166 <string>Options</string>
170 <widget class="QPushButton" name="previewSkyPushButton">167 </property>
171 <property name="text">168 <layout class="QGridLayout" name="gridLayout_2">
172 <string>Preview</string>169 <property name="margin">
173 </property>170 <number>0</number>
174 </widget>171 </property>
175 </item>172 <item row="0" column="0" colspan="2">
176 <item>173 <layout class="QVBoxLayout" name="verticalLayout">
177 <widget class="QPushButton" name="printSkyPushButton">174 <item>
178 <property name="text">175 <widget class="QCheckBox" name="invertColorsCheckBox">
179 <string>Print</string>176 <property name="text">
180 </property>177 <string>Invert colors</string>
181 </widget>178 </property>
182 </item>179 </widget>
183 </layout>180 </item>
184 </widget>181 <item>
185 <widget class="QGroupBox" name="orientationGroupBox">182 <widget class="QCheckBox" name="scaleToFitCheckBox">
186 <property name="geometry">183 <property name="text">
187 <rect>184 <string>Scale to fit</string>
188 <x>270</x>185 </property>
189 <y>10</y>186 </widget>
190 <width>181</width>187 </item>
191 <height>110</height>188 <item>
192 </rect>189 <widget class="QCheckBox" name="printDataCheckBox">
193 </property>190 <property name="text">
194 <property name="title">191 <string>Print scene information</string>
195 <string>Orientation</string>192 </property>
196 </property>193 </widget>
197 <property name="alignment">194 </item>
198 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>195 <item>
199 </property>196 <widget class="QCheckBox" name="printSSEphemeridesCheckBox">
200 <widget class="QRadioButton" name="orientationPortraitRadioButton">197 <property name="text">
201 <property name="geometry">198 <string>Print Solar System ephemerides</string>
202 <rect>199 </property>
203 <x>20</x>200 </widget>
204 <y>44</y>201 </item>
205 <width>131</width>202 </layout>
206 <height>17</height>203 </item>
207 </rect>204 <item row="0" column="2">
208 </property>205 <widget class="QGroupBox" name="orientationGroupBox">
209 <property name="text">206 <property name="title">
210 <string>Portrait</string>207 <string>Orientation</string>
211 </property>208 </property>
212 <property name="checked">209 <layout class="QVBoxLayout" name="verticalLayout_5">
213 <bool>true</bool>210 <property name="margin">
214 </property>211 <number>0</number>
215 </widget>212 </property>
216 <widget class="QRadioButton" name="orientationLandscapeRadioButton">213 <item>
217 <property name="geometry">214 <widget class="QRadioButton" name="orientationPortraitRadioButton">
218 <rect>215 <property name="text">
219 <x>20</x>216 <string>Portrait</string>
220 <y>70</y>217 </property>
221 <width>131</width>218 <property name="checked">
222 <height>17</height>219 <bool>true</bool>
223 </rect>220 </property>
224 </property>221 </widget>
225 <property name="text">222 </item>
226 <string>Landscape</string>223 <item>
227 </property>224 <widget class="QRadioButton" name="orientationLandscapeRadioButton">
228 </widget>225 <property name="text">
229 </widget>226 <string>Landscape</string>
230 <widget class="QWidget" name="layoutWidget">227 </property>
231 <property name="geometry">228 </widget>
232 <rect>229 </item>
233 <x>18</x>230 </layout>
234 <y>18</y>231 </widget>
235 <width>251</width>232 </item>
236 <height>88</height>233 <item row="1" column="0" colspan="3">
237 </rect>234 <widget class="QFrame" name="buttonsFrame">
238 </property>235 <layout class="QHBoxLayout" name="horizontalLayout">
239 <layout class="QVBoxLayout" name="verticalLayout">236 <item>
240 <item>237 <widget class="QPushButton" name="previewSkyPushButton">
241 <widget class="QCheckBox" name="invertColorsCheckBox">238 <property name="text">
242 <property name="text">239 <string>Preview</string>
243 <string>Invert colors</string>240 </property>
244 </property>241 </widget>
245 </widget>242 </item>
246 </item>243 <item>
247 <item>244 <widget class="QPushButton" name="printSkyPushButton">
248 <widget class="QCheckBox" name="scaleToFitCheckBox">245 <property name="text">
249 <property name="text">246 <string>Print</string>
250 <string>Scale to fit</string>247 </property>
251 </property>248 </widget>
252 </widget>249 </item>
253 </item>250 </layout>
254 <item>251 </widget>
255 <widget class="QCheckBox" name="printDataCheckBox">252 </item>
256 <property name="text">253 </layout>
257 <string>Print general data</string>254 </widget>
258 </property>255 </item>
259 </widget>256 <item>
260 </item>257 <spacer name="verticalSpacer">
261 <item>258 <property name="orientation">
262 <widget class="QCheckBox" name="printSSEphemeridesCheckBox">259 <enum>Qt::Vertical</enum>
263 <property name="text">260 </property>
264 <string>Print Solar System ephemerides</string>261 <property name="sizeHint" stdset="0">
265 </property>262 <size>
266 </widget>263 <width>20</width>
267 </item>264 <height>40</height>
268 </layout>265 </size>
269 </widget>266 </property>
267 </spacer>
268 </item>
269 </layout>
270 </widget>270 </widget>
271 <widget class="QWidget" name="About">271 <widget class="QWidget" name="About">
272 <attribute name="title">272 <attribute name="title">
273 <string>About</string>273 <string>About</string>
274 </attribute>274 </attribute>
275 <layout class="QGridLayout" name="gridLayout">275 <layout class="QGridLayout" name="gridLayout">
276 <property name="leftMargin">276 <item row="1" column="0">
277 <number>12</number>277 <widget class="QLabel" name="labelAbout">
278 </property>278 <property name="text">
279 <property name="topMargin">279 <string>This plugin allows the user to preview and print the current screen and some aditional data as the current location, the screen time adding the GMT difference, and also a relation radius magnitude as a field reference.
280 <number>0</number>280
281 </property>281In a optional second page you can get some Solar System ephemerides.
282 <property name="rightMargin">282
283 <number>12</number>283Use Ctrl+P to open the print window.</string>
284 </property>284 </property>
285 <property name="bottomMargin">285 <property name="textFormat">
286 <number>12</number>286 <enum>Qt::AutoText</enum>
287 </property>287 </property>
288 <property name="alignment">
289 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
290 </property>
291 <property name="wordWrap">
292 <bool>true</bool>
293 </property>
294 </widget>
295 </item>
296 <item row="2" column="0">
297 <spacer name="verticalSpacer_2">
298 <property name="orientation">
299 <enum>Qt::Vertical</enum>
300 </property>
301 <property name="sizeHint" stdset="0">
302 <size>
303 <width>20</width>
304 <height>40</height>
305 </size>
306 </property>
307 </spacer>
308 </item>
288 <item row="0" column="0">309 <item row="0" column="0">
289 <widget class="QTextBrowser" name="textBrowser">310 <widget class="QLabel" name="label">
290 <property name="html">311 <property name="text">
291 <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;312 <string>Author: &lt;a href=&quot;mailto:maslarocaxica@gmail.com&quot;&gt;Pep Pujols&lt;/a&gt; (with fixes by Bogdan Marinov)</string>
292&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;313 </property>
293p, li { white-space: pre-wrap; }314 <property name="openExternalLinks">
294&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;&quot;&gt;315 <bool>true</bool>
295&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Lucida Grande'; font-size:13pt;&quot;&gt;Author: &lt;/span&gt;&lt;a href=&quot;maslarocaxica@gmail.com&quot;&gt;&lt;span style=&quot; font-size:12pt; text-decoration: underline; color:#0000ff;&quot;&gt;Pep Pujols&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
296&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:30px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Lucida Grande'; font-size:13pt;&quot;&gt;&lt;/p&gt;
297&lt;p align=&quot;justify&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:30px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Lucida Grande'; font-size:13pt;&quot;&gt;This plugin allow the user preview and print the current screen and some aditional data as the current location, the screen time adding the GMT difference, and also a relation radius magnitude as a field reference.&lt;/span&gt;&lt;/p&gt;
298&lt;p align=&quot;justify&quot; style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:30px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Lucida Grande'; font-size:13pt;&quot;&gt;&lt;/p&gt;
299&lt;p align=&quot;justify&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:30px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Lucida Grande'; font-size:13pt;&quot;&gt;In a optional second page you can get some Solar System ephemerides.&lt;/span&gt;&lt;/p&gt;
300&lt;p align=&quot;justify&quot; style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:30px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Lucida Grande'; font-size:13pt;&quot;&gt;&lt;/p&gt;
301&lt;p align=&quot;justify&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:30px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Lucida Grande'; font-size:13pt;&quot;&gt;Use the key Ctrl-P to activate the print dialog.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
302 </property>316 </property>
303 </widget>317 </widget>
304 </item>318 </item>
@@ -319,6 +333,18 @@
319 <container>1</container>333 <container>1</container>
320 </customwidget>334 </customwidget>
321 </customwidgets>335 </customwidgets>
336 <tabstops>
337 <tabstop>Tabs</tabstop>
338 <tabstop>invertColorsCheckBox</tabstop>
339 <tabstop>scaleToFitCheckBox</tabstop>
340 <tabstop>printDataCheckBox</tabstop>
341 <tabstop>printSSEphemeridesCheckBox</tabstop>
342 <tabstop>orientationPortraitRadioButton</tabstop>
343 <tabstop>orientationLandscapeRadioButton</tabstop>
344 <tabstop>previewSkyPushButton</tabstop>
345 <tabstop>printSkyPushButton</tabstop>
346 <tabstop>labelAbout</tabstop>
347 </tabstops>
322 <resources/>348 <resources/>
323 <connections/>349 <connections/>
324</ui>350</ui>

Subscribers

People subscribed via source and target branches

to all changes: