OSSP CVS Repository

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

Check-in Number: 4024
Date: 2003-Feb-12 17:31:43 (local)
2003-Feb-12 16:31:43 (UTC)
User:ms
Branch:
Comment: Added accessors to panel class.
Tickets:
Inspections:
Files:
ossp-pkg/as/as-gui/as_panel.cpp      1.3 -> 1.4     2 inserted, 17 deleted
ossp-pkg/as/as-gui/as_panel.h      1.3 -> 1.4     31 inserted, 14 deleted

ossp-pkg/as/as-gui/as_panel.cpp 1.3 -> 1.4

--- as_panel.cpp 2003/02/11 14:19:57     1.3
+++ as_panel.cpp 2003/02/12 16:31:43     1.4
@@ -31,21 +31,6 @@
 
 #include <vector>
 
-#include <qvariant.h>
-#include <qbuttongroup.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qradiobutton.h>
-#include <qcheckbox.h>
-#include <qtabwidget.h>
-#include <qwidget.h>
-#include <qlayout.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qstylefactory.h>
-#include <qlayout.h>
-
 #include "as_panel.h"
 #include "as_generic.h"
 #include "as_const.h"
@@ -237,7 +222,7 @@
 {
     this->setCaption(tr("AS Applicate Preferences", "Personal preferences are persistent across sessions"));
 
-    m_pTabselect->changeTab(m_pBoolpage, tr("Styles"));
+    m_pTabselect->changeTab(m_pBoolpage, tr("General"));
     m_pTabselect->changeTab(m_pGeneralpage, tr("Paths"));
     m_pTabselect->changeTab(m_pRemotepage, tr("Remote"));
 
@@ -281,7 +266,7 @@
 //    QToolTip::add(m_pStylegroup, tr("Tooltip for Stylebutton", "Comment for toolTip Stylebutton"));
 //    QWhatsThis::add(m_pStylegroup, tr("Whatsthis for Stylebutton", "Comment for whatsThis Stylebuttons"));
 
-    m_pSwitchgroup->setTitle(tr("Yes or no options", "Comment for Switchbox"));
+    m_pSwitchgroup->setTitle(tr("Other options", "Comment for Switchbox"));
 //    QToolTip::add(m_pSwitchgroup, tr("Tooltip for Switchbox", "Comment for toolTip Switchbox"));
 //    QWhatsThis::add(m_pSwitchgroup, tr("Whatsthis for Switchbutton", "Comment for whatsThis Switchbox"));
 }


ossp-pkg/as/as-gui/as_panel.h 1.3 -> 1.4

--- as_panel.h   2003/02/11 14:19:57     1.3
+++ as_panel.h   2003/02/12 16:31:43     1.4
@@ -35,21 +35,21 @@
 #include <qvariant.h>
 #include <qdialog.h>
 
+#include <qvariant.h>
+#include <qbuttongroup.h>
+#include <qlabel.h>
+#include <qlineedit.h>
+#include <qpushbutton.h>
+#include <qradiobutton.h>
+#include <qcheckbox.h>
+#include <qtabwidget.h>
+#include <qwidget.h>
+#include <qlayout.h>
+#include <qtooltip.h>
+#include <qwhatsthis.h>
+#include <qstylefactory.h>
+#include <qlayout.h>
 
-// Forward class definitions to avoid including qt headers,
-// rather include them in the implementation file
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class QButtonGroup;
-class QLabel;
-class QLineEdit;
-class QPushButton;
-class QRadioButton;
-class QCheckBox;
-class QGroupBox;
-class QTabWidget;
-class QWidget;
 
 class Prefpanel : public QDialog
 {
@@ -85,6 +85,23 @@
     QButtonGroup *m_pStylegroup, *m_pSwitchgroup;
     QCheckBox *m_pBackupcheck, *m_pExtendcheck;
 
+public:
+    // Accessor get methods
+    QString getAccounts(void)  {return (m_pAcctline->text());};
+    QString getEvents(void)    {return (m_pEventline->text());};
+    QString getUser(void)      {return (m_pUserline->text());};
+    QString getHome(void)      {return (m_pCorbaline->text());};
+    QString getCorbahost(void) {return (m_pSoapline->text());};
+    QString getSoaphost(void)  {return (m_pHomeline->text());};
+
+    // Accessor set methods
+    void setAccounts(const QString &Instr)  {m_pAcctline->setText(Instr);};
+    void setEvents(const QString &Instr)    {m_pEventline->setText(Instr);};
+    void setUser(const QString &Instr)      {m_pUserline->setText(Instr);};
+    void setHome(const QString &Instr)      {m_pHomeline->setText(Instr);};
+    void setCorbahost(const QString &Instr) {m_pCorbaline->setText(Instr);};
+    void setSoaphost(const QString &Instr)  {m_pSoapline->setText(Instr);};
+
 protected slots:
     virtual void textChange(void);
     void apply(void);

CVSTrac 2.0.1