• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • akonadi
ui_cachepolicypage.h
1 #include <kdialog.h>
2 #include <klocale.h>
3 
4 /********************************************************************************
5 ** Form generated from reading UI file 'cachepolicypage.ui'
6 **
7 ** Created by: Qt User Interface Compiler version 4.8.7
8 **
9 ** WARNING! All changes made in this file will be lost when recompiling UI file!
10 ********************************************************************************/
11 
12 #ifndef UI_CACHEPOLICYPAGE_H
13 #define UI_CACHEPOLICYPAGE_H
14 
15 #include <QtCore/QVariant>
16 #include <QtGui/QAction>
17 #include <QtGui/QApplication>
18 #include <QtGui/QButtonGroup>
19 #include <QtGui/QCheckBox>
20 #include <QtGui/QGridLayout>
21 #include <QtGui/QGroupBox>
22 #include <QtGui/QHBoxLayout>
23 #include <QtGui/QHeaderView>
24 #include <QtGui/QLabel>
25 #include <QtGui/QRadioButton>
26 #include <QtGui/QSpacerItem>
27 #include <QtGui/QStackedWidget>
28 #include <QtGui/QVBoxLayout>
29 #include <QtGui/QWidget>
30 #include "keditlistwidget.h"
31 #include "knuminput.h"
32 
33 QT_BEGIN_NAMESPACE
34 
35 class Ui_CachePolicyPage
36 {
37 public:
38  QVBoxLayout *verticalLayout_3;
39  QCheckBox *inherit;
40  QCheckBox *syncOnDemand;
41  QHBoxLayout *horizontalLayout_3;
42  QLabel *label_2;
43  KIntNumInput *checkInterval;
44  QStackedWidget *stackedWidget;
45  QWidget *rawPage;
46  QHBoxLayout *horizontalLayout;
47  QGroupBox *groupBox_2;
48  QGridLayout *gridLayout;
49  KEditListWidget *localParts;
50  QWidget *endUserPage;
51  QVBoxLayout *verticalLayout_2;
52  QGroupBox *retrievalOptionsGroupBox;
53  QVBoxLayout *verticalLayout;
54  QRadioButton *retrieveFullMessages;
55  QRadioButton *retrieveOnlyHeaders;
56  QHBoxLayout *horizontalLayout_2;
57  QLabel *label;
58  KIntNumInput *localCacheTimeout;
59  QSpacerItem *verticalSpacer;
60 
61  void setupUi(QWidget *CachePolicyPage)
62  {
63  if (CachePolicyPage->objectName().isEmpty())
64  CachePolicyPage->setObjectName(QString::fromUtf8("CachePolicyPage"));
65  CachePolicyPage->setEnabled(true);
66  CachePolicyPage->resize(602, 461);
67  verticalLayout_3 = new QVBoxLayout(CachePolicyPage);
68  verticalLayout_3->setObjectName(QString::fromUtf8("verticalLayout_3"));
69  inherit = new QCheckBox(CachePolicyPage);
70  inherit->setObjectName(QString::fromUtf8("inherit"));
71  inherit->setChecked(false);
72  inherit->setTristate(false);
73 
74  verticalLayout_3->addWidget(inherit);
75 
76  syncOnDemand = new QCheckBox(CachePolicyPage);
77  syncOnDemand->setObjectName(QString::fromUtf8("syncOnDemand"));
78 
79  verticalLayout_3->addWidget(syncOnDemand);
80 
81  horizontalLayout_3 = new QHBoxLayout();
82  horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3"));
83  label_2 = new QLabel(CachePolicyPage);
84  label_2->setObjectName(QString::fromUtf8("label_2"));
85 
86  horizontalLayout_3->addWidget(label_2);
87 
88  checkInterval = new KIntNumInput(CachePolicyPage);
89  checkInterval->setObjectName(QString::fromUtf8("checkInterval"));
90  checkInterval->setProperty("value", QVariant(-1));
91  checkInterval->setProperty("minimum", QVariant(0));
92 
93  horizontalLayout_3->addWidget(checkInterval);
94 
95 
96  verticalLayout_3->addLayout(horizontalLayout_3);
97 
98  stackedWidget = new QStackedWidget(CachePolicyPage);
99  stackedWidget->setObjectName(QString::fromUtf8("stackedWidget"));
100  rawPage = new QWidget();
101  rawPage->setObjectName(QString::fromUtf8("rawPage"));
102  horizontalLayout = new QHBoxLayout(rawPage);
103  horizontalLayout->setContentsMargins(0, 0, 0, 0);
104  horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
105  groupBox_2 = new QGroupBox(rawPage);
106  groupBox_2->setObjectName(QString::fromUtf8("groupBox_2"));
107  gridLayout = new QGridLayout(groupBox_2);
108  gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
109  localParts = new KEditListWidget(groupBox_2);
110  localParts->setObjectName(QString::fromUtf8("localParts"));
111  localParts->setEnabled(false);
112  localParts->setButtons(KEditListWidget::Add|KEditListWidget::Remove);
113 
114  gridLayout->addWidget(localParts, 0, 0, 1, 1);
115 
116 
117  horizontalLayout->addWidget(groupBox_2);
118 
119  stackedWidget->addWidget(rawPage);
120  endUserPage = new QWidget();
121  endUserPage->setObjectName(QString::fromUtf8("endUserPage"));
122  verticalLayout_2 = new QVBoxLayout(endUserPage);
123  verticalLayout_2->setContentsMargins(0, 0, 0, 0);
124  verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
125  retrievalOptionsGroupBox = new QGroupBox(endUserPage);
126  retrievalOptionsGroupBox->setObjectName(QString::fromUtf8("retrievalOptionsGroupBox"));
127  verticalLayout = new QVBoxLayout(retrievalOptionsGroupBox);
128  verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
129  retrieveFullMessages = new QRadioButton(retrievalOptionsGroupBox);
130  retrieveFullMessages->setObjectName(QString::fromUtf8("retrieveFullMessages"));
131  retrieveFullMessages->setChecked(true);
132 
133  verticalLayout->addWidget(retrieveFullMessages);
134 
135  retrieveOnlyHeaders = new QRadioButton(retrievalOptionsGroupBox);
136  retrieveOnlyHeaders->setObjectName(QString::fromUtf8("retrieveOnlyHeaders"));
137 
138  verticalLayout->addWidget(retrieveOnlyHeaders);
139 
140  horizontalLayout_2 = new QHBoxLayout();
141  horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
142  label = new QLabel(retrievalOptionsGroupBox);
143  label->setObjectName(QString::fromUtf8("label"));
144 
145  horizontalLayout_2->addWidget(label);
146 
147  localCacheTimeout = new KIntNumInput(retrievalOptionsGroupBox);
148  localCacheTimeout->setObjectName(QString::fromUtf8("localCacheTimeout"));
149  localCacheTimeout->setProperty("value", QVariant(-1));
150  localCacheTimeout->setProperty("minimum", QVariant(0));
151 
152  horizontalLayout_2->addWidget(localCacheTimeout);
153 
154 
155  verticalLayout->addLayout(horizontalLayout_2);
156 
157  verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
158 
159  verticalLayout->addItem(verticalSpacer);
160 
161 
162  verticalLayout_2->addWidget(retrievalOptionsGroupBox);
163 
164  stackedWidget->addWidget(endUserPage);
165 
166  verticalLayout_3->addWidget(stackedWidget);
167 
168 
169  retranslateUi(CachePolicyPage);
170  QObject::connect(inherit, SIGNAL(toggled(bool)), localParts, SLOT(setDisabled(bool)));
171  QObject::connect(retrieveOnlyHeaders, SIGNAL(toggled(bool)), label, SLOT(setEnabled(bool)));
172  QObject::connect(retrieveOnlyHeaders, SIGNAL(toggled(bool)), localCacheTimeout, SLOT(setEnabled(bool)));
173  QObject::connect(inherit, SIGNAL(toggled(bool)), syncOnDemand, SLOT(setDisabled(bool)));
174  QObject::connect(inherit, SIGNAL(toggled(bool)), label_2, SLOT(setDisabled(bool)));
175  QObject::connect(inherit, SIGNAL(toggled(bool)), checkInterval, SLOT(setDisabled(bool)));
176 
177  stackedWidget->setCurrentIndex(1);
178 
179 
180  QMetaObject::connectSlotsByName(CachePolicyPage);
181  } // setupUi
182 
183  void retranslateUi(QWidget *CachePolicyPage)
184  {
185  inherit->setText(tr2i18n("Use options from parent folder or account", 0));
186  syncOnDemand->setText(tr2i18n("Synchronize when selecting this folder", 0));
187  label_2->setText(tr2i18n("Automatically synchronize after:", 0));
188  checkInterval->setProperty("suffix", QVariant(tr2i18n("minutes", 0)));
189  checkInterval->setProperty("specialValueText", QVariant(tr2i18n("Never", "never check the cache")));
190  groupBox_2->setTitle(tr2i18n("Locally Cached Parts", 0));
191  localParts->setProperty("title", QVariant(tr2i18n("Locally Cached Parts", 0)));
192  retrievalOptionsGroupBox->setTitle(tr2i18n("Retrieval Options", 0));
193  retrieveFullMessages->setText(tr2i18n("Always retrieve full messages", 0));
194  retrieveOnlyHeaders->setText(tr2i18n("Retrieve message bodies on demand", 0));
195  label->setText(tr2i18n("Keep message bodies locally for:", 0));
196  localCacheTimeout->setProperty("suffix", QVariant(tr2i18n("minutes", 0)));
197  localCacheTimeout->setProperty("specialValueText", QVariant(tr2i18n("Forever", "no cache timeout")));
198  Q_UNUSED(CachePolicyPage);
199  } // retranslateUi
200 
201 };
202 
203 namespace Ui {
204  class CachePolicyPage: public Ui_CachePolicyPage {};
205 } // namespace Ui
206 
207 QT_END_NAMESPACE
208 
209 #endif // CACHEPOLICYPAGE_H
210 
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jul 27 2021 06:51:01 by doxygen 1.8.20 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal