Browse Source

TQt4 port keep

This enables compilation under both Qt3 and Qt4


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/keep@1239292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 11 years ago
parent
commit
e573b522d4
  1. 70
      keep/app/actionview.ui
  2. 36
      keep/app/addbackupwizard.cpp
  3. 9
      keep/app/addbackupwizard.h
  4. 28
      keep/app/addbackupwizard1view.ui
  5. 26
      keep/app/addbackupwizard2view.ui
  6. 62
      keep/app/addbackupwizard3view.ui
  7. 30
      keep/app/advancedbackupconfigdialog.cpp
  8. 9
      keep/app/advancedbackupconfigdialog.h
  9. 8
      keep/app/advancedbackupconfigview.ui
  10. 24
      keep/app/backupconfigdialog.cpp
  11. 3
      keep/app/backupconfigdialog.h
  12. 14
      keep/app/backuplistview.ui
  13. 32
      keep/app/backuplistwidget.cpp
  14. 3
      keep/app/backuplistwidget.h
  15. 40
      keep/app/forcebackupdialog.cpp
  16. 5
      keep/app/forcebackupdialog.h
  17. 8
      keep/app/forcebackupdialogview.ui
  18. 32
      keep/app/generalconfigview.ui
  19. 32
      keep/app/includeexcludedialog.cpp
  20. 7
      keep/app/includeexcludedialog.h
  21. 26
      keep/app/includeexcludeview.ui
  22. 78
      keep/app/keepmainwindow.cpp
  23. 5
      keep/app/keepmainwindow.h
  24. 32
      keep/app/logdialog.cpp
  25. 5
      keep/app/logdialog.h
  26. 8
      keep/app/logview.ui
  27. 102
      keep/app/restorebackupwizard.cpp
  28. 11
      keep/app/restorebackupwizard.h
  29. 32
      keep/app/restorebackupwizard1view.ui
  30. 36
      keep/app/restorebackupwizard2view.ui
  31. 32
      keep/app/restorebackupwizard3view.ui
  32. 30
      keep/common/backup.cpp
  33. 30
      keep/common/backup.h
  34. 30
      keep/common/backupconfig.cpp
  35. 10
      keep/common/backupconfig.h
  36. 14
      keep/common/backuplistviewitem.cpp
  37. 4
      keep/common/backuplistviewitem.h
  38. 14
      keep/common/includeexcludeitem.cpp
  39. 12
      keep/common/includeexcludeitem.h
  40. 10
      keep/common/incrementlistviewitem.cpp
  41. 14
      keep/common/incrementlistviewitem.h
  42. 36
      keep/common/listviewtooltip.h
  43. 6
      keep/common/rdblistener.cpp
  44. 17
      keep/common/rdblistener.h
  45. 142
      keep/common/rdbmanager.cpp
  46. 29
      keep/common/rdbmanager.h
  47. 34
      keep/kded/keepkded.cpp
  48. 13
      keep/kded/keepkded.h

70
keep/app/actionview.ui

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ActionView</class>
<widget class="QWidget">
<widget class="TQWidget">
<property name="name">
<cstring>ActionView</cstring>
</property>
@ -27,15 +27,15 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget" row="0" column="0">
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
<cstring>layout22</cstring>
<cstring>tqlayout22</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QGroupBox">
<widget class="TQGroupBox">
<property name="name">
<cstring>m_grpSystem</cstring>
</property>
@ -54,17 +54,17 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget" row="0" column="0">
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
<cstring>layout21</cstring>
<cstring>tqlayout21</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout15</cstring>
<cstring>tqlayout15</cstring>
</property>
<hbox>
<property name="name">
@ -82,13 +82,13 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>35</width>
<height>35</height>
</size>
</property>
<property name="maximumSize">
<property name="tqmaximumSize">
<size>
<width>35</width>
<height>32767</height>
@ -116,9 +116,9 @@
</widget>
</hbox>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout16</cstring>
<cstring>tqlayout16</cstring>
</property>
<hbox>
<property name="name">
@ -136,13 +136,13 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>35</width>
<height>35</height>
</size>
</property>
<property name="maximumSize">
<property name="tqmaximumSize">
<size>
<width>35</width>
<height>35</height>
@ -170,9 +170,9 @@
</widget>
</hbox>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout17</cstring>
<cstring>tqlayout17</cstring>
</property>
<hbox>
<property name="name">
@ -190,13 +190,13 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>35</width>
<height>35</height>
</size>
</property>
<property name="maximumSize">
<property name="tqmaximumSize">
<size>
<width>35</width>
<height>32767</height>
@ -224,9 +224,9 @@
</widget>
</hbox>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout15</cstring>
<cstring>tqlayout15</cstring>
</property>
<hbox>
<property name="name">
@ -244,13 +244,13 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>35</width>
<height>35</height>
</size>
</property>
<property name="maximumSize">
<property name="tqmaximumSize">
<size>
<width>35</width>
<height>32767</height>
@ -278,9 +278,9 @@
</widget>
</hbox>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout15_4</cstring>
<cstring>tqlayout15_4</cstring>
</property>
<hbox>
<property name="name">
@ -298,13 +298,13 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>35</width>
<height>35</height>
</size>
</property>
<property name="maximumSize">
<property name="tqmaximumSize">
<size>
<width>35</width>
<height>32767</height>
@ -336,7 +336,7 @@
</widget>
</grid>
</widget>
<widget class="QGroupBox">
<widget class="TQGroupBox">
<property name="name">
<cstring>m_grpDaemon</cstring>
</property>
@ -355,17 +355,17 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget" row="0" column="0">
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
<cstring>layout13</cstring>
<cstring>tqlayout13</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout5</cstring>
<cstring>tqlayout5</cstring>
</property>
<hbox>
<property name="name">
@ -445,9 +445,9 @@
<enum>Horizontal</enum>
</property>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout4</cstring>
<cstring>tqlayout4</cstring>
</property>
<hbox>
<property name="name">
@ -493,7 +493,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>85</height>
@ -506,7 +506,7 @@
</widget>
<customwidgets>
</customwidgets>
<layoutdefaults spacing="6" margin="11"/>
<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kpushbutton.h</includehint>
<includehint>kactivelabel.h</includehint>

36
keep/app/addbackupwizard.cpp

@ -18,17 +18,17 @@
#include "addbackupwizard.h"
#include <qpushbutton.h>
#include <tqpushbutton.h>
#include <kiconloader.h>
#include <qcheckbox.h>
#include <tqcheckbox.h>
#include <kurlrequester.h>
#include <knuminput.h>
#include <kdebug.h>
AddBackupWizard::AddBackupWizard(QWidget *parent,const char* name): KWizard( parent, name, true)
AddBackupWizard::AddBackupWizard(TQWidget *tqparent,const char* name): KWizard( tqparent, name, true)
{
initView();
resize( minimumSizeHint() );
resize( tqminimumSizeHint() );
setNextEnabled(page1,false);
setNextEnabled(page2,false);
@ -39,7 +39,7 @@ AddBackupWizard::AddBackupWizard(QWidget *parent,const char* name): KWizard( par
initConnections();
}
AddBackupWizard::AddBackupWizard(Backup backup,QWidget *parent,const char* name): KWizard( parent, name, true)
AddBackupWizard::AddBackupWizard(Backup backup,TQWidget *tqparent,const char* name): KWizard( tqparent, name, true)
{
initView();
@ -58,7 +58,7 @@ AddBackupWizard::AddBackupWizard(Backup backup,QWidget *parent,const char* name)
includeExcludeDialog->setIncludeExcludeList(backup.includeExcludeList());
advancedBackupConfigDialog->setOptionList(backup.optionList());
resize( minimumSizeHint() );
resize( tqminimumSizeHint() );
setNextEnabled(page1,true);
setNextEnabled(page2,true);
@ -82,16 +82,16 @@ void AddBackupWizard::initView()
void AddBackupWizard::initConnections()
{
connect( addBackupWizard1View->source, SIGNAL( textChanged(const QString&)), this, SLOT( slotPage1Changed() ) );
connect( addBackupWizard2View->dest, SIGNAL( textChanged(const QString&)), this, SLOT( slotPage2Changed() ) );
connect( addBackupWizard3View->advancedConfig, SIGNAL( clicked()),this,SLOT(slotShowAdvancedConfig()));
connect( addBackupWizard1View->includeExclude, SIGNAL( clicked()),this,SLOT(slotShowIncludeExclude()));
connect( finishButton(), SIGNAL( clicked()), this, SLOT( slotFinishClicked() ) );
connect( addBackupWizard1View->source, TQT_SIGNAL( textChanged(const TQString&)), this, TQT_SLOT( slotPage1Changed() ) );
connect( addBackupWizard2View->dest, TQT_SIGNAL( textChanged(const TQString&)), this, TQT_SLOT( slotPage2Changed() ) );
connect( addBackupWizard3View->advancedConfig, TQT_SIGNAL( clicked()),this,TQT_SLOT(slotShowAdvancedConfig()));
connect( addBackupWizard1View->includeExclude, TQT_SIGNAL( clicked()),this,TQT_SLOT(slotShowIncludeExclude()));
connect( finishButton(), TQT_SIGNAL( clicked()), this, TQT_SLOT( slotFinishClicked() ) );
}
void AddBackupWizard::setupPage1()
{
page1 = new QHBox( this );
page1 = new TQHBox( this );
page1->setSpacing(0);
page1->setMargin(0);
@ -105,7 +105,7 @@ void AddBackupWizard::setupPage1()
void AddBackupWizard::setupPage2()
{
page2 = new QHBox( this );
page2 = new TQHBox( this );
page2->setSpacing(0);
page2->setMargin(0);
@ -117,7 +117,7 @@ void AddBackupWizard::setupPage2()
void AddBackupWizard::setupPage3()
{
page3 = new QHBox( this );
page3 = new TQHBox( this );
page3->setSpacing(0);
page3->setMargin(0);
@ -164,17 +164,17 @@ void AddBackupWizard::slotShowIncludeExclude()
Backup AddBackupWizard::backup()
{
QString source = addBackupWizard1View->source->url();
QString dest = addBackupWizard2View->dest->url();
TQString source = addBackupWizard1View->source->url();
TQString dest = addBackupWizard2View->dest->url();
int interval = addBackupWizard3View->interval->value();
int deleteAfter = addBackupWizard3View->deleteAfter->value();
bool neverDelete = addBackupWizard3View->neverDelete->isChecked();
bool useCompression = addBackupWizard3View->useCompression->isChecked();
bool excludeSpecialFiles = addBackupWizard3View->excludeSpecialFiles->isChecked();
bool useAdvancedConfig = addBackupWizard3View->useAdvancedConfig->isChecked();
QStringList optionList = advancedBackupConfigDialog->optionList();
TQStringList optionList = advancedBackupConfigDialog->optionList();
bool useIncludeExclude = addBackupWizard1View->useIncludeExclude->isChecked();
QStringList includeExcludeList = includeExcludeDialog->includeExcludeList();
TQStringList includeExcludeList = includeExcludeDialog->includeExcludeList();
Backup backup(source,dest,interval,deleteAfter,neverDelete,useCompression,excludeSpecialFiles,useAdvancedConfig,optionList,useIncludeExclude,includeExcludeList);
return backup;

9
keep/app/addbackupwizard.h

@ -20,7 +20,7 @@
#define _ADDBACKUPWIZARD_H_
#include <kwizard.h>
#include <qhbox.h>
#include <tqhbox.h>
#include "backup.h"
#include "advancedbackupconfigdialog.h"
@ -32,9 +32,10 @@
class AddBackupWizard: public KWizard
{
Q_OBJECT
TQ_OBJECT
public:
AddBackupWizard(QWidget *parent, const char *name);
AddBackupWizard(Backup backup,QWidget *parent, const char *name);
AddBackupWizard(TQWidget *tqparent, const char *name);
AddBackupWizard(Backup backup,TQWidget *tqparent, const char *name);
Backup backup();
@ -58,7 +59,7 @@ private:
void initView();
void initConnections();
QHBox *page1,*page2,*page3;
TQHBox *page1,*page2,*page3;
AddBackupWizard1View *addBackupWizard1View;
AddBackupWizard2View *addBackupWizard2View;
AddBackupWizard3View *addBackupWizard3View;

28
keep/app/addbackupwizard1view.ui

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>AddBackupWizard1View</class>
<widget class="QWidget">
<widget class="TQWidget">
<property name="name">
<cstring>AddBackupWizard1View</cstring>
</property>
@ -30,23 +30,23 @@
<property name="spacing">
<number>0</number>
</property>
<widget class="QLayoutWidget" row="0" column="0">
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
<cstring>layout17</cstring>
<cstring>tqlayout17</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout6</cstring>
<cstring>tqlayout6</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>pixmapLabel1</cstring>
</property>
@ -67,7 +67,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>130</height>
@ -76,9 +76,9 @@
</spacer>
</vbox>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout16</cstring>
<cstring>tqlayout16</cstring>
</property>
<vbox>
<property name="name">
@ -113,15 +113,15 @@
</sizepolicy>
</property>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout11</cstring>
<cstring>tqlayout11</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>useIncludeExclude</cstring>
</property>
@ -163,7 +163,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>260</height>
@ -191,7 +191,7 @@
<slot>setEnabled(bool)</slot>
</connection>
</connections>
<layoutdefaults spacing="6" margin="11"/>
<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kactivelabel.h</includehint>
<includehint>kurlrequester.h</includehint>

26
keep/app/addbackupwizard2view.ui

File diff suppressed because one or more lines are too long

62
keep/app/addbackupwizard3view.ui

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>AddBackupWizard3View</class>
<widget class="QWidget">
<widget class="TQWidget">
<property name="name">
<cstring>AddBackupWizard3View</cstring>
</property>
@ -30,23 +30,23 @@
<property name="spacing">
<number>0</number>
</property>
<widget class="QLayoutWidget" row="0" column="0">
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
<cstring>layout16</cstring>
<cstring>tqlayout16</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout6</cstring>
<cstring>tqlayout6</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>pixmapLabel1</cstring>
</property>
@ -75,7 +75,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>130</height>
@ -84,9 +84,9 @@
</spacer>
</vbox>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout15</cstring>
<cstring>tqlayout15</cstring>
</property>
<vbox>
<property name="name">
@ -108,7 +108,7 @@
<string>Set the desired options for your backup.</string>
</property>
</widget>
<widget class="QGroupBox">
<widget class="TQGroupBox">
<property name="name">
<cstring>groupBox2</cstring>
</property>
@ -127,25 +127,25 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget" row="0" column="0">
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
<cstring>layout8</cstring>
<cstring>tqlayout8</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout6_2</cstring>
<cstring>tqlayout6_2</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout5</cstring>
<cstring>tqlayout5</cstring>
</property>
<vbox>
<property name="name">
@ -185,9 +185,9 @@
</widget>
</vbox>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout4</cstring>
<cstring>tqlayout4</cstring>
</property>
<vbox>
<property name="name">
@ -247,15 +247,15 @@
</widget>
</hbox>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout7</cstring>
<cstring>tqlayout7</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>neverDelete</cstring>
</property>
@ -277,7 +277,7 @@
</widget>
</grid>
</widget>
<widget class="QGroupBox">
<widget class="TQGroupBox">
<property name="name">
<cstring>groupBox3</cstring>
</property>
@ -296,15 +296,15 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget" row="0" column="0">
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
<cstring>layout12</cstring>
<cstring>tqlayout12</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>useCompression</cstring>
</property>
@ -323,7 +323,7 @@
<bool>true</bool>
</property>
</widget>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>excludeSpecialFiles</cstring>
</property>
@ -334,15 +334,15 @@
<bool>true</bool>
</property>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout11</cstring>
<cstring>tqlayout11</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>useAdvancedConfig</cstring>
</property>
@ -388,7 +388,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>46</height>
@ -434,7 +434,7 @@
<slot>setEnabled(bool)</slot>
</connection>
</connections>
<layoutdefaults spacing="6" margin="11"/>
<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kactivelabel.h</includehint>
<includehint>kactivelabel.h</includehint>

30
keep/app/advancedbackupconfigdialog.cpp

@ -19,32 +19,32 @@
#include "advancedbackupconfigdialog.h"
#include <klocale.h>
#include <qlayout.h>
#include <tqlayout.h>
#include <kurl.h>
#include <dcopref.h>
#include <kdebug.h>
#include <kactivelabel.h>
#include <kmimetype.h>
#include <qpixmap.h>
#include <tqpixmap.h>
#include <kapplication.h>
#include <kiconloader.h>
#include <qstringlist.h>
#include <tqstringlist.h>
#include <kactionselector.h>
AdvancedBackupConfigDialog::AdvancedBackupConfigDialog(QWidget *parent):KDialogBase(Plain, i18n("Advanced Backup Configuration"),
Help|Ok, Ok, parent, "advancedBackupConfigDialog", true, false)
AdvancedBackupConfigDialog::AdvancedBackupConfigDialog(TQWidget *tqparent):KDialogBase(Plain, i18n("Advanced Backup Configuration"),
Help|Ok, Ok, tqparent, "advancedBackupConfigDialog", true, false)
{
QGridLayout *topLayout = new QGridLayout(plainPage());
TQGridLayout *topLayout = new TQGridLayout(plainPage());
m_advancedBackupConfigView = new AdvancedBackupConfigView(plainPage());
topLayout->addWidget( m_advancedBackupConfigView,0,0 );
m_advancedBackupConfigView->optionList->availableListBox()->insertStringList(allOptionList());
resize( QSize(350,450).expandedTo(minimumSizeHint()) );
resize( TQSize(350,450).expandedTo(tqminimumSizeHint()) );
}
QStringList AdvancedBackupConfigDialog::optionList()
TQStringList AdvancedBackupConfigDialog::optionList()
{
QStringList options;
TQStringList options;
for (uint i=0;i<m_advancedBackupConfigView->optionList->selectedListBox()->count();i++)
{
options.append(m_advancedBackupConfigView->optionList->selectedListBox()->text(i));
@ -52,11 +52,11 @@ QStringList AdvancedBackupConfigDialog::optionList()
return options;
}
void AdvancedBackupConfigDialog::setOptionList(QStringList optionList)
void AdvancedBackupConfigDialog::setOptionList(TQStringList optionList)
{
QStringList alloptions = allOptionList();
QStringList available;
for ( QStringList::Iterator it = alloptions.begin(); it != alloptions.end(); ++it )
TQStringList alloptions = allOptionList();
TQStringList available;
for ( TQStringList::Iterator it = alloptions.begin(); it != alloptions.end(); ++it )
{
if ( optionList.grep(*it).size() == 0 )
{
@ -69,9 +69,9 @@ void AdvancedBackupConfigDialog::setOptionList(QStringList optionList)
m_advancedBackupConfigView->optionList->selectedListBox()->insertStringList(optionList);
}
QStringList AdvancedBackupConfigDialog::allOptionList()
TQStringList AdvancedBackupConfigDialog::allOptionList()
{
QStringList options;
TQStringList options;
options.append("--no-hard-links");
options.append("--exclude-special-files");
options.append("--exclude-device-files");

9
keep/app/advancedbackupconfigdialog.h

@ -26,16 +26,17 @@
class AdvancedBackupConfigDialog: public KDialogBase
{
Q_OBJECT
TQ_OBJECT
public:
AdvancedBackupConfigDialog(QWidget *parent);
AdvancedBackupConfigDialog(TQWidget *tqparent);
~AdvancedBackupConfigDialog() {};
QStringList optionList();
void setOptionList(QStringList optionList);
TQStringList optionList();
void setOptionList(TQStringList optionList);
private:
QStringList allOptionList();
TQStringList allOptionList();
AdvancedBackupConfigView *m_advancedBackupConfigView;
};

8
keep/app/advancedbackupconfigview.ui

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>AdvancedBackupConfigView</class>
<widget class="QWidget">
<widget class="TQWidget">
<property name="name">
<cstring>AdvancedBackupConfigView</cstring>
</property>
@ -22,9 +22,9 @@
<property name="spacing">
<number>0</number>
</property>
<widget class="QLayoutWidget" row="0" column="0">
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
<cstring>layout3</cstring>
<cstring>tqlayout3</cstring>
</property>
<vbox>
<property name="name">
@ -82,7 +82,7 @@
</widget>
<customwidgets>
</customwidgets>
<layoutdefaults spacing="6" margin="11"/>
<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kactivelabel.h</includehint>
<includehint>kactionselector.h</includehint>

24
keep/app/backupconfigdialog.cpp

@ -19,40 +19,40 @@
#include "backupconfigdialog.h"
#include <klocale.h>
#include <qlayout.h>
#include <tqlayout.h>
#include <kurl.h>
#include <dcopref.h>
#include <kdebug.h>
#include <kactivelabel.h>
#include <kmimetype.h>
#include <qpixmap.h>
#include <tqpixmap.h>
#include <kcombobox.h>
#include <klineedit.h>
#include <kprogress.h>
#include <qlabel.h>
#include <qgroupbox.h>
#include <qradiobutton.h>
#include <qcheckbox.h>
#include <tqlabel.h>
#include <tqgroupbox.h>
#include <tqradiobutton.h>
#include <tqcheckbox.h>
#include <kmessagebox.h>
#include <kapplication.h>
#include <kiconloader.h>
#include <qvaluelist.h>
#include <tqvaluelist.h>
#include "backupconfig.h"
BackupConfigDialog::BackupConfigDialog(QWidget *parent):KDialogBase(Plain, i18n("Configure backups"),
Help|Cancel|Ok, Cancel, parent, "configBackups", true, false)
BackupConfigDialog::BackupConfigDialog(TQWidget *tqparent):KDialogBase(Plain, i18n("Configure backups"),
Help|Cancel|Ok, Cancel, tqparent, "configBackups", true, false)
{
KIconLoader *icons = KGlobal::iconLoader();
QFrame *page = plainPage();
QVBoxLayout *topLayout = new QVBoxLayout( page, 0, KDialog::spacingHint() );
TQFrame *page = plainPage();
TQVBoxLayout *topLayout = new TQVBoxLayout( page, 0, KDialog::spacingHint() );
m_backupListWidget = new BackupListWidget(page,"backupListWidget");
topLayout->addWidget( m_backupListWidget );
setMainWidget(page);
connect( this, SIGNAL( okClicked()),this, SLOT(saveSettings()));
connect( this, TQT_SIGNAL( okClicked()),this, TQT_SLOT(saveSettings()));
}
void BackupConfigDialog::saveSettings()

3
keep/app/backupconfigdialog.h

@ -27,9 +27,10 @@ class BackupConfigDialog: public KDialogBase
{
Q_OBJECT
TQ_OBJECT
public:
BackupConfigDialog(QWidget *parent);
BackupConfigDialog(TQWidget *tqparent);
~BackupConfigDialog() {};
public slots:

14
keep/app/backuplistview.ui

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>BackupListView</class>
<widget class="QWidget">
<widget class="TQWidget">
<property name="name">
<cstring>BackupListView</cstring>
</property>
@ -30,9 +30,9 @@
<property name="spacing">
<number>0</number>
</property>
<widget class="QLayoutWidget" row="0" column="0">
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
<cstring>layout4</cstring>
<cstring>tqlayout4</cstring>
</property>
<hbox>
<property name="name">
@ -90,9 +90,9 @@
<enum>LastColumn</enum>
</property>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout3</cstring>
<cstring>tqlayout3</cstring>
</property>
<vbox>
<property name="name">
@ -132,7 +132,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>480</height>
@ -147,7 +147,7 @@
</widget>
<customwidgets>
</customwidgets>
<layoutdefaults spacing="6" margin="11"/>
<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klistview.h</includehint>
<includehint>kpushbutton.h</includehint>

32
keep/app/backuplistwidget.cpp

@ -18,9 +18,9 @@
#include "backuplistwidget.h"
#include <qpushbutton.h>
#include <tqpushbutton.h>
#include <klistbox.h>
#include <qstringlist.h>
#include <tqstringlist.h>
#include <kurlrequester.h>
#include <kdebug.h>
@ -29,15 +29,15 @@
#include "addbackupwizard.h"
#include "backupconfig.h"
BackupListWidget::BackupListWidget(QWidget *parent,char *name): BackupListView(parent,name)
BackupListWidget::BackupListWidget(TQWidget *tqparent,char *name): BackupListView(tqparent,name)
{
QToolTip::remove(m_lstBackup);
TQToolTip::remove(m_lstBackup);
new ListViewToolTip(m_lstBackup);
slotReadSettings();
connect( m_btnAdd, SIGNAL( clicked()), this, SLOT( slotAddClicked() ) );
connect( m_btnRemove, SIGNAL( clicked()), this, SLOT( slotRemoveClicked() ) );
connect( m_btnEdit, SIGNAL( clicked()), this, SLOT( slotEditClicked() ) );
connect( m_btnAdd, TQT_SIGNAL( clicked()), this, TQT_SLOT( slotAddClicked() ) );
connect( m_btnRemove, TQT_SIGNAL( clicked()), this, TQT_SLOT( slotRemoveClicked() ) );
connect( m_btnEdit, TQT_SIGNAL( clicked()), this, TQT_SLOT( slotEditClicked() ) );
}
BackupListWidget::~BackupListWidget()
@ -48,8 +48,8 @@ void BackupListWidget::slotReadSettings()
{
m_lstBackup->clear();
BackupConfig *backupConfig = new BackupConfig();
QValueList<Backup> backupList = backupConfig->backupList();
QValueList<Backup>::iterator it;
TQValueList<Backup> backupList = backupConfig->backupList();
TQValueList<Backup>::iterator it;
for ( it = backupList.begin(); it != backupList.end(); ++it )
{
BackupListViewItem *item = new BackupListViewItem(m_lstBackup,*it);
@ -59,10 +59,10 @@ void BackupListWidget::slotReadSettings()
void BackupListWidget::slotSaveSettings()
{
QValueList<Backup> backupList;
QListViewItemIterator it( m_lstBackup );
TQValueList<Backup> backupList;
TQListViewItemIterator it( m_lstBackup );
while ( it.current() ) {
QListViewItem *item = it.current();
TQListViewItem *item = it.current();
BackupListViewItem *backupItem = static_cast<BackupListViewItem*>(item);
backupList.append(backupItem->backup());
++it;
@ -75,18 +75,18 @@ void BackupListWidget::slotSaveSettings()
void BackupListWidget::slotAddClicked()
{
AddBackupWizard *wizard = new AddBackupWizard(this,"addBackupWizard");
connect(wizard,SIGNAL(backupSetted(Backup) ), this, SLOT(slotAddBackup(Backup)));
connect(wizard,TQT_SIGNAL(backupSetted(Backup) ), this, TQT_SLOT(slotAddBackup(Backup)));
wizard->show();
}
void BackupListWidget::slotEditClicked()
{
QListViewItem *item = m_lstBackup->currentItem();
TQListViewItem *item = m_lstBackup->currentItem();
if ( item )
{
BackupListViewItem *backupItem = static_cast<BackupListViewItem*>(item);
AddBackupWizard *wizard = new AddBackupWizard(backupItem->backup(),this,"addBackupWizard");
connect(wizard,SIGNAL(backupSetted(Backup) ), this, SLOT(slotUpdateBackup(Backup)));
connect(wizard,TQT_SIGNAL(backupSetted(Backup) ), this, TQT_SLOT(slotUpdateBackup(Backup)));
wizard->show();
}
}
@ -103,7 +103,7 @@ void BackupListWidget::slotAddBackup(Backup backup)
void BackupListWidget::slotUpdateBackup(Backup backup)
{
QListViewItem *item = m_lstBackup->currentItem();
TQListViewItem *item = m_lstBackup->currentItem();
if ( item )
{
BackupListViewItem *backupItem = static_cast<BackupListViewItem*>(item);

3
keep/app/backuplistwidget.h

@ -25,8 +25,9 @@
class BackupListWidget: public BackupListView
{
Q_OBJECT
TQ_OBJECT
public:
BackupListWidget(QWidget *parent, char *name);
BackupListWidget(TQWidget *tqparent, char *name);
~BackupListWidget();
public slots:

40
keep/app/forcebackupdialog.cpp

@ -19,42 +19,42 @@
#include "forcebackupdialog.h"
#include <klocale.h>
#include <qlayout.h>
#include <tqlayout.h>
#include <kurl.h>
#include <dcopref.h>
#include <kdebug.h>
#include <kactivelabel.h>
#include <kmimetype.h>
#include <qpixmap.h>
#include <tqpixmap.h>
#include <kcombobox.h>
#include <klineedit.h>
#include <kprogress.h>
#include <qlabel.h>
#include <qgroupbox.h>
#include <qradiobutton.h>
#include <qcheckbox.h>
#include <tqlabel.h>
#include <tqgroupbox.h>
#include <tqradiobutton.h>
#include <tqcheckbox.h>
#include <kmessagebox.h>
#include <kapplication.h>
#include <kiconloader.h>
#include <qvaluelist.h>
#include <tqvaluelist.h>
#include <kmessagebox.h>
#include "backupconfig.h"
#include "backuplistviewitem.h"
ForceBackupDialog::ForceBackupDialog(QWidget *parent):KDialogBase(Plain, i18n("Backup now"),
Help|Cancel|Ok, Cancel, parent, "forceBackupDialog", true, false)
ForceBackupDialog::ForceBackupDialog(TQWidget *tqparent):KDialogBase(Plain, i18n("Backup now"),
Help|Cancel|Ok, Cancel, tqparent, "forceBackupDialog", true, false)
{
QGridLayout* toplayout = new QGridLayout(plainPage());
TQGridLayout* toptqlayout = new TQGridLayout(plainPage());
m_view = new ForceBackupDialogView(plainPage());
toplayout->addWidget(m_view,0,0);
toptqlayout->addWidget(m_view,0,0);
loadBackupList();
m_manager = new RDBManager();
connect( m_manager, SIGNAL(backupError(Backup,QString)), this, SLOT(slotBackupError(Backup,QString)) );
connect( m_manager, TQT_SIGNAL(backupError(Backup,TQString)), this, TQT_SLOT(slotBackupError(Backup,TQString)) );
connect( this, SIGNAL(okClicked()), this, SLOT(slotForceBackup()));
connect( this, TQT_SIGNAL(okClicked()), this, TQT_SLOT(slotForceBackup()));
}
ForceBackupDialog::~ForceBackupDialog()
@ -65,8 +65,8 @@ ForceBackupDialog::~ForceBackupDialog()
void ForceBackupDialog::loadBackupList()
{
BackupConfig backupConfig;
QValueList<Backup> backupList = backupConfig.backupList();
QValueList<Backup>::iterator it;
TQValueList<Backup> backupList = backupConfig.backupList();
TQValueList<Backup>::iterator it;
for ( it = backupList.begin(); it != backupList.end(); ++it )
{
new BackupListViewItem(m_view->m_lstBackup,*it);
@ -75,11 +75,11 @@ void ForceBackupDialog::loadBackupList()
void ForceBackupDialog::slotForceBackup()
{
QValueList<Backup> backupList;
QListViewItemIterator it( m_view->m_lstBackup );
TQValueList<Backup> backupList;
TQListViewItemIterator it( m_view->m_lstBackup );
while ( it.current() )
{
QListViewItem *item = it.current();
TQListViewItem *item = it.current();
if ( item->isSelected() )
{
BackupListViewItem *backupItem = static_cast<BackupListViewItem*>(item);
@ -91,9 +91,9 @@ void ForceBackupDialog::slotForceBackup()
m_manager->slotForceBackup(backupList);
}
void ForceBackupDialog::slotBackupError(Backup backup,QString errorMessage)
void ForceBackupDialog::slotBackupError(Backup backup,TQString errorMessage)
{
KMessageBox::error(this,i18n("<p><b>An error occured making %1 backup:</b></p><p>%2</p>").arg(backup.source()).arg(errorMessage));
KMessageBox::error(this,i18n("<p><b>An error occured making %1 backup:</b></p><p>%2</p>").tqarg(backup.source()).tqarg(errorMessage));
}
#include "forcebackupdialog.moc"

5
keep/app/forcebackupdialog.h

@ -29,14 +29,15 @@ class ForceBackupDialog: public KDialogBase
{
Q_OBJECT
TQ_OBJECT
public:
ForceBackupDialog(QWidget *parent);
ForceBackupDialog(TQWidget *tqparent);
~ForceBackupDialog();
public slots:
void slotForceBackup();
void slotBackupError(Backup backup,QString errorMessage);
void slotBackupError(Backup backup,TQString errorMessage);
private:
void loadBackupList();

8
keep/app/forcebackupdialogview.ui

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ForceBackupDialogView</class>
<widget class="QWidget">
<widget class="TQWidget">
<property name="name">
<cstring>ForceBackupDialogView</cstring>
</property>
@ -22,9 +22,9 @@
<property name="spacing">
<number>0</number>
</property>
<widget class="QLayoutWidget" row="0" column="0">
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
<cstring>layout21</cstring>
<cstring>tqlayout21</cstring>
</property>
<vbox>
<property name="name">
@ -121,7 +121,7 @@
</widget>
<customwidgets>
</customwidgets>
<layoutdefaults spacing="6" margin="11"/>
<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kactivelabel.h</includehint>
<includehint>klistview.h</includehint>

32
keep/app/generalconfigview.ui

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>GeneralConfigView</class>
<widget class="QWidget">
<widget class="TQWidget">
<property name="name">
<cstring>GeneralConfigView</cstring>
</property>
@ -19,15 +19,15 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget" row="0" column="0">
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
<cstring>layout6</cstring>
<cstring>tqlayout6</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QGroupBox">
<widget class="TQGroupBox">
<property name="name">
<cstring>groupBox4</cstring>
</property>
@ -38,15 +38,15 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget" row="0" column="0">
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
<cstring>layout7</cstring>
<cstring>tqlayout7</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>kcfg_NotifyBackupError</cstring>
</property>
@ -54,7 +54,7 @@
<string>Notify backup error</string>
</property>
</widget>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>kcfg_NotifyBackupSuccess</cstring>
</property>
@ -66,7 +66,7 @@
</widget>
</grid>
</widget>
<widget class="QGroupBox">
<widget class="TQGroupBox">
<property name="name">
<cstring>groupBox4_2</cstring>
</property>
@ -77,15 +77,15 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget" row="0" column="0">