summaryrefslogtreecommitdiff
path: root/core/pim/addressbook/configdlg.cpp
Unidiff
Diffstat (limited to 'core/pim/addressbook/configdlg.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/configdlg.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/core/pim/addressbook/configdlg.cpp b/core/pim/addressbook/configdlg.cpp
index dee0f11..6c98b5d 100644
--- a/core/pim/addressbook/configdlg.cpp
+++ b/core/pim/addressbook/configdlg.cpp
@@ -1,4 +1,9 @@
1#include "configdlg.h" 1#include "configdlg.h"
2 2
3#include <opie2/opimcontact.h>
4#include "opie2/opimcontactfields.h"
5
6#include <qpe/resource.h>
7
3#include <qcheckbox.h> 8#include <qcheckbox.h>
4#include <qradiobutton.h> 9#include <qradiobutton.h>
@@ -6,13 +11,8 @@
6#include <qpushbutton.h> 11#include <qpushbutton.h>
7 12
8#include <qpe/resource.h>
9
10#include <opie/ocontact.h>
11#include "opie/ocontactfields.h"
12
13ConfigDlg::ConfigDlg( QWidget *parent, const char *name): 13ConfigDlg::ConfigDlg( QWidget *parent, const char *name):
14 ConfigDlg_Base(parent, name, true ) 14 ConfigDlg_Base(parent, name, true )
15{ 15{
16 contFields = OContactFields::trfields(); 16 contFields = Opie::OPimContactFields::trfields();
17 17
18 // We add all Fields into the Listbox 18 // We add all Fields into the Listbox
@@ -22,5 +22,5 @@ ConfigDlg::ConfigDlg( QWidget *parent, const char *name):
22 22
23 // Reset Widget Flags: This was not changeable by designer :( 23 // Reset Widget Flags: This was not changeable by designer :(
24 setWFlags ( WStyle_ContextHelp ); 24 setWFlags ( WStyle_ContextHelp );
25 25
26 // Set Pics to Buttons and Tabs 26 // Set Pics to Buttons and Tabs
@@ -29,9 +29,9 @@ ConfigDlg::ConfigDlg( QWidget *parent, const char *name):
29 m_addButton->setIconSet( QIconSet( Resource::loadPixmap( "addressbook/add" ) ) ); 29 m_addButton->setIconSet( QIconSet( Resource::loadPixmap( "addressbook/add" ) ) );
30 m_removeButton->setIconSet( QIconSet( Resource::loadPixmap( "addressbook/sub" ) ) ); 30 m_removeButton->setIconSet( QIconSet( Resource::loadPixmap( "addressbook/sub" ) ) );
31 31
32 32
33 // Get the translation maps between Field ID and translated strings 33 // Get the translation maps between Field ID and translated strings
34 m_mapStrToID = OContactFields::trFieldsToId(); 34 m_mapStrToID = Opie::OPimContactFields::trFieldsToId();
35 m_mapIDToStr = OContactFields::idToTrFields(); 35 m_mapIDToStr = Opie::OPimContactFields::idToTrFields();
36 36
37 connect ( m_addButton, SIGNAL( clicked() ), this, SLOT( slotItemAdd() ) ); 37 connect ( m_addButton, SIGNAL( clicked() ), this, SLOT( slotItemAdd() ) );
@@ -77,5 +77,5 @@ void ConfigDlg::slotItemAdd()
77 qWarning("ADding %s", item.latin1()); 77 qWarning("ADding %s", item.latin1());
78 fieldListBox->insertItem( item ); 78 fieldListBox->insertItem( item );
79 } 79 }
80} 80}
81 81
@@ -87,10 +87,10 @@ void ConfigDlg::slotItemRemove()
87 if ( i > 0 ) { 87 if ( i > 0 ) {
88 fieldListBox->removeItem( i ); 88 fieldListBox->removeItem( i );
89 } 89 }
90} 90}
91 91
92void ConfigDlg::setConfig( const AbConfig& cnf ) 92void ConfigDlg::setConfig( const AbConfig& cnf )
93{ 93{
94 m_config = cnf; 94 m_config = cnf;
95 95
96 m_useRegExp->setChecked( m_config.useRegExp() ); 96 m_useRegExp->setChecked( m_config.useRegExp() );
@@ -106,10 +106,10 @@ void ConfigDlg::setConfig( const AbConfig& cnf )
106 m_largeFont->setChecked( false ); 106 m_largeFont->setChecked( false );
107 break; 107 break;
108 case 1: 108 case 1:
109 m_smallFont->setChecked( false ); 109 m_smallFont->setChecked( false );
110 m_normalFont->setChecked( true ); 110 m_normalFont->setChecked( true );
111 m_largeFont->setChecked( false ); 111 m_largeFont->setChecked( false );
112 break; 112 break;
113 case 2: 113 case 2:
114 m_smallFont->setChecked( false ); 114 m_smallFont->setChecked( false );
115 m_normalFont->setChecked( false ); 115 m_normalFont->setChecked( false );
@@ -125,7 +125,7 @@ void ConfigDlg::setConfig( const AbConfig& cnf )
125 m_moveBars->setChecked( !m_config.fixedBars() ); 125 m_moveBars->setChecked( !m_config.fixedBars() );
126} 126}
127 127
128AbConfig ConfigDlg::getConfig() 128AbConfig ConfigDlg::getConfig()
129{ 129{
130 m_config.setUseRegExp( m_useRegExp->isOn() ); 130 m_config.setUseRegExp( m_useRegExp->isOn() );
131 m_config.setUseWildCards( m_useWildCard->isOn() ); 131 m_config.setUseWildCards( m_useWildCard->isOn() );