added calendar access button in edit entry dialog, added customize detail view dialog for editing detail view templates, added 'show expired entries' dialog, new icon loading mechansim, added and replaced some icons. git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@130 b624d157-de02-0410-bad0-e51aec6abb33master
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 880 B |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 213 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 206 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 214 B |
After Width: | Height: | Size: 183 B |
After Width: | Height: | Size: 1.5 KiB |
@ -0,0 +1,29 @@ |
||||
/***************************************************************************
|
||||
* Copyright (C) 2007 by Tarek Saidi * |
||||
* tarek.saidi@arcor.de * |
||||
* * |
||||
* This program is free software; you can redistribute it and/or modify * |
||||
* it under the terms of the GNU General Public License as published by * |
||||
* the Free Software Foundation; either version 2 of the License, or * |
||||
* (at your option) any later version. * |
||||
* * |
||||
* This program is distributed in the hope that it will be useful, * |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of * |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
||||
* GNU General Public License for more details. * |
||||
* * |
||||
* You should have received a copy of the GNU General Public License * |
||||
* along with this program; if not, write to the * |
||||
* Free Software Foundation, Inc., * |
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
||||
***************************************************************************/ |
||||
|
||||
#include "main.h" |
||||
#include "CalendarDlg.h" |
||||
|
||||
CalendarDialog::CalendarDialog(QWidget* parent, const QDate& Start):QDialog(parent){ |
||||
setupUi(this); |
||||
calendarWidget->setSelectedDate(Start); |
||||
setWindowIcon(getIcon("clock")); |
||||
setWindowFlags(Qt::Sheet); |
||||
} |
@ -0,0 +1,35 @@ |
||||
/***************************************************************************
|
||||
* Copyright (C) 2007 by Tarek Saidi * |
||||
* tarek.saidi@arcor.de * |
||||
* * |
||||
* This program is free software; you can redistribute it and/or modify * |
||||
* it under the terms of the GNU General Public License as published by * |
||||
* the Free Software Foundation; either version 2 of the License, or * |
||||
* (at your option) any later version. * |
||||
* * |
||||
* This program is distributed in the hope that it will be useful, * |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of * |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
||||
* GNU General Public License for more details. * |
||||
* * |
||||
* You should have received a copy of the GNU General Public License * |
||||
* along with this program; if not, write to the * |
||||
* Free Software Foundation, Inc., * |
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
||||
***************************************************************************/ |
||||
#ifndef _CALENDAR_DLG_H_ |
||||
#define _CALENDAR_DLG_H_ |
||||
|
||||
#include <QDate> |
||||
#include "ui_CalendarDlg.h" |
||||
|
||||
class CalendarDialog:public QDialog, public Ui_CalendarDialog{ |
||||
Q_OBJECT |
||||
public: |
||||
CalendarDialog(QWidget* parent, const QDate& Start=QDate::currentDate()); |
||||
|
||||
|
||||
}; |
||||
|
||||
|
||||
#endif |
@ -0,0 +1,217 @@ |
||||
/***************************************************************************
|
||||
* Copyright (C) 2005-2007 by Tarek Saidi * |
||||
* tarek.saidi@arcor.de * |
||||
* * |
||||
* This program is free software; you can redistribute it and/or modify * |
||||
* it under the terms of the GNU General Public License as published by * |
||||
* the Free Software Foundation; either version 2 of the License, or * |
||||
* (at your option) any later version. * |
||||
* * |
||||
* This program is distributed in the hope that it will be useful, * |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of * |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
||||
* GNU General Public License for more details. * |
||||
* * |
||||
* You should have received a copy of the GNU General Public License * |
||||
* along with this program; if not, write to the * |
||||
* Free Software Foundation, Inc., * |
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
||||
***************************************************************************/ |
||||
|
||||
#include <QTextCursor> |
||||
#include <QTextBlockFormat> |
||||
#include <QLineEdit> |
||||
#include <QPushButton> |
||||
#include <QColorDialog> |
||||
#include <QPixmap> |
||||
#include <QMenu> |
||||
#include "main.h" |
||||
#include "CustomizeDetailViewDlg.h" |
||||
|
||||
bool DisableButtonSlots=false; |
||||
|
||||
CustomizeDetailViewDialog::CustomizeDetailViewDialog(QWidget* parent):QDialog(parent){ |
||||
setupUi(this); |
||||
BtnBold->setIcon(getIcon("text_bold")); |
||||
BtnItalic->setIcon(getIcon("text_italic")); |
||||
BtnUnderline->setIcon(getIcon("text_under")); |
||||
BtnAlignLeft->setIcon(getIcon("text_left")); |
||||
BtnAlignRight->setIcon(getIcon("text_right")); |
||||
BtnAlignCenter->setIcon(getIcon("text_center")); |
||||
BtnAlignBlock->setIcon(getIcon("text_block")); |
||||
BtnTemplates->setIcon(getIcon("templates"));
|
||||
|
||||
QMenu* tmplmenu=new QMenu(); |
||||
tmplmenu->addAction(tr("Group"))->setData("%group%"); |
||||
tmplmenu->addAction(tr("Title"))->setData("%title%"); |
||||
tmplmenu->addAction(tr("Username"))->setData("%username%"); |
||||
tmplmenu->addAction(tr("Password"))->setData("%password%"); |
||||
tmplmenu->addAction(tr("Url"))->setData("%url%"); |
||||
tmplmenu->addAction(tr("Comment"))->setData("%comment%"); |
||||
tmplmenu->addAction(tr("Attachment Name"))->setData("%attachment%"); |
||||
tmplmenu->addAction(tr("Creation Date"))->setData("%creation%"); |
||||
tmplmenu->addAction(tr("Last Access Date"))->setData("%lastaccess%"); |
||||
tmplmenu->addAction(tr("Last Modification Date"))->setData("%lastmod%"); |
||||
tmplmenu->addAction(tr("Expiration Date"))->setData("%expire%"); |
||||
tmplmenu->addAction(tr("Time till Expiration"))->setData("%expire-timeleft%"); |
||||
BtnTemplates->setMenu(tmplmenu);
|
||||
|
||||
connect(BtnBold,SIGNAL(toggled(bool)),this,SLOT(OnBtnBold(bool))); |
||||
connect(BtnItalic,SIGNAL(toggled(bool)),this,SLOT(OnBtnItalic(bool))); |
||||
connect(BtnUnderline,SIGNAL(toggled(bool)),this,SLOT(OnBtnUnderline(bool))); |
||||
connect(BtnAlignLeft,SIGNAL(toggled(bool)),this,SLOT(OnBtnAlignLeft(bool))); |
||||
connect(BtnAlignRight,SIGNAL(toggled(bool)),this,SLOT(OnBtnAlignRight(bool))); |
||||
connect(BtnAlignCenter,SIGNAL(toggled(bool)),this,SLOT(OnBtnAlignCenter(bool))); |
||||
connect(BtnAlignBlock,SIGNAL(toggled(bool)),this,SLOT(OnBtnAlignBlock(bool))); |
||||
connect(BtnColor,SIGNAL(clicked()),this,SLOT(OnBtnColor())); |
||||
connect(ButtonSave,SIGNAL(clicked()),this,SLOT(OnSave())); |
||||
connect(ButtonCancel,SIGNAL(clicked()),this,SLOT(OnCancel())); |
||||
connect(ButtonRestore,SIGNAL(clicked()),this,SLOT(OnRestoreDefault())); |
||||
connect(tmplmenu,SIGNAL(triggered(QAction*)),this,SLOT(OnInsertTemplate(QAction*))); |
||||
connect(RichEdit,SIGNAL(cursorPositionChanged()),this,SLOT(OnCursorPositionChanged())); |
||||
connect(TabWidget,SIGNAL(currentChanged(int)),this,SLOT(OnTabChanged(int))); |
||||
connect(FontSize,SIGNAL(activated(const QString&)),this,SLOT(OnFontSizeChanged(const QString&))); |
||||
connect(FontSize->lineEdit(),SIGNAL(returnPressed()),this,SLOT(OnFontSizeChanged())); |
||||
|
||||
RichEdit->setHtml(DetailViewTemplate); |
||||
|
||||
OnCursorPositionChanged(); |
||||
} |
||||
|
||||
void CustomizeDetailViewDialog::OnTabChanged(int index){ |
||||
|
||||
if(index==0){ |
||||
RichEdit->setHtml(HtmlEdit->toPlainText()); |
||||
}
|
||||
if(index==1){ |
||||
HtmlEdit->setPlainText(RichEdit->toHtml());
|
||||
}
|
||||
} |
||||
|
||||
void CustomizeDetailViewDialog::OnFontSizeChanged(const QString& text){ |
||||
bool ok=false; |
||||
int size=text.toInt(&ok); |
||||
if(ok && size > 0){ |
||||
RichEdit->setFontPointSize(size);
|
||||
}
|
||||
} |
||||
|
||||
|
||||
void CustomizeDetailViewDialog::OnCursorPositionChanged(){ |
||||
DisableButtonSlots=true; |
||||
if(RichEdit->fontWeight()==QFont::Bold)BtnBold->setChecked(true); |
||||
else BtnBold->setChecked(false); |
||||
BtnItalic->setChecked(RichEdit->fontItalic()); |
||||
BtnUnderline->setChecked(RichEdit->fontUnderline()); |
||||
switch(RichEdit->alignment()){ |
||||
case Qt::AlignLeft: |
||||
BtnAlignLeft->setChecked(true); |
||||
BtnAlignCenter->setChecked(false); |
||||
BtnAlignRight->setChecked(false); |
||||
BtnAlignBlock->setChecked(false); |
||||
break; |
||||
case Qt::AlignHCenter: |
||||
BtnAlignLeft->setChecked(false); |
||||
BtnAlignCenter->setChecked(true); |
||||
BtnAlignRight->setChecked(false); |
||||
BtnAlignBlock->setChecked(false); |
||||
break; |
||||
case Qt::AlignRight: |
||||
BtnAlignLeft->setChecked(false); |
||||
BtnAlignCenter->setChecked(false); |
||||
BtnAlignRight->setChecked(true); |
||||
BtnAlignBlock->setChecked(false); |
||||
break; |
||||
case Qt::AlignJustify: |
||||
BtnAlignLeft->setChecked(false); |
||||
BtnAlignCenter->setChecked(false); |
||||
BtnAlignRight->setChecked(false); |
||||
BtnAlignBlock->setChecked(true); |
||||
break;
|
||||
} |
||||
CurrentColor=RichEdit->textColor(); |
||||
QPixmap pixmap=QPixmap(16,16); |
||||
pixmap.fill(CurrentColor); |
||||
BtnColor->setIcon(QIcon(pixmap)); |
||||
if(RichEdit->fontPointSize()>0) |
||||
FontSize->lineEdit()->setText(QString::number((int)RichEdit->fontPointSize())); |
||||
else |
||||
FontSize->lineEdit()->setText("9"); |
||||
|
||||
DisableButtonSlots=false;
|
||||
} |
||||
|
||||
void CustomizeDetailViewDialog::OnBtnBold(bool toggled){ |
||||
if(DisableButtonSlots)return; |
||||
if(toggled) |
||||
RichEdit->setFontWeight(QFont::Bold);
|
||||
else |
||||
RichEdit->setFontWeight(QFont::Normal); |
||||
} |
||||
|
||||
void CustomizeDetailViewDialog::OnBtnItalic(bool toggled){ |
||||
if(DisableButtonSlots)return; |
||||
RichEdit->setFontItalic(toggled);
|
||||
} |
||||
|
||||
void CustomizeDetailViewDialog::OnBtnUnderline(bool toggled){ |
||||
if(DisableButtonSlots)return;
|
||||
RichEdit->setFontUnderline(toggled);
|
||||
} |
||||
|
||||
|
||||
void CustomizeDetailViewDialog::OnBtnAlignLeft(bool toggled){ |
||||
if(DisableButtonSlots)return; |
||||
RichEdit->setAlignment(Qt::AlignLeft); |
||||
OnCursorPositionChanged(); |
||||
} |
||||
|
||||
void CustomizeDetailViewDialog::OnBtnAlignRight(bool toggled){ |
||||
if(DisableButtonSlots)return; |
||||
RichEdit->setAlignment(Qt::AlignRight);
|
||||
OnCursorPositionChanged(); |
||||
} |
||||
|
||||
void CustomizeDetailViewDialog::OnBtnAlignCenter(bool toggled){ |
||||
if(DisableButtonSlots)return;
|
||||
RichEdit->setAlignment(Qt::AlignHCenter);
|
||||
OnCursorPositionChanged(); |
||||
} |
||||
|
||||
void CustomizeDetailViewDialog::OnBtnAlignBlock(bool toggled){ |
||||
if(DisableButtonSlots)return;
|
||||
RichEdit->setAlignment(Qt::AlignJustify);
|
||||
OnCursorPositionChanged(); |
||||
} |
||||
|
||||
void CustomizeDetailViewDialog::OnBtnColor(){ |
||||
CurrentColor=QColorDialog::getColor(CurrentColor,this); |
||||
QPixmap pixmap=QPixmap(16,16); |
||||
pixmap.fill(CurrentColor); |
||||
BtnColor->setIcon(QIcon(pixmap)); |
||||
RichEdit->setTextColor(CurrentColor); |
||||
} |
||||
|
||||
void CustomizeDetailViewDialog::OnInsertTemplate(QAction* action){ |
||||
RichEdit->insertPlainText(action->data().toString());
|
||||
} |
||||
|
||||
|
||||
void CustomizeDetailViewDialog::OnSave(){ |
||||
if(TabWidget->currentIndex()==0) |
||||
DetailViewTemplate=RichEdit->toHtml(); |
||||
else if(TabWidget->currentIndex()==1) |
||||
DetailViewTemplate=HtmlEdit->toPlainText(); |
||||
|
||||
done(1); |
||||
} |
||||
|
||||
void CustomizeDetailViewDialog::OnCancel(){ |
||||
done(0); |
||||
} |
||||
|
||||
void CustomizeDetailViewDialog::OnRestoreDefault(){ |
||||
loadDefaultDetailViewTemplate(); |
||||
HtmlEdit->setPlainText(DetailViewTemplate); |
||||
RichEdit->setHtml(DetailViewTemplate); |
||||
} |
@ -0,0 +1,55 @@ |
||||
/***************************************************************************
|
||||
* Copyright (C) 2005-2006 by Tarek Saidi * |
||||
* tarek.saidi@arcor.de * |
||||
* * |
||||
* This program is free software; you can redistribute it and/or modify * |
||||
* it under the terms of the GNU General Public License as published by * |
||||
* the Free Software Foundation; either version 2 of the License, or * |
||||
* (at your option) any later version. * |
||||
* * |
||||
* This program is distributed in the hope that it will be useful, * |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of * |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
||||
* GNU General Public License for more details. * |
||||
* * |
||||
* You should have received a copy of the GNU General Public License * |
||||
* along with this program; if not, write to the * |
||||
* Free Software Foundation, Inc., * |
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
||||
***************************************************************************/ |
||||
#ifndef _CUSTOMIZE_DETAIL_VIEW_H_ |
||||
#define _CUSTOMIZE_DETAIL_VIEW_H_ |
||||
|
||||
#include "ui_CustomizeDetailViewDlg.h"; |
||||
#include <QColor> |
||||
#include <QAction> |
||||
|
||||
class CustomizeDetailViewDialog : public QDialog, public Ui_CustomizeDetailViewDialog{ |
||||
Q_OBJECT |
||||
public: |
||||
CustomizeDetailViewDialog(QWidget* parent); |
||||
|
||||
private slots: |
||||
void OnBtnBold(bool); |
||||
void OnBtnItalic(bool); |
||||
void OnBtnUnderline(bool); |
||||
void OnBtnAlignLeft(bool); |
||||
void OnBtnAlignRight(bool); |
||||
void OnBtnAlignCenter(bool); |
||||
void OnBtnAlignBlock(bool); |
||||
void OnBtnColor(); |
||||
void OnSave(); |
||||
void OnCancel(); |
||||
void OnRestoreDefault(); |
||||
void OnInsertTemplate(QAction*); |
||||
void OnCursorPositionChanged(); |
||||
void OnTabChanged(int index); |
||||
void OnFontSizeChanged(const QString& text=QString()); |
||||
|
||||
private: |
||||
QColor CurrentColor; |
||||
|
||||
|
||||
}; |
||||
|
||||
#endif |
@ -0,0 +1,63 @@ |
||||
/***************************************************************************
|
||||
* Copyright (C) 2007 by Tarek Saidi * |
||||
* tarek.saidi@arcor.de * |
||||
* * |
||||
* This program is free software; you can redistribute it and/or modify * |
||||
* it under the terms of the GNU General Public License as published by * |
||||
* the Free Software Foundation; either version 2 of the License, or * |
||||
* (at your option) any later version. * |
||||
* * |
||||
* This program is distributed in the hope that it will be useful, * |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of * |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
||||
* GNU General Public License for more details. * |
||||
* * |
||||
* You should have received a copy of the GNU General Public License * |
||||
* along with this program; if not, write to the * |
||||
* Free Software Foundation, Inc., * |
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
||||
***************************************************************************/ |
||||
|
||||
#include <QTreeWidget> |
||||
#include <QPainter> |
||||
#include <QPaintEvent> |
||||
#include <QResizeEvent> |
||||
#include "main.h" |
||||
#include "ExpiredEntriesDlg.h" |
||||
|
||||
ExpiredEntriesDialog::ExpiredEntriesDialog(QWidget* parent,IDatabase* database,const QList<IEntryHandle*>& ExpiredEntries):QDialog(parent){ |
||||
setupUi(this); |
||||
Entries=ExpiredEntries; |
||||
for(int i=0;i<Entries.size();i++){ |
||||
QTreeWidgetItem* item=new QTreeWidgetItem(treeWidget); |
||||
item->setData(0,Qt::UserRole,i); |
||||
item->setText(0,Entries[i]->group()->title()); |
||||
item->setText(1,Entries[i]->title()); |
||||
item->setText(2,Entries[i]->username()); |
||||
item->setText(3,Entries[i]->expire().dateToString(Qt::LocalDate)); |
||||
item->setIcon(0,database->icon(Entries[i]->group()->image())); |
||||
item->setIcon(1,database->icon(Entries[i]->image())); |
||||
|
||||
} |
||||
connect(treeWidget,SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)),this,SLOT(OnItemDoubleClicked(QTreeWidgetItem*,int))); |
||||
} |
||||
|
||||
|
||||
void ExpiredEntriesDialog::paintEvent(QPaintEvent* event){ |
||||
QDialog::paintEvent(event); |
||||
QPainter painter(this); |
||||
painter.setClipRegion(event->region()); |
||||
painter.drawPixmap(QPoint(0,0),BannerPixmap); |
||||
} |
||||
|
||||
void ExpiredEntriesDialog::resizeEvent(QResizeEvent* event){ |
||||
createBanner(&BannerPixmap,getPixmap("alarmclock"),tr("Expried Entries of the Database"),width()); |
||||
QDialog::resizeEvent(event);
|
||||
} |
||||
|
||||
void ExpiredEntriesDialog::OnItemDoubleClicked(QTreeWidgetItem* item, int column){ |
||||
SelectedEntry=Entries[item->data(0,Qt::UserRole).toInt()];
|
||||
accept(); |
||||
} |
||||
|
||||
///TODO 0.2.3 locale aware string/date compare for correct sorting
|
@ -0,0 +1,47 @@ |
||||
/***************************************************************************
|
||||
* Copyright (C) 2007 by Tarek Saidi * |
||||
* tarek.saidi@arcor.de * |
||||
* * |
||||
* This program is free software; you can redistribute it and/or modify * |
||||
* it under the terms of the GNU General Public License as published by * |
||||
* the Free Software Foundation; either version 2 of the License, or * |
||||
* (at your option) any later version. * |
||||
* * |
||||
* This program is distributed in the hope that it will be useful, * |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of * |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
||||
* GNU General Public License for more details. * |
||||
* * |
||||
* You should have received a copy of the GNU General Public License * |
||||
* along with this program; if not, write to the * |
||||
* Free Software Foundation, Inc., * |
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
||||
***************************************************************************/ |
||||
|
||||
#ifndef _EXP_ENTRIES_DLG_ |
||||
#define _EXP_ENTRIES_DLG_ |
||||
|
||||
#include <QList> |
||||
#include <QPixmap> |
||||
#include "ui_ExpiredEntriesDlg.h" |
||||
#include "Database.h" |
||||
|
||||
class ExpiredEntriesDialog:public QDialog, public Ui_ExpiredEntriesDialog{ |
||||
Q_OBJECT |
||||
public: |
||||
ExpiredEntriesDialog(QWidget* parent,IDatabase* database,const QList<IEntryHandle*>& Entries); |
||||
IEntryHandle* SelectedEntry;
|
||||
private: |
||||
QList<IEntryHandle*> Entries; |
||||
QPixmap BannerPixmap; |
||||
virtual void paintEvent(QPaintEvent*); |
||||
virtual void resizeEvent(QResizeEvent *); |
||||
|
||||
private slots: |
||||
void OnItemDoubleClicked(QTreeWidgetItem*,int); |
||||
|
||||
|
||||
}; |
||||
|
||||
|
||||
#endif |
@ -0,0 +1,72 @@ |
||||
<ui version="4.0" > |
||||
<class>CalendarDialog</class> |
||||
<widget class="QDialog" name="CalendarDialog" > |
||||
<property name="geometry" > |
||||
<rect> |
||||
<x>0</x> |
||||
<y>0</y> |
||||
<width>334</width> |
||||
<height>238</height> |
||||
</rect> |
||||
</property> |
||||
<property name="windowTitle" > |
||||
<string>Calendar</string> |
||||
</property> |
||||
<layout class="QVBoxLayout" > |
||||
<property name="margin" > |
||||
<number>9</number> |
||||
</property> |
||||
<property name="spacing" > |
||||
<number>6</number> |
||||
</property> |
||||
<item> |
||||
<widget class="QCalendarWidget" name="calendarWidget" /> |
||||
</item> |
||||
<item> |
||||
<widget class="QDialogButtonBox" name="buttonBox" > |
||||
<property name="orientation" > |
||||
<enum>Qt::Horizontal</enum> |
||||
</property> |
||||
<property name="standardButtons" > |
||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set> |
||||
</property> |
||||
</widget> |
||||
</item> |
||||
</layout> |
||||
</widget> |
||||
<resources/> |
||||
<connections> |
||||
<connection> |
||||
<sender>buttonBox</sender> |
||||
<signal>accepted()</signal> |
||||
<receiver>CalendarDialog</receiver> |
||||
<slot>accept()</slot> |
||||
<hints> |
||||
<hint type="sourcelabel" > |
||||
<x>248</x> |
||||
<y>254</y> |
||||
</hint> |
||||
<hint type="destinationlabel" > |
||||
<x>157</x> |
||||
<y>274</y> |
||||
</hint> |
||||
</hints> |
||||
</connection> |
||||
<connection> |
||||
<sender>buttonBox</sender> |
||||
<signal>rejected()</signal> |
||||
<receiver>CalendarDialog</receiver> |
||||
<slot>reject()</slot> |
||||
<hints> |
||||
<hint type="sourcelabel" > |
||||
<x>316</x> |
||||
<y>260</y> |
||||
</hint> |
||||
<hint type="destinationlabel" > |
||||
<x>286</x> |
||||
<y>274</y> |
||||
</hint> |
||||
</hints> |
||||
</connection> |
||||
</connections> |
||||
</ui> |
@ -0,0 +1,368 @@ |
||||
<ui version="4.0" > |
||||
<class>CustomizeDetailViewDialog</class> |
||||
<widget class="QDialog" name="CustomizeDetailViewDialog" > |
||||
<property name="geometry" > |
||||
<rect> |
||||
<x>0</x> |
||||
<y>0</y> |
||||
<width>531</width> |
||||
<height>402</height> |
||||
</rect> |
||||
</property> |
||||
<property name="windowTitle" > |
||||
<string>Dialog</string> |
||||
</property> |
||||
<layout class="QVBoxLayout" > |
||||
<property name="margin" > |
||||
<number>9</number> |
||||
</property> |
||||
<property name="spacing" > |
||||
<number>6</number> |
||||
</property> |
||||
<item> |
||||
<widget class="QTabWidget" name="TabWidget" > |
||||
<property name="currentIndex" > |
||||
<number>0</number> |
||||
</property> |
||||
<widget class="QWidget" name="tab" > |
||||
<attribute name="title" > |
||||
<string>Rich Text Editor</string> |
||||
</attribute> |
||||
<layout class="QVBoxLayout" > |
||||
<property name="margin" > |
||||
<number>9</number> |
||||
</property> |
||||
<property name="spacing" > |
||||
<number>6</number> |
||||
</property> |
||||
<item> |
||||
<layout class="QHBoxLayout" > |
||||
<property name="margin" > |
||||
<number>0</number> |
||||
</property> |
||||
<property name="spacing" > |
||||
<number>6</number> |
||||
</property> |
||||
<item> |
||||
<widget class="QToolButton" name="BtnBold" > |
||||
<property name="toolTip" > |
||||
<string>Bold</string> |
||||
</property> |
||||
<property name="text" > |
||||
<string>B</string> |
||||
</property> |
||||
<property name="iconSize" > |
||||
<size> |
||||
<width>16</width> |
||||
<height>16</height> |
||||
</size> |
||||
</property> |
||||
<property name="checkable" > |
||||
<bool>true</bool> |
||||
</property> |
||||
</widget> |
||||
</item> |
||||
<item> |
||||
<widget class="QToolButton" name="BtnItalic" > |
||||
<property name="toolTip" > |
||||
<string>Italic</string> |
||||
</property> |
||||
<property name="text" > |
||||
<string>I</string> |
||||
</property> |
||||
<property name="checkable" > |
||||
<bool>true</bool> |
||||
</property> |
||||
</widget> |
||||
</item> |
||||
<item> |
||||
<widget class="QToolButton" name="BtnUnderline" > |
||||
<property name="toolTip" > |
||||
<string>Underlined</string> |
||||
</property> |
||||
<property name="text" > |
||||
<string>U</string> |
||||
</property> |
||||
<property name="checkable" > |
||||
<bool>true</bool> |
||||
</property> |
||||
</widget> |
||||
</item> |
||||
<item> |
||||
<widget class="QToolButton" name="BtnAlignLeft" > |
||||
<property name="toolTip" > |
||||
<string>Left-Aligned</string> |
||||
</property> |
||||
<property name="text" > |
||||
<string>L</string> |
||||
</property> |
||||
<property name="checkable" > |
||||
<bool>true</bool> |
||||
</property> |
||||
</widget> |
||||
</item> |
||||
<item> |
||||
<widget class="QToolButton" name="BtnAlignCenter" > |
||||
<property name="toolTip" > |
||||
<string>Centered</string> |
||||
</property> |
||||
<property name="text" > |
||||
<string>C</string> |
||||
</property> |
||||
<property name="checkable" > |
||||
<bool>true</bool> |
||||
</property> |
||||
</widget> |
||||
</item> |
||||
<item> |
||||
<widget class="QToolButton" name="BtnAlignRight" > |
||||
<property name="toolTip" > |
||||
<string>Right-Aligned</string> |
||||
</property> |
||||
<property name="text" > |
||||
<string>R</string> |
||||
</property> |
||||
<property name="checkable" > |
||||
<bool>true</bool> |
||||
</property> |
||||
</widget> |
||||
</item> |
||||
<item> |
||||
<widget class="QToolButton" name="BtnAlignBlock" > |
||||
<property name="toolTip" > |
||||
<string>Justified</string> |
||||
</property> |
||||
<property name="text" > |
||||
<string>B</string> |
||||
</property> |
||||
<property name="checkable" > |
||||
<bool>true</bool> |
||||
</property> |
||||
</widget> |
||||
</item> |
||||
<item> |
||||
<widget class="QToolButton" name="BtnColor" > |
||||
<property name="toolTip" > |
||||
<string>Text Color</string> |
||||
</property> |
||||
<property name="text" > |
||||
<string>C</string> |
||||
</property> |
||||
</widget> |
||||
</item> |
||||
<item> |
||||
<widget class="QComboBox" name="FontSize" > |
||||
<property name="toolTip" > |
||||
<string>Font Size</string> |
||||
</property> |
||||
<property name="editable" > |
||||
<bool>true</bool> |
||||
</property> |
||||
<item> |
||||
<property name="text" > |
||||
<string>6</string> |
||||
</property> |
||||
</item> |
||||
<item> |
||||
<property name="text" > |
||||
<string>7</string> |
||||
</property> |
||||
</item> |
||||
<item> |
||||
<property name="text" > |
||||
<string>8</string> |
||||
</property> |
||||
</item> |
||||
<item> |
||||
<property name="text" > |
||||
<string>9</string> |
||||
</property> |
||||
</item> |
||||
<item> |
||||
<property name="text" > |
||||
<string>10</string> |
||||
</property> |
||||
</item> |
||||
<item> |
||||
<property name="text" > |
||||
<string>11</string> |
||||
</property> |
||||
</item> |
||||
<item> |
||||
<property name="text" > |
||||
<string>12</string> |
||||
</property> |
||||
</item> |
||||
<item> |
||||
<property name="text" > |
||||
<string>14</string> |
||||
</property> |
||||
</item> |
||||
<item> |
||||
<property name="text" > |
||||
<string>16</string> |
||||
</property> |
||||
</item> |
||||
<item> |
||||
<property name="text" > |
||||
<string>18</string> |
||||
</property> |
||||
</item> |
||||
<item> |
||||
<property name="text" > |
||||
<string>20</string> |
||||
</property> |
||||
</item> |
||||
<item> |
||||
<property name="text" > |
||||
<string>22</string> |
||||
</property> |
||||
</item> |
||||
<item> |
||||
<property name="text" > |
||||
<string>24</string> |
||||
</property> |
||||
</item> |
||||
<item> |
||||
<property name="text" > |
||||
<string>26</string> |
||||
</property> |
||||
</item> |
||||
<item> |
||||
<property name="text" > |
||||
<string>28</string> |
||||
</property> |
||||
</item> |
||||
<item> |
||||
<property name="text" > |
||||
<string>36</string> |
||||
</property> |
||||
</item> |
||||
<item> |
||||
<property name="text" > |
||||
<string>42</string> |
||||
</property> |
||||
</item> |
||||
<item> |
||||
<property name="text" > |
||||
<string>78</string> |
||||
</property> |
||||
</item> |
||||
</widget> |
||||
</item> |
||||
<item> |
||||
<widget class="QToolButton" name="BtnTemplates" > |
||||
<property name="toolTip" > |
||||
<string>Templates</string> |
||||
</property> |
||||
<property name="text" > |
||||
<string>T</string> |
||||
</property> |
||||
<property name="popupMode" > |
||||
<enum>QToolButton::InstantPopup</enum> |
||||
</property> |
||||
<property name="arrowType" > |
||||
<enum>Qt::NoArrow</enum> |
||||
</property> |
||||
</widget> |
||||
</item> |
||||
<item> |
||||
<spacer> |
||||
<property name="orientation" > |
||||
<enum>Qt::Horizontal</enum> |
||||
</property> |
||||
<property name="sizeHint" > |
||||
<size> |
||||
<width>40</width> |
||||
<height>20</height> |
||||
</size> |
||||
</property> |
||||
</spacer> |
||||
</item> |
||||
</layout> |
||||
</item> |
||||
<item> |
||||
<widget class="QTextEdit" name="RichEdit" /> |
||||
</item> |
||||
</layout> |
||||
</widget> |
||||
<widget class="QWidget" name="tab_2" > |
||||
<attribute name="title" > |
||||
<string>HTML</string> |
||||
</attribute> |
||||
<layout class="QVBoxLayout" > |
||||
<property name="margin" > |
||||
<number>9</number> |
||||
</property> |
||||
<property name="spacing" > |
||||
<number>6</number> |
||||
</property> |
||||
<item> |
||||
<widget class="QTextEdit" name="HtmlEdit" > |
||||
<property name="acceptRichText" > |
||||
<bool>false</bool> |
||||
</property> |
||||
</widget> |
||||
</item> |
||||
</layout> |
||||
</widget> |
||||
</widget> |
||||
</item> |
||||
<item> |
||||
<layout class="QHBoxLayout" > |
||||
<property name="margin" > |
||||
<number>0</number> |
||||
</property> |
||||
<property name="spacing" > |
||||
<number>6</number> |
||||
</property> |
||||
<item> |
||||
<widget class="QPushButton" name="ButtonRestore" > |
||||
<property name="text" > |
||||
<string>Restore Default</string> |
||||
</property> |
||||
<property name="autoDefault" > |
||||
<bool>false</bool> |
||||
</property> |
||||
</widget> |
||||
</item> |
||||
<item> |
||||
<spacer> |
||||
<property name="orientation" > |
||||
<enum>Qt::Horizontal</enum> |
||||
</property> |
||||
<property name="sizeHint" > |
||||
<size> |
||||
<width>40</width> |
||||
<height>20</height> |
||||
</size> |
||||
</property> |
||||
</spacer> |
||||
</item> |
||||
<item> |
||||
<widget class="QPushButton" name="ButtonSave" > |
||||
<property name="text" > |
||||
<string>Save</string> |
||||
</property> |
||||
<property name="autoDefault" > |
||||
<bool>false</bool> |
||||
</property> |
||||
</widget> |
||||
</item> |
||||
<item> |
||||
<widget class="QPushButton" name="ButtonCancel" > |
||||
<property name="text" > |
||||
<string>Cancel</string> |
||||
</property> |
||||
<property name="autoDefault" > |
||||
<bool>false</bool> |
||||
</property> |
||||
</widget> |
||||
</item> |
||||
</layout> |
||||
</item> |
||||
</layout> |
||||
</widget> |
||||
<resources/> |
||||
<connections/> |
||||
</ui> |
@ -0,0 +1,131 @@ |
||||
<ui version="4.0" > |
||||
<class>ExpiredEntriesDialog</class> |
||||
<widget class="QDialog" name="ExpiredEntriesDialog" > |
||||
<property name="geometry" > |
||||
<rect> |
||||
<x>0</x> |
||||
<y>0</y> |
||||
<width>588</width> |
||||
<height>408</height> |
||||
</rect> |
||||
</property> |
||||
<property name="windowTitle" > |
||||
<string>Expired Entries</string> |
||||
</property> |
||||
<layout class="QVBoxLayout" > |
||||
<property name="margin" > |
||||
<number>9</number> |
||||
</property> |
||||
<property name="spacing" > |
||||
<number>6</number> |
||||
</property> |
||||
<item> |
||||
<spacer> |
||||
<property name="orientation" > |
||||
<enum>Qt::Vertical</enum> |
||||
</property> |
||||
<property name="sizeType" > |
||||
<enum>QSizePolicy::Fixed</enum> |
||||
</property> |
||||
<property name="sizeHint" > |
||||
<size> |
||||
<width>20</width> |
||||
<height>50</height> |
||||
</size> |
||||
</property> |
||||
</spacer> |
||||
</item> |
||||
<item> |
||||
<widget class="QLabel" name="label" > |
||||
<property name="text" > |
||||
<string>Double click on an entry to jump to it.</string> |
||||
</property> |
||||
</widget> |
||||
</item> |
||||
<item> |
||||
<widget class="QTreeWidget" name="treeWidget" > |
||||
<property name="rootIsDecorated" > |
||||
<bool>false</bool> |
||||
</property> |
||||
<property name="uniformRowHeights" > |
||||
<bool>true</bool> |
||||
</property> |
||||
<property name="itemsExpandable" > |
||||
<bool>false</bool> |
||||
</property> |
||||
<property name="sortingEnabled" > |
||||
<bool>true</bool> |
||||
</property> |
||||
<property name="allColumnsShowFocus" > |
||||
<bool>true</bool> |
||||
</property> |
||||
<column> |
||||
<property name="text" > |
||||
<string>Group</string> |
||||
</property> |
||||
</column> |
||||
<column> |
||||
<property name="text" > |
||||
<string>Title</string> |
||||
</property> |
||||
</column> |
||||
<column> |
||||
<property name="text" > |
||||
<string>Username</string> |
||||
</property> |
||||
</column> |
||||
<column> |
||||
<property name="text" > |
||||
<string>Expired</string> |
||||
</property> |
||||
</column> |
||||
</widget> |
||||
</item> |
||||
<item> |
||||
<widget class="QDialogButtonBox" name="buttonBox" > |
||||
<property name="orientation" > |
||||
<enum>Qt::Horizontal</enum> |
||||
</property> |
||||
<property name="standardButtons" > |
||||
<set>QDialogButtonBox::Close</set> |
||||
</property> |
||||
</widget> |
||||
</item> |
||||
</layout> |
||||
</widget> |
||||
<resources/> |
||||
<connections> |
||||
<connection> |
||||
<sender>buttonBox</sender> |
||||
<signal>accepted()</signal> |
||||
<receiver>ExpiredEntriesDialog</receiver> |
||||
<slot>accept()</slot> |
||||
<hints> |
||||
<hint type="sourcelabel" > |
||||
<x>248</x> |
||||
<y>254</y> |
||||
</hint> |
||||
<hint type="destinationlabel" > |
||||
<x>157</x> |
||||
<y>274</y> |
||||
</hint> |
||||
</hints> |
||||
</connection> |
||||
<connection> |
||||
<sender>buttonBox</sender> |
||||
<signal>rejected()</signal> |
||||
<receiver>ExpiredEntriesDialog</receiver> |
||||
<slot>reject()</slot> |
||||
<hints> |
||||
<hint type="sourcelabel" > |
||||
<x>316</x> |
||||
<y>260</y> |
||||
</hint> |
||||
<hint type="destinationlabel" > |
||||
<x>286</x> |
||||
<y>274</y> |
||||
</hint> |
||||
</hints> |
||||
</connection> |
||||
</connections> |
||||
</ui> |