OSSP CVS Repository

ossp - Check-in [4081]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4081
Date: 2003-Feb-25 10:26:16 (local)
2003-Feb-25 09:26:16 (UTC)
User:ms
Branch:
Comment: Hook in alternate custom colours for windows users.
Tickets:
Inspections:
Files:
ossp-pkg/as/as-gui/as_panel.cpp      1.15 -> 1.16     4 inserted, 2 deleted
ossp-pkg/as/as-gui/as_panel.h      1.13 -> 1.14     4 inserted, 1 deleted

ossp-pkg/as/as-gui/as_panel.cpp 1.15 -> 1.16

--- as_panel.cpp 2003/02/21 15:04:04     1.15
+++ as_panel.cpp 2003/02/25 09:26:17     1.16
@@ -307,8 +307,10 @@
 //
 void Prefpanel::shadeLight(void)
 {
-    QColorDialog::setCustomColor(0, m_pLight->rgb());
-    QColorDialog::setCustomColor(1, m_pDark->rgb());
+    QColorDialog::setCustomColor(0, this->getRevlight()->rgb());
+    QColorDialog::setCustomColor(1, this->getRevdark()->rgb());
+    QColorDialog::setCustomColor(2, this->getAltlight()->rgb());
+    QColorDialog::setCustomColor(3, this->getAltdark()->rgb());
     QColor Colortemp = QColorDialog::getColor(*m_pLight);
     if (Colortemp.isValid()) {
         delete m_pLight;


ossp-pkg/as/as-gui/as_panel.h 1.13 -> 1.14

--- as_panel.h   2003/02/21 23:42:09     1.13
+++ as_panel.h   2003/02/25 09:26:16     1.14
@@ -64,7 +64,7 @@
 private:
     Preferences *m_pPanprefs;
     QColor *m_pLight, *m_pDark;
-    QColorGroup *m_pOrigcolours;
+    QColorGroup *m_pOrigcolours, *m_pAltcolours;
 
 public:
     QGroupBox *m_pGenbox, *m_pRembox, *m_pShadebox, *m_pThemebox;
@@ -117,6 +117,8 @@
     QColor *getDark(void)      {return m_pDark;};
     QColor *getRevlight(void)  {return (QColor *)&m_pOrigcolours->foreground();};
     QColor *getRevdark(void)   {return (QColor *)&m_pOrigcolours->background();};
+    QColor *getAltlight(void)  {return (QColor *)&m_pAltcolours->foreground();};
+    QColor *getAltdark(void)   {return (QColor *)&m_pAltcolours->background();};
 
     // Accessor set methods
     void setAccounts(const QString &kInstr)  {m_pAcctline->setText(kInstr);};
@@ -134,6 +136,7 @@
     void setLight(const QColor *pLight)           {m_pLight = (QColor *)pLight;};
     void setDark(const QColor *pDark)             {m_pDark = (QColor *)pDark;};
     void setOrigcolour(QColorGroup *pGroup)       {m_pOrigcolours = pGroup;};
+    void setAltcolour(QColorGroup *pGroup)        {m_pAltcolours  = pGroup;};
     void setCorbaon(const bool &kbEnable = true)  {
         m_pCorbaline->setEnabled(kbEnable);
         m_pCorbacheck->setChecked(kbEnable);

CVSTrac 2.0.1