KDE/kdeedu/kstars/kstars

View: New views
3 Messages — Rating Filter:   Alert me  

KDE/kdeedu/kstars/kstars

by Khudyakov Alexey :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

SVN commit 1046742 by khudyakov:

Apply patch from Lukas Middendorf

Make details dialog and calculator windows non-modal for improved usability
Fixes bug 210886

BUG: 210886
CCMAIL: kstars-devel@...

 M  +1 -1      kstars.cpp  
 M  +2 -0      kstars.h  
 M  +3 -3      kstarsactions.cpp  
 M  +3 -3      skymap.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/kstars.cpp #1046741:1046742
@@ -57,7 +57,7 @@
         AAVSODialog(0), findDialog(0), obsList(0),
         execute(0),
         avt(0), wut(0), skycal(0),
-        sb(0), pv(0), jmt(0), fm(0), indimenu(0), indidriver(0), indiseq(0),
+        sb(0), pv(0), jmt(0), fm(0), astrocalc(0), indimenu(0), indidriver(0), indiseq(0),
         DialogIsObsolete(false), StartClockRunning( clockrun ),
         StartDateString( startdate )
 {
--- trunk/KDE/kdeedu/kstars/kstars/kstars.h #1046741:1046742
@@ -43,6 +43,7 @@
 class AltVsTime;
 class LCGenerator;
 class WUTDialog;
+class AstroCalc;
 class SkyCalendar;
 class ScriptBuilder;
 class PlanetViewer;
@@ -669,6 +670,7 @@
     PlanetViewer *pv;
     JMoonTool *jmt;
     FlagManager *fm;
+    AstroCalc *astrocalc;
 
     INDIMenu *indimenu;
     INDIDriver *indidriver;
--- trunk/KDE/kdeedu/kstars/kstars/kstarsactions.cpp #1046741:1046742
@@ -177,9 +177,9 @@
 /** Major Dialog Window Actions **/
 
 void KStars::slotCalculator() {
-    QPointer<AstroCalc> astrocalc = new AstroCalc (this);
-    astrocalc->exec();
-    delete astrocalc;
+    if( ! astrocalc )
+        astrocalc = new AstroCalc (this);
+    astrocalc->show();
 }
 
 void KStars::slotWizard() {
--- trunk/KDE/kdeedu/kstars/kstars/skymap.cpp #1046741:1046742
@@ -646,9 +646,9 @@
         KMessageBox::sorry( this, i18n("No object selected."), i18n("Object Details") );
         return;
     }
-    QPointer<DetailDialog> detail = new DetailDialog( clickedObject(), data->ut(), data->geo(), KStars::Instance() );
-    detail->exec();
-    delete detail;
+    DetailDialog* detail = new DetailDialog( clickedObject(), data->ut(), data->geo(), KStars::Instance() );
+    detail->setAttribute(Qt::WA_DeleteOnClose);
+    detail->show();
 }
 
 void SkyMap::slotClockSlewing() {
_______________________________________________
Kstars-devel mailing list
Kstars-devel@...
https://mail.kde.org/mailman/listinfo/kstars-devel

Re: KDE/kdeedu/kstars/kstars

by Akarsh Simha-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Nov 09, 2009 at 03:48:39PM +0000, Alexey Khudyakov wrote:
> SVN commit 1046742 by khudyakov:
>
> Apply patch from Lukas Middendorf
>
> Make details dialog and calculator windows non-modal for improved usability
> Fixes bug 210886
>
> BUG: 210886
> CCMAIL: kstars-devel@...

Could someone ensure that the Planet calculator etc. work on separate
instances of KSPlanet and not the instances kept in
SolarSystemComposite?

Regards
Akarsh
_______________________________________________
Kstars-devel mailing list
Kstars-devel@...
https://mail.kde.org/mailman/listinfo/kstars-devel

Re: KDE/kdeedu/kstars/kstars

by Khudyakov Alexey :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

В сообщении от Вторник 10 ноября 2009 19:03:57 автор Akarsh Simha написал:

> On Mon, Nov 09, 2009 at 03:48:39PM +0000, Alexey Khudyakov wrote:
> > SVN commit 1046742 by khudyakov:
> >
> > Apply patch from Lukas Middendorf
> >
> > Make details dialog and calculator windows non-modal for improved
> > usability Fixes bug 210886
> >
> > BUG: 210886
> > CCMAIL: kstars-devel@...
>
> Could someone ensure that the Planet calculator etc. work on separate
> instances of KSPlanet and not the instances kept in
> SolarSystemComposite?
>
You mean that two DetailsDialogs won't clash over same KSPlanet?
_______________________________________________
Kstars-devel mailing list
Kstars-devel@...
https://mail.kde.org/mailman/listinfo/kstars-devel