-rw-r--r-- | kaddressbook/kabcore.cpp | 9 | ||||
-rw-r--r-- | libkdepim/categoryeditdialog_base.cpp | 5 |
2 files changed, 8 insertions, 6 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index 3b1a0c1..3f7a7da 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp | |||
@@ -2181,55 +2181,56 @@ void KABCore::addActionsManually() | |||
2181 | #endif | 2181 | #endif |
2182 | #ifndef DESKTOP_VERSION | 2182 | #ifndef DESKTOP_VERSION |
2183 | if ( Ir::supported() ) mActionBR->plug( beamMenu ); | 2183 | if ( Ir::supported() ) mActionBR->plug( beamMenu ); |
2184 | if ( Ir::supported() ) mActionBeamVCard->plug( beamMenu ); | 2184 | if ( Ir::supported() ) mActionBeamVCard->plug( beamMenu ); |
2185 | if ( Ir::supported() ) mActionBeam->plug( beamMenu ); | 2185 | if ( Ir::supported() ) mActionBeam->plug( beamMenu ); |
2186 | #endif | 2186 | #endif |
2187 | fileMenu->insertSeparator(); | 2187 | fileMenu->insertSeparator(); |
2188 | mActionQuit->plug( fileMenu ); | 2188 | mActionQuit->plug( fileMenu ); |
2189 | #ifdef _OL_IMPORT_ | 2189 | #ifdef _OL_IMPORT_ |
2190 | mActionImportOL->plug( ImportMenu ); | 2190 | mActionImportOL->plug( ImportMenu ); |
2191 | #endif | 2191 | #endif |
2192 | // edit menu | 2192 | // edit menu |
2193 | mActionUndo->plug( editMenu ); | 2193 | mActionUndo->plug( editMenu ); |
2194 | mActionRedo->plug( editMenu ); | 2194 | mActionRedo->plug( editMenu ); |
2195 | editMenu->insertSeparator(); | 2195 | editMenu->insertSeparator(); |
2196 | mActionCut->plug( editMenu ); | 2196 | mActionCut->plug( editMenu ); |
2197 | mActionCopy->plug( editMenu ); | 2197 | mActionCopy->plug( editMenu ); |
2198 | mActionPaste->plug( editMenu ); | 2198 | mActionPaste->plug( editMenu ); |
2199 | mActionDelete->plug( editMenu ); | 2199 | mActionDelete->plug( editMenu ); |
2200 | editMenu->insertSeparator(); | 2200 | editMenu->insertSeparator(); |
2201 | mActionSelectAll->plug( editMenu ); | 2201 | mActionSelectAll->plug( editMenu ); |
2202 | 2202 | ||
2203 | mActionSetFormattedName->plug( changeMenu ); | 2203 | mActionSetFormattedName->plug( changeMenu ); |
2204 | mActionRemoveVoice->plug( changeMenu ); | 2204 | mActionRemoveVoice->plug( changeMenu ); |
2205 | // settings menu | 2205 | // settingsmings menu |
2206 | //US special menuentry to configure the addressbook resources. On KDE | 2206 | //US special menuentry to configure the addressbook resources. On KDE |
2207 | // you do that through the control center !!! | 2207 | // you do that through the control center !!! |
2208 | mActionConfigResources->plug( settingsMenu ); | 2208 | // settingsMenu->insertSeparator(); |
2209 | settingsMenu->insertSeparator(); | ||
2210 | 2209 | ||
2211 | mActionConfigKAddressbook->plug( settingsMenu ); | 2210 | mActionConfigKAddressbook->plug( settingsMenu, 0 ); |
2211 | mActionConfigResources->plug( settingsMenu,1 ); | ||
2212 | settingsMenu->insertSeparator(2); | ||
2212 | 2213 | ||
2213 | if ( mIsPart ) { | 2214 | if ( mIsPart ) { |
2214 | //US not implemented yet | 2215 | //US not implemented yet |
2215 | //mActionConfigShortcuts->plug( settingsMenu ); | 2216 | //mActionConfigShortcuts->plug( settingsMenu ); |
2216 | //mActionConfigureToolbars->plug( settingsMenu ); | 2217 | //mActionConfigureToolbars->plug( settingsMenu ); |
2217 | 2218 | ||
2218 | } else { | 2219 | } else { |
2219 | //US not implemented yet | 2220 | //US not implemented yet |
2220 | //mActionKeyBindings->plug( settingsMenu ); | 2221 | //mActionKeyBindings->plug( settingsMenu ); |
2221 | } | 2222 | } |
2222 | 2223 | ||
2223 | settingsMenu->insertSeparator(); | 2224 | settingsMenu->insertSeparator(); |
2224 | 2225 | ||
2225 | mActionJumpBar->plug( settingsMenu ); | 2226 | mActionJumpBar->plug( settingsMenu ); |
2226 | mActionDetails->plug( settingsMenu ); | 2227 | mActionDetails->plug( settingsMenu ); |
2227 | //if (!KABPrefs::instance()->mMultipleViewsAtOnce || KGlobal::getDesktopSize() == KGlobal::Desktop ) | 2228 | //if (!KABPrefs::instance()->mMultipleViewsAtOnce || KGlobal::getDesktopSize() == KGlobal::Desktop ) |
2228 | mActionDetails->plug( tb ); | 2229 | mActionDetails->plug( tb ); |
2229 | settingsMenu->insertSeparator(); | 2230 | settingsMenu->insertSeparator(); |
2230 | #ifndef DESKTOP_VERSION | 2231 | #ifndef DESKTOP_VERSION |
2231 | if ( Ir::supported() ) mActionBR->plug(settingsMenu ); | 2232 | if ( Ir::supported() ) mActionBR->plug(settingsMenu ); |
2232 | settingsMenu->insertSeparator(); | 2233 | settingsMenu->insertSeparator(); |
2233 | #endif | 2234 | #endif |
2234 | 2235 | ||
2235 | mActionWhoAmI->plug( settingsMenu ); | 2236 | mActionWhoAmI->plug( settingsMenu ); |
diff --git a/libkdepim/categoryeditdialog_base.cpp b/libkdepim/categoryeditdialog_base.cpp index 2390bbd..1908576 100644 --- a/libkdepim/categoryeditdialog_base.cpp +++ b/libkdepim/categoryeditdialog_base.cpp | |||
@@ -15,81 +15,82 @@ | |||
15 | #include <qlineedit.h> | 15 | #include <qlineedit.h> |
16 | #include <qlistview.h> | 16 | #include <qlistview.h> |
17 | #include <qpushbutton.h> | 17 | #include <qpushbutton.h> |
18 | #include <qlayout.h> | 18 | #include <qlayout.h> |
19 | #include <qtooltip.h> | 19 | #include <qtooltip.h> |
20 | #include <qwhatsthis.h> | 20 | #include <qwhatsthis.h> |
21 | 21 | ||
22 | /* | 22 | /* |
23 | * Constructs a CategoryEditDialog_base as a child of 'parent', with the | 23 | * Constructs a CategoryEditDialog_base as a child of 'parent', with the |
24 | * name 'name' and widget flags set to 'f'. | 24 | * name 'name' and widget flags set to 'f'. |
25 | * | 25 | * |
26 | * The dialog will by default be modeless, unless you set 'modal' to | 26 | * The dialog will by default be modeless, unless you set 'modal' to |
27 | * TRUE to construct a modal dialog. | 27 | * TRUE to construct a modal dialog. |
28 | */ | 28 | */ |
29 | CategoryEditDialog_base::CategoryEditDialog_base( QWidget* parent, const char* name, bool modal, WFlags fl ) | 29 | CategoryEditDialog_base::CategoryEditDialog_base( QWidget* parent, const char* name, bool modal, WFlags fl ) |
30 | : QDialog( parent, name, true, fl ) | 30 | : QDialog( parent, name, true, fl ) |
31 | 31 | ||
32 | { | 32 | { |
33 | if ( !name ) | 33 | if ( !name ) |
34 | setName( "CategoryEditDialog_base" ); | 34 | setName( "CategoryEditDialog_base" ); |
35 | CategoryEditDialog_baseLayout = new QGridLayout( this, 1, 1, 11, 6, "CategoryEditDialog_baseLayout"); | 35 | CategoryEditDialog_baseLayout = new QGridLayout( this, 1, 1, 11, 6, "CategoryEditDialog_baseLayout"); |
36 | 36 | ||
37 | mEdit = new QLineEdit( this, "mEdit" ); | 37 | mEdit = new QLineEdit( this, "mEdit" ); |
38 | 38 | ||
39 | CategoryEditDialog_baseLayout->addMultiCellWidget( mEdit, 1, 1, 0, 1 ); | 39 | CategoryEditDialog_baseLayout->addMultiCellWidget( mEdit, 1, 1, 0, 0 ); |
40 | 40 | ||
41 | Layout13 = new QHBoxLayout( 0, 0, 6, "Layout13"); | 41 | Layout13 = new QHBoxLayout( 0, 0, 6, "Layout13"); |
42 | 42 | ||
43 | // mButtonHelp = new QPushButton( this, "mButtonHelp" ); | 43 | // mButtonHelp = new QPushButton( this, "mButtonHelp" ); |
44 | //mButtonHelp->setAutoDefault( TRUE ); | 44 | //mButtonHelp->setAutoDefault( TRUE ); |
45 | //Layout13->addWidget( mButtonHelp ); | 45 | //Layout13->addWidget( mButtonHelp ); |
46 | //QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); | 46 | //QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); |
47 | //Layout13->addItem( spacer ); | 47 | //Layout13->addItem( spacer ); |
48 | 48 | ||
49 | //mApply = new QPushButton( this, "mApply" ); | 49 | //mApply = new QPushButton( this, "mApply" ); |
50 | // Layout13->addWidget( mApply ); | 50 | // Layout13->addWidget( mApply ); |
51 | 51 | ||
52 | mButtonOk = new QPushButton( this, "mButtonOk" ); | 52 | mButtonOk = new QPushButton( this, "mButtonOk" ); |
53 | mButtonOk->setAutoDefault( TRUE ); | 53 | mButtonOk->setAutoDefault( TRUE ); |
54 | mButtonOk->setDefault( TRUE ); | 54 | mButtonOk->setDefault( TRUE ); |
55 | Layout13->addWidget( mButtonOk ); | 55 | Layout13->addWidget( mButtonOk ); |
56 | 56 | ||
57 | mButtonCancel = new QPushButton( this, "mButtonCancel" ); | 57 | mButtonCancel = new QPushButton( this, "mButtonCancel" ); |
58 | mButtonCancel->setAutoDefault( TRUE ); | 58 | mButtonCancel->setAutoDefault( TRUE ); |
59 | Layout13->addWidget( mButtonCancel ); | 59 | Layout13->addWidget( mButtonCancel ); |
60 | 60 | ||
61 | CategoryEditDialog_baseLayout->addMultiCellLayout( Layout13, 2, 2, 0, 1 ); | 61 | CategoryEditDialog_baseLayout->addMultiCellLayout( Layout13, 2, 2, 0, 1 ); |
62 | 62 | ||
63 | mCategories = new QListView( this, "mCategories" ); | 63 | mCategories = new QListView( this, "mCategories" ); |
64 | mCategories->addColumn( tr2i18n( "Category" ) ); | 64 | mCategories->addColumn( tr2i18n( "Category" ) ); |
65 | 65 | ||
66 | CategoryEditDialog_baseLayout->addWidget( mCategories, 0, 0 ); | 66 | CategoryEditDialog_baseLayout->addWidget( mCategories, 0, 0 ); |
67 | 67 | ||
68 | layout103 = new QVBoxLayout( 0, 0, 6, "layout103"); | 68 | layout103 = new QVBoxLayout( 0, 0, 6, "layout103"); |
69 | 69 | ||
70 | mButtonAdd = new QPushButton( this, "mButtonAdd" ); | 70 | mButtonAdd = new QPushButton( this, "mButtonAdd" ); |
71 | layout103->addWidget( mButtonAdd ); | 71 | CategoryEditDialog_baseLayout->addMultiCellWidget(mButtonAdd , 1, 1, 1, 1 ); |
72 | //layout103->addWidget( mButtonAdd ); | ||
72 | 73 | ||
73 | mButtonModify = new QPushButton( this, "mButtonModify" ); | 74 | mButtonModify = new QPushButton( this, "mButtonModify" ); |
74 | layout103->addWidget( mButtonModify ); | 75 | layout103->addWidget( mButtonModify ); |
75 | 76 | ||
76 | mButtonRemove = new QPushButton( this, "mButtonRemove" ); | 77 | mButtonRemove = new QPushButton( this, "mButtonRemove" ); |
77 | layout103->addWidget( mButtonRemove ); | 78 | layout103->addWidget( mButtonRemove ); |
78 | QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); | 79 | QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); |
79 | layout103->addItem( spacer_2 ); | 80 | layout103->addItem( spacer_2 ); |
80 | 81 | ||
81 | CategoryEditDialog_baseLayout->addLayout( layout103, 0, 1 ); | 82 | CategoryEditDialog_baseLayout->addLayout( layout103, 0, 1 ); |
82 | languageChange(); | 83 | languageChange(); |
83 | resize( sizeHint() ); | 84 | resize( sizeHint() ); |
84 | 85 | ||
85 | // signals and slots connections | 86 | // signals and slots connections |
86 | connect( mButtonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); | 87 | connect( mButtonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); |
87 | connect( mButtonAdd, SIGNAL( clicked() ), this, SLOT( add() ) ); | 88 | connect( mButtonAdd, SIGNAL( clicked() ), this, SLOT( add() ) ); |
88 | connect( mButtonModify, SIGNAL( clicked() ), this, SLOT( modify() ) ); | 89 | connect( mButtonModify, SIGNAL( clicked() ), this, SLOT( modify() ) ); |
89 | connect( mButtonRemove, SIGNAL( clicked() ), this, SLOT( remove() ) ); | 90 | connect( mButtonRemove, SIGNAL( clicked() ), this, SLOT( remove() ) ); |
90 | connect( mButtonOk, SIGNAL( clicked() ), this, SLOT( slotOk() ) ); | 91 | connect( mButtonOk, SIGNAL( clicked() ), this, SLOT( slotOk() ) ); |
91 | //connect( mApply, SIGNAL( clicked() ), this, SLOT( slotApply() ) ); | 92 | //connect( mApply, SIGNAL( clicked() ), this, SLOT( slotApply() ) ); |
92 | 93 | ||
93 | // tab order | 94 | // tab order |
94 | // setTabOrder( mCategories, mEdit ); | 95 | // setTabOrder( mCategories, mEdit ); |
95 | // setTabOrder( mEdit, mButtonAdd ); | 96 | // setTabOrder( mEdit, mButtonAdd ); |