OSSP CVS Repository

ossp - Difference in ossp-pkg/as/as-gui/as_slot.cpp versions 1.129 and 1.130
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/as/as-gui/as_slot.cpp 1.129 -> 1.130

--- as_slot.cpp  2003/02/20 16:46:38     1.129
+++ as_slot.cpp  2003/02/21 10:11:36     1.130
@@ -1179,6 +1179,19 @@
         break;
     }
 
+    // Set default colours
+    int nRed, nGreen, nBlue;
+    nRed   = m_pPrefs->getNumber(TITRAQ_PREFLIGHTRED, TITRAQ_DEFLIGHTRED);
+    nGreen = m_pPrefs->getNumber(TITRAQ_PREFLIGHTGREEN, TITRAQ_DEFLIGHTGREEN);
+    nBlue  = m_pPrefs->getNumber(TITRAQ_PREFLIGHTBLUE, TITRAQ_DEFLIGHTBLUE);
+    const QColor Lightshade = QColor(nRed, nGreen, nBlue);
+    pUserpanel->setLight(&Lightshade);
+    nRed   = m_pPrefs->getNumber(TITRAQ_PREFDARKRED, TITRAQ_DEFDARKRED);
+    nGreen = m_pPrefs->getNumber(TITRAQ_PREFDARKGREEN, TITRAQ_DEFDARKGREEN);
+    nBlue  = m_pPrefs->getNumber(TITRAQ_PREFDARKBLUE, TITRAQ_DEFDARKBLUE);
+    const QColor Darkshade = QColor(nRed, nGreen, nBlue);
+    pUserpanel->setDark(&Darkshade);
+
     // Modal panel handler
     if (pUserpanel->exec() == QDialog::Accepted)
         this->applyPrefs(pUserpanel);
@@ -1905,6 +1918,12 @@
     m_pPrefs->setBool(TITRAQ_PREFSOAPON, pPrefpanel->getSoapon());
     m_pPrefs->setBool(TITRAQ_PREFBAKON, pPrefpanel->getBackon());
     m_pPrefs->setBool(TITRAQ_PREFEXTENDON, pPrefpanel->getExtendon());
+    m_pPrefs->setNumber(TITRAQ_PREFLIGHTRED, pPrefpanel->getLight()->red());
+    m_pPrefs->setNumber(TITRAQ_PREFLIGHTGREEN, pPrefpanel->getLight()->green());
+    m_pPrefs->setNumber(TITRAQ_PREFLIGHTBLUE, pPrefpanel->getLight()->blue());
+    m_pPrefs->setNumber(TITRAQ_PREFDARKRED, pPrefpanel->getDark()->red());
+    m_pPrefs->setNumber(TITRAQ_PREFDARKGREEN, pPrefpanel->getDark()->green());
+    m_pPrefs->setNumber(TITRAQ_PREFDARKBLUE, pPrefpanel->getDark()->blue());
 
     // Dim the lights if no RPC transports are available
     if (this->isOpen())

CVSTrac 2.0.1