summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/Prefs.h
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-reader/Prefs.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/Prefs.h75
1 files changed, 60 insertions, 15 deletions
diff --git a/noncore/apps/opie-reader/Prefs.h b/noncore/apps/opie-reader/Prefs.h
index cf12b70..103484e 100644
--- a/noncore/apps/opie-reader/Prefs.h
+++ b/noncore/apps/opie-reader/Prefs.h
@@ -63,2 +63,4 @@ public:
// QCheckBox* Negative;
+ QCheckBox* InlineTables;
+ QCheckBox* Underlinelinks;
};
@@ -100,2 +102,3 @@ public:
QCheckBox* Continuous;
+ QCheckBox* DoubleBuffer;
protected:
@@ -118,4 +121,21 @@ public:
- QCheckBox *annotation, *dictionary, *clipboard;
- QCheckBox *Depluck, *Dejpluck, *Continuous;
+ QCheckBox *annotation, *dictionary, *clipboard, *boutput;
+ QCheckBox *Depluck, *Dejpluck, *Continuous, *DoubleBuffer;
+
+#ifdef USECOMBO
+ QComboBox *bgtype, *minibarcol;
+#else
+ MenuButton *bgtype, *minibarcol;
+#endif
+};
+
+class CScrollPrefs : public QWidget
+{
+
+public:
+
+ friend class CPrefs;
+
+ CScrollPrefs( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ ~CScrollPrefs();
@@ -124,5 +144,5 @@ public:
#ifdef USECOMBO
- QComboBox *scrollcolor, *bgtype, *scrolltype, *minibarcol;
+ QComboBox *scrollcolor, *scrolltype, *outcodec;
#else
- MenuButton *scrollcolor, *bgtype, *scrolltype, *minibarcol;
+ MenuButton *scrollcolor, *scrolltype, *outcodec;
#endif
@@ -133,3 +153,3 @@ class QListViewItem;
-class CButtonPrefs : public QWidget
+sclass CButtonPrefs : public QWidget
{
@@ -191,3 +211,3 @@ Q_OBJECT
CMiscPrefs* misc;
- // CButtonPrefs* button;
+ CScrollPrefs* scroll;
CInterPrefs* inter;
@@ -223,3 +243,5 @@ Q_OBJECT
bool StripCR() { return layout->StripCR->isChecked(); }
+ bool InlineTables() { return layout->InlineTables->isChecked(); }
bool repalm() { return layout->prepalm->isChecked(); }
+ bool UnderlineLink() { return layout->Underlinelinks->isChecked(); }
bool kern() { return layout->pkern->isChecked(); }
@@ -248,3 +270,5 @@ Q_OBJECT
void StripCR(bool v) { layout->StripCR->setChecked(v); }
+ void InlineTables(bool v) { layout->InlineTables->setChecked(v); }
void repalm(bool v) { layout->prepalm->setChecked(v); }
+ void UnderlineLink(bool v) { layout->Underlinelinks->setChecked(v); }
void kern(bool v) { layout->pkern->setChecked(v); }
@@ -275,3 +299,3 @@ Q_OBJECT
void bgtype(int v) { misc->bgtype->setCurrentItem(v); }
- void scrollcolor(int v) { misc->scrollcolor->setCurrentItem(v); }
+ void scrollcolor(int v) { scroll->scrollcolor->setCurrentItem(v); }
void minibarcol(int v) { misc->minibarcol->setCurrentItem(v); }
@@ -279,3 +303,3 @@ Q_OBJECT
void bgtype(int v) { misc->bgtype->select(v); }
- void scrollcolor(int v) { misc->scrollcolor->select(v); }
+ void scrollcolor(int v) { scroll->scrollcolor->select(v); }
void minibarcol(int v) { misc->minibarcol->select(v); }
@@ -283,3 +307,3 @@ Q_OBJECT
int bgtype() { return misc->bgtype->currentItem(); }
- int scrollcolor() { return misc->scrollcolor->currentItem(); }
+ int scrollcolor() { return scroll->scrollcolor->currentItem(); }
int minibarcol() { return misc->minibarcol->currentItem(); }
@@ -302,3 +326,2 @@ Q_OBJECT
-
#ifdef USECOMBO
@@ -319,2 +342,22 @@ Q_OBJECT
+#ifdef USECOMBO
+ void outcodec(QString& s)
+ {
+ for (int i = 1; i <= scroll->outcodec->count(); i++)
+ {
+ if (scroll->outcodec->text(i) == s)
+ {
+ scroll->outcodec->setCurrentItem(i);
+ break;
+ }
+ }
+ }
+#else
+ void outcodec(QString& s) { scroll->outcodec->select(s); }
+#endif
+ QString outcodec() { return scroll->outcodec->currentText(); }
+
+ void miscoutput(bool v) { return misc->boutput->setChecked(v); }
+ bool miscoutput() { return misc->boutput->isChecked(); }
+
bool Depluck() { return misc->Depluck->isChecked(); }
@@ -325,2 +368,4 @@ Q_OBJECT
void Continuous(bool v) { misc->Continuous->setChecked(v); }
+ bool DoubleBuffer() { return misc->DoubleBuffer->isChecked(); }
+ void DoubleBuffer(bool v) { misc->DoubleBuffer->setChecked(v); }
bool SwapMouse() { return inter->SwapMouse->isChecked(); }
@@ -373,12 +418,12 @@ Q_OBJECT
int encoding() { return inter->encoding->currentItem(); }
- int scrolltype() { return misc->scrolltype->currentItem(); }
+ int scrolltype() { return scroll->scrolltype->currentItem(); }
#ifdef USECOMBO
void encoding(int v) { inter->encoding->setCurrentItem(v); }
- void scrolltype(int v) { misc->scrolltype->setCurrentItem(v); }
+ void scrolltype(int v) { scroll->scrolltype->setCurrentItem(v); }
#else
void encoding(int v) { inter->encoding->select(v); }
- void scrolltype(int v) { misc->scrolltype->select(v); }
+ void scrolltype(int v) { scroll->scrolltype->select(v); }
#endif
- void scrollstep(int v) { misc->scrollstep->setValue(v); }
- int scrollstep() { return misc->scrollstep->value(); }
+ void scrollstep(int v) { scroll->scrollstep->setValue(v); }
+ int scrollstep() { return scroll->scrollstep->value(); }
};