Final upload from initial development system

pull/1/head
Timothy Pearson 13 years ago
parent 3dbc24a1be
commit 02d6ef6446

@ -42,11 +42,13 @@ KTMConfigureDialog::KTMConfigureDialog(TopLevel* tlapp, TQWidget* parent, const
setMainWidget(m_base);
m_base->autostart->setChecked(m_tlapp->autostart);
m_base->notifyExpiry->setChecked(m_tlapp->notifyExpiry);
m_base->notifyExpiryMinutes->setValue(m_tlapp->notifyExpiryMinutes);
}
void KTMConfigureDialog::save() {
m_tlapp->autostart = m_base->autostart->isOn();
m_tlapp->notifyExpiry = m_base->notifyExpiry->isOn();
m_tlapp->notifyExpiryMinutes = m_base->notifyExpiryMinutes->value();

@ -8,6 +8,14 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQCheckBox" row="0" column="0" colspan="3">
<property name="name">
<cstring>autostart</cstring>
</property>
<property name="text">
<string>Automatically start the Kerberos Ticket Manager on login</string>
</property>
</widget>
<widget class="TQCheckBox" row="1" column="0" colspan="3">
<property name="name">
<cstring>notifyExpiry</cstring>

@ -6,6 +6,9 @@ Icon=kerberostray
Type=Application
Terminal=false
DocPath=kerberostray/index.html
X-KDE-StartupNotify=true
X-TDE-StartupNotify=true
X-DCOP-ServiceType=Multi
Categories=Qt;KDE;Utility;
Categories=Qt;TDE;Utility;
X-TDE-autostart-phase=2
X-TDE-autostart-after=panel
X-TDE-autostart-condition=kerberostrayrc::Autostart:true

@ -119,6 +119,7 @@ TopLevel::~TopLevel()
void TopLevel::load() {
KConfig* config = KGlobal::instance()->config();
config->setGroup(NULL);
autostart = config->readBoolEntry("Autostart", true);
notifyExpiry = config->readBoolEntry("notifyExpiry", true);
notifyExpiryMinutes = config->readNumEntry("notifyExpiryMinutes", 5);
}
@ -126,6 +127,7 @@ void TopLevel::load() {
void TopLevel::save() {
KConfig* config = KGlobal::instance()->config();
config->setGroup(NULL);
config->writeEntry("Autostart", autostart);
config->writeEntry("notifyExpiry", notifyExpiry);
config->writeEntry("notifyExpiryMinutes", notifyExpiryMinutes);
config->sync();

@ -92,6 +92,7 @@ private:
KDirWatch *ticketWatch;
TQTimer *m_refreshTimer;
bool autostart;
bool notifyExpiry;
int notifyExpiryMinutes;

Loading…
Cancel
Save