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); setMainWidget(m_base);
m_base->autostart->setChecked(m_tlapp->autostart);
m_base->notifyExpiry->setChecked(m_tlapp->notifyExpiry); m_base->notifyExpiry->setChecked(m_tlapp->notifyExpiry);
m_base->notifyExpiryMinutes->setValue(m_tlapp->notifyExpiryMinutes); m_base->notifyExpiryMinutes->setValue(m_tlapp->notifyExpiryMinutes);
} }
void KTMConfigureDialog::save() { void KTMConfigureDialog::save() {
m_tlapp->autostart = m_base->autostart->isOn();
m_tlapp->notifyExpiry = m_base->notifyExpiry->isOn(); m_tlapp->notifyExpiry = m_base->notifyExpiry->isOn();
m_tlapp->notifyExpiryMinutes = m_base->notifyExpiryMinutes->value(); m_tlapp->notifyExpiryMinutes = m_base->notifyExpiryMinutes->value();

@ -8,6 +8,14 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </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"> <widget class="TQCheckBox" row="1" column="0" colspan="3">
<property name="name"> <property name="name">
<cstring>notifyExpiry</cstring> <cstring>notifyExpiry</cstring>

@ -6,6 +6,9 @@ Icon=kerberostray
Type=Application Type=Application
Terminal=false Terminal=false
DocPath=kerberostray/index.html DocPath=kerberostray/index.html
X-KDE-StartupNotify=true X-TDE-StartupNotify=true
X-DCOP-ServiceType=Multi 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() { void TopLevel::load() {
KConfig* config = KGlobal::instance()->config(); KConfig* config = KGlobal::instance()->config();
config->setGroup(NULL); config->setGroup(NULL);
autostart = config->readBoolEntry("Autostart", true);
notifyExpiry = config->readBoolEntry("notifyExpiry", true); notifyExpiry = config->readBoolEntry("notifyExpiry", true);
notifyExpiryMinutes = config->readNumEntry("notifyExpiryMinutes", 5); notifyExpiryMinutes = config->readNumEntry("notifyExpiryMinutes", 5);
} }
@ -126,6 +127,7 @@ void TopLevel::load() {
void TopLevel::save() { void TopLevel::save() {
KConfig* config = KGlobal::instance()->config(); KConfig* config = KGlobal::instance()->config();
config->setGroup(NULL); config->setGroup(NULL);
config->writeEntry("Autostart", autostart);
config->writeEntry("notifyExpiry", notifyExpiry); config->writeEntry("notifyExpiry", notifyExpiry);
config->writeEntry("notifyExpiryMinutes", notifyExpiryMinutes); config->writeEntry("notifyExpiryMinutes", notifyExpiryMinutes);
config->sync(); config->sync();

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

Loading…
Cancel
Save