• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

kompare

  • sources
  • kde-4.14
  • kdesdk
  • kompare
  • libdialogpages
diffpage.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  diffprefs.cpp
3  -------------
4  begin : Sun Mar 4 2001
5  Copyright 2001-2004 Otto Bruggeman <otto.bruggeman@home.nl>
6  Copyright 2007-2011 Kevin Kofler <kevin.kofler@chello.at>
7 ****************************************************************************/
8 
9 /***************************************************************************
10 **
11 ** This program is free software; you can redistribute it and/or modify
12 ** it under the terms of the GNU General Public License as published by
13 ** the Free Software Foundation; either version 2 of the License, or
14 ** (at your option) any later version.
15 **
16 ***************************************************************************/
17 
18 #include "diffpage.h"
19 
20 #include <QtGui/QCheckBox>
21 #include <QGroupBox>
22 #include <QtGui/QLabel>
23 #include <QtGui/QLayout>
24 #include <QtGui/QRadioButton>
25 #include <QtGui/QSpinBox>
26 #include <QtGui/QVBoxLayout>
27 #include <QtGui/QHBoxLayout>
28 #include <QtGui/QToolTip>
29 #include <QButtonGroup>
30 
31 #include <kbuttongroup.h>
32 #include <kapplication.h>
33 #include <kcombobox.h>
34 #include <kdialog.h>
35 #include <keditlistwidget.h>
36 #include <klineedit.h>
37 #include <klocale.h>
38 #include <kurlcombobox.h>
39 #include <kurlrequester.h>
40 #include <kservicetypetrader.h>
41 #include <ktabwidget.h>
42 
43 #include <kparts/componentfactory.h>
44 #include <kregexpeditorinterface.h>
45 #include <kglobal.h>
46 
47 #include "diffsettings.h"
48 
49 DiffPage::DiffPage() : PageBase(), m_ignoreRegExpDialog( 0 )
50 {
51  m_tabWidget = new KTabWidget( this );
52 
53  addDiffTab();
54 
55  addFormatTab();
56 
57  addOptionsTab();
58 
59  addExcludeTab();
60 }
61 
62 DiffPage::~DiffPage()
63 {
64  m_settings = 0;
65 }
66 
67 void DiffPage::setSettings( DiffSettings* setts )
68 {
69  m_settings = setts;
70 
71  m_diffURLRequester->setUrl( m_settings->m_diffProgram );
72 
73  m_newFilesCheckBox->setChecked ( m_settings->m_newFiles );
74  m_smallerCheckBox->setChecked ( m_settings->m_createSmallerDiff );
75  m_largerCheckBox->setChecked ( m_settings->m_largeFiles );
76  m_tabsCheckBox->setChecked ( m_settings->m_convertTabsToSpaces );
77  m_caseCheckBox->setChecked ( m_settings->m_ignoreChangesInCase );
78  m_linesCheckBox->setChecked ( m_settings->m_ignoreEmptyLines );
79  m_whitespaceCheckBox->setChecked ( m_settings->m_ignoreWhiteSpace );
80  m_allWhitespaceCheckBox->setChecked ( m_settings->m_ignoreAllWhiteSpace );
81  m_ignoreTabExpansionCheckBox->setChecked( m_settings->m_ignoreChangesDueToTabExpansion );
82 
83  m_ignoreRegExpCheckBox->setChecked ( m_settings->m_ignoreRegExp );
84  m_ignoreRegExpEdit->setCompletedItems( m_settings->m_ignoreRegExpTextHistory );
85  m_ignoreRegExpEdit->setText ( m_settings->m_ignoreRegExpText );
86 
87  m_locSpinBox->setValue( m_settings->m_linesOfContext );
88 
89  m_modeButtonGroup->button( m_settings->m_format )->setChecked( true );
90 
91  m_excludeFilePatternGroupBox->setChecked ( m_settings->m_excludeFilePattern );
92  slotExcludeFilePatternToggled ( m_settings->m_excludeFilePattern );
93  m_excludeFilePatternEditListBox->insertStringList( m_settings->m_excludeFilePatternList );
94 
95  m_excludeFileNameGroupBox->setChecked( m_settings->m_excludeFilesFile );
96  slotExcludeFileToggled ( m_settings->m_excludeFilesFile );
97  m_excludeFileURLComboBox->setUrls( m_settings->m_excludeFilesFileHistoryList );
98  m_excludeFileURLComboBox->setUrl ( KUrl( m_settings->m_excludeFilesFileURL ) );
99 }
100 
101 DiffSettings* DiffPage::settings( void )
102 {
103  return m_settings;
104 }
105 
106 void DiffPage::restore()
107 {
108  // this shouldn't do a thing...
109 }
110 
111 void DiffPage::apply()
112 {
113  m_settings->m_diffProgram = m_diffURLRequester->url().pathOrUrl();
114 
115  m_settings->m_newFiles = m_newFilesCheckBox->isChecked();
116  m_settings->m_largeFiles = m_largerCheckBox->isChecked();
117  m_settings->m_createSmallerDiff = m_smallerCheckBox->isChecked();
118  m_settings->m_convertTabsToSpaces = m_tabsCheckBox->isChecked();
119  m_settings->m_ignoreChangesInCase = m_caseCheckBox->isChecked();
120  m_settings->m_ignoreEmptyLines = m_linesCheckBox->isChecked();
121  m_settings->m_ignoreWhiteSpace = m_whitespaceCheckBox->isChecked();
122  m_settings->m_ignoreAllWhiteSpace = m_allWhitespaceCheckBox->isChecked();
123  m_settings->m_ignoreChangesDueToTabExpansion = m_ignoreTabExpansionCheckBox->isChecked();
124 
125  m_settings->m_ignoreRegExp = m_ignoreRegExpCheckBox->isChecked();
126  m_settings->m_ignoreRegExpText = m_ignoreRegExpEdit->text();
127  m_settings->m_ignoreRegExpTextHistory = m_ignoreRegExpEdit->completionObject()->items();
128 
129  m_settings->m_linesOfContext = m_locSpinBox->value();
130 
131  m_settings->m_format = static_cast<Kompare::Format>( m_modeButtonGroup->checkedId() );
132 
133  m_settings->m_excludeFilePattern = m_excludeFilePatternGroupBox->isChecked();
134  m_settings->m_excludeFilePatternList = m_excludeFilePatternEditListBox->items();
135 
136  m_settings->m_excludeFilesFile = m_excludeFileNameGroupBox->isChecked();
137  m_settings->m_excludeFilesFileURL = m_excludeFileURLComboBox->currentText();
138  m_settings->m_excludeFilesFileHistoryList = m_excludeFileURLComboBox->urls();
139 
140  m_settings->saveSettings( KGlobal::config().data() );
141 }
142 
143 void DiffPage::setDefaults()
144 {
145  m_diffURLRequester->setUrl( KUrl( "diff" ) );
146  m_newFilesCheckBox->setChecked( true );
147  m_smallerCheckBox->setChecked( true );
148  m_largerCheckBox->setChecked( true );
149  m_tabsCheckBox->setChecked( false );
150  m_caseCheckBox->setChecked( false );
151  m_linesCheckBox->setChecked( false );
152  m_whitespaceCheckBox->setChecked( false );
153  m_allWhitespaceCheckBox->setChecked( false );
154  m_ignoreTabExpansionCheckBox->setChecked( false );
155  m_ignoreRegExpCheckBox->setChecked( false );
156 
157  m_ignoreRegExpEdit->setText( QString() );
158 
159  m_locSpinBox->setValue( 3 );
160 
161  m_modeButtonGroup->button( Kompare::Unified )->setChecked( true );
162 
163  m_excludeFilePatternGroupBox->setChecked( false );
164 
165  m_excludeFileNameGroupBox->setChecked( false );
166 }
167 
168 void DiffPage::slotShowRegExpEditor()
169 {
170  if ( ! m_ignoreRegExpDialog )
171  m_ignoreRegExpDialog = KServiceTypeTrader::createInstanceFromQuery<QDialog>( "KRegExpEditor/KRegExpEditor", QString(), this );
172 
173  KRegExpEditorInterface *iface = qobject_cast<KRegExpEditorInterface *>( m_ignoreRegExpDialog );
174 
175  if ( !iface )
176  return;
177 
178  iface->setRegExp( m_ignoreRegExpEdit->text() );
179  bool ok = m_ignoreRegExpDialog->exec();
180 
181  if ( ok )
182  m_ignoreRegExpEdit->setText( iface->regExp() );
183 }
184 
185 void DiffPage::slotExcludeFilePatternToggled( bool on )
186 {
187  m_excludeFilePatternEditListBox->setEnabled( on );
188 }
189 
190 void DiffPage::slotExcludeFileToggled( bool on )
191 {
192  m_excludeFileURLComboBox->setEnabled( on );
193  m_excludeFileURLRequester->setEnabled( on );
194 }
195 
196 void DiffPage::addDiffTab()
197 {
198  QWidget* page = new QWidget( this );
199  QVBoxLayout* layout = new QVBoxLayout( page );
200  layout->setSpacing( KDialog::spacingHint() );
201  layout->setMargin( KDialog::marginHint() );
202 
203  // add diff program selector
204  m_diffProgramGroup = new QGroupBox( page );
205  layout->addWidget( m_diffProgramGroup );
206  QVBoxLayout* bgLayout = new QVBoxLayout( m_diffProgramGroup );
207  m_diffProgramGroup->setTitle( i18n( "Diff Program" ) );
208  //m_diffProgramGroup->setMargin( KDialog::marginHint() );
209 
210  m_diffURLRequester = new KUrlRequester( m_diffProgramGroup);
211  m_diffURLRequester->setObjectName("diffURLRequester" );
212  m_diffURLRequester->setWhatsThis( i18n( "You can select a different diff program here. On Solaris the standard diff program does not support all the options that the GNU version does. This way you can select that version." ) );
213  bgLayout->addWidget( m_diffURLRequester );
214 
215  layout->addStretch( 1 );
216  page->setMinimumSize( sizeHintForWidget( page ) );
217 
218  m_tabWidget->addTab( page, i18n( "Diff" ) );
219 }
220 
221 void DiffPage::addFormatTab()
222 {
223  QWidget* page = new QWidget( this );
224  QVBoxLayout* layout = new QVBoxLayout( page );
225  layout->setSpacing( KDialog::spacingHint() );
226  layout->setMargin( KDialog::marginHint() );
227 
228  // add diff modes
229  m_modeButtonGroup = new QButtonGroup( page );
230  QGroupBox *box = new QGroupBox( page );
231  box->setWhatsThis( i18n( "Select the format of the output generated by diff. Unified is the one that is used most frequently because it is very readable. The KDE developers like this format the best so use it for sending patches." ) );
232  layout->addWidget( box );
233  QVBoxLayout* bgLayout = new QVBoxLayout( box );
234  box->setTitle( i18n( "Output Format" ) );
235  //m_modeButtonGroup->setMargin( KDialog::marginHint() );
236 
237  QRadioButton *radioButton = new QRadioButton( i18n( "Context" ), box );
238  m_modeButtonGroup->addButton( radioButton, Kompare::Context);
239  bgLayout->addWidget( radioButton );
240  radioButton = new QRadioButton( i18n( "Normal" ), box );
241  m_modeButtonGroup->addButton( radioButton, Kompare::Normal);
242  bgLayout->addWidget( radioButton );
243  radioButton = new QRadioButton( i18n( "Unified" ), box );
244  m_modeButtonGroup->addButton( radioButton, Kompare::Unified);
245  bgLayout->addWidget( radioButton );
246 
247  // #lines of context (loc)
248  QGroupBox* groupBox = new QGroupBox( page );
249  QHBoxLayout *groupLayout = new QHBoxLayout;
250  groupBox->setLayout( groupLayout );
251  layout->addWidget( groupBox );
252  groupBox->setTitle( i18n( "Lines of Context" ) );
253  groupBox->setWhatsThis( i18n( "The number of context lines is normally 2 or 3. This makes the diff readable and applicable in most cases. More than 3 lines will only bloat the diff unnecessarily." ) );
254  //groupBox->setMargin( KDialog::marginHint() );
255 
256  QLabel* label = new QLabel( i18n( "Number of context lines:" ));
257  groupLayout->addWidget( label );
258  label->setWhatsThis( i18n( "The number of context lines is normally 2 or 3. This makes the diff readable and applicable in most cases. More than 3 lines will only bloat the diff unnecessarily." ) );
259  m_locSpinBox = new QSpinBox( groupBox );
260  m_locSpinBox->setRange( 0, 100 );
261  groupLayout->addWidget( m_locSpinBox );
262  m_locSpinBox->setWhatsThis( i18n( "The number of context lines is normally 2 or 3. This makes the diff readable and applicable in most cases. More than 3 lines will only bloat the diff unnecessarily." ) );
263  label->setBuddy( m_locSpinBox );
264 
265  layout->addStretch( 1 );
266  page->setMinimumSize( sizeHintForWidget( page ) );
267 
268  m_tabWidget->addTab( page, i18n( "Format" ) );
269 }
270 
271 void DiffPage::addOptionsTab()
272 {
273  QWidget* page = new QWidget( this );
274  QVBoxLayout* layout = new QVBoxLayout( page );
275  layout->setSpacing( KDialog::spacingHint() );
276  layout->setMargin( KDialog::marginHint() );
277 
278  // add diff options
279  KButtonGroup* optionButtonGroup = new KButtonGroup( page );
280  layout->addWidget( optionButtonGroup );
281  QVBoxLayout* bgLayout = new QVBoxLayout( optionButtonGroup );
282  optionButtonGroup->setTitle( i18n( "General" ) );
283  //optionButtonGroup->setMargin( KDialog::marginHint() );
284 
285  m_newFilesCheckBox = new QCheckBox( i18n( "&Treat new files as empty" ), optionButtonGroup );
286  m_newFilesCheckBox->setToolTip( i18n( "This option corresponds to the -N diff option." ) );
287  m_newFilesCheckBox->setWhatsThis( i18n( "With this option enabled diff will treat a file that only exists in one of the directories as empty in the other directory. This means that the file is compared with an empty file and because of this will appear as one big insertion or deletion." ) );
288  bgLayout->addWidget( m_newFilesCheckBox );
289 
290  m_smallerCheckBox = new QCheckBox( i18n( "&Look for smaller changes" ), optionButtonGroup );
291  m_smallerCheckBox->setToolTip( i18n( "This corresponds to the -d diff option." ) );
292  m_smallerCheckBox->setWhatsThis( i18n( "With this option enabled diff will try a little harder (at the cost of more memory) to find fewer changes." ) );
293  bgLayout->addWidget( m_smallerCheckBox );
294  m_largerCheckBox = new QCheckBox( i18n( "O&ptimize for large files" ), optionButtonGroup );
295  m_largerCheckBox->setToolTip( i18n( "This corresponds to the -H diff option." ) );
296  m_largerCheckBox->setWhatsThis( i18n( "This option lets diff makes better diffs when using large files. The definition of large is nowhere to be found though." ) );
297  bgLayout->addWidget( m_largerCheckBox );
298  m_caseCheckBox = new QCheckBox( i18n( "&Ignore changes in case" ), optionButtonGroup );
299  m_caseCheckBox->setToolTip( i18n( "This corresponds to the -i diff option." ) );
300  m_caseCheckBox->setWhatsThis( i18n( "With this option to ignore changes in case enabled, diff will not indicate a difference when something in one file is changed into SoMEthing in the other file." ) );
301  bgLayout->addWidget( m_caseCheckBox );
302 
303  QHBoxLayout* groupLayout = new QHBoxLayout();
304  layout->addLayout( groupLayout );
305  groupLayout->setObjectName( "regexp_horizontal_layout" );
306  groupLayout->setSpacing( -1 );
307  groupLayout->setMargin( KDialog::marginHint() );
308 
309  m_ignoreRegExpCheckBox = new QCheckBox( i18n( "Ignore regexp:" ), page );
310  m_ignoreRegExpCheckBox->setToolTip( i18n( "This option corresponds to the -I diff option." ) );
311  m_ignoreRegExpCheckBox->setWhatsThis( i18n( "When this checkbox is enabled, an option to diff is given that will make diff ignore lines that match the regular expression." ) );
312  groupLayout->addWidget( m_ignoreRegExpCheckBox );
313  m_ignoreRegExpEdit = new KLineEdit( QString::null, page); //krazy:exclude=nullstrassign for old broken gcc
314  m_ignoreRegExpEdit->setObjectName("regexplineedit" );
315  m_ignoreRegExpEdit->setToolTip( i18n( "Add the regular expression here that you want to use\nto ignore lines that match it." ) );
316  groupLayout->addWidget( m_ignoreRegExpEdit );
317 
318  if ( !KServiceTypeTrader::self()->query("KRegExpEditor/KRegExpEditor").isEmpty() )
319  {
320  // Ok editor is available, use it
321  QPushButton* ignoreRegExpEditButton = new QPushButton( i18n( "&Edit..." ), page);
322  ignoreRegExpEditButton->setObjectName( "regexp_editor_button" );
323  ignoreRegExpEditButton->setToolTip( i18n( "Clicking this will open a regular expression dialog where\nyou can graphically create regular expressions." ) );
324  groupLayout->addWidget( ignoreRegExpEditButton );
325  connect( ignoreRegExpEditButton, SIGNAL( clicked() ), this, SLOT( slotShowRegExpEditor() ) );
326  }
327 
328  KButtonGroup* moreOptionButtonGroup = new KButtonGroup( page );
329  layout->addWidget( moreOptionButtonGroup );
330  bgLayout = new QVBoxLayout( moreOptionButtonGroup );
331  moreOptionButtonGroup->setTitle( i18n( "Whitespace" ) );
332  //moreOptionButtonGroup->setMargin( KDialog::marginHint() );
333 
334  m_tabsCheckBox = new QCheckBox( i18n( "E&xpand tabs to spaces in output" ), moreOptionButtonGroup );
335  m_tabsCheckBox->setToolTip( i18n( "This option corresponds to the -t diff option." ) );
336  m_tabsCheckBox->setWhatsThis( i18n( "This option does not always produce the right result. Due to this expansion Kompare may have problems applying the change to the destination file." ) );
337  bgLayout->addWidget( m_tabsCheckBox );
338  m_linesCheckBox = new QCheckBox( i18n( "I&gnore added or removed empty lines" ), moreOptionButtonGroup );
339  m_linesCheckBox->setToolTip( i18n( "This option corresponds to the -B diff option." ) );
340  m_linesCheckBox->setWhatsThis( i18n( "This can be very useful in situations where code has been reorganized and empty lines have been added or removed to improve legibility." ) );
341  bgLayout->addWidget( m_linesCheckBox );
342  m_whitespaceCheckBox = new QCheckBox( i18n( "Ig&nore changes in the amount of whitespace" ), moreOptionButtonGroup );
343  m_whitespaceCheckBox->setToolTip( i18n( "This option corresponds to the -b diff option." ) );
344  m_whitespaceCheckBox->setWhatsThis( i18n( "If you are uninterested in differences arising due to, for example, changes in indentation, then use this option." ) );
345  bgLayout->addWidget( m_whitespaceCheckBox );
346  m_allWhitespaceCheckBox = new QCheckBox( i18n( "Ign&ore all whitespace" ), moreOptionButtonGroup );
347  m_allWhitespaceCheckBox->setToolTip( i18n( "This option corresponds to the -w diff option." ) );
348  m_allWhitespaceCheckBox->setWhatsThis( i18n( "This is useful for seeing the significant changes without being overwhelmed by all the white space changes." ) );
349  bgLayout->addWidget( m_allWhitespaceCheckBox );
350  m_ignoreTabExpansionCheckBox = new QCheckBox( i18n( "Igno&re changes due to tab expansion" ), moreOptionButtonGroup );
351  m_ignoreTabExpansionCheckBox->setToolTip( i18n( "This option corresponds to the -E diff option." ) );
352  m_ignoreTabExpansionCheckBox->setWhatsThis( i18n( "If there is a change because tabs have been expanded into spaces in the other file, then this option will make sure that these do not show up. Kompare currently has some problems applying such changes so be careful when you use this option." ) );
353  bgLayout->addWidget( m_ignoreTabExpansionCheckBox );
354 
355  layout->addStretch( 1 );
356  page->setMinimumSize( sizeHintForWidget( page ) );
357 
358  m_tabWidget->addTab( page, i18n( "Options" ) );
359 }
360 
361 void DiffPage::addExcludeTab()
362 {
363  QWidget* page = new QWidget( this );
364  QVBoxLayout* layout = new QVBoxLayout( page );
365  layout->setSpacing( KDialog::spacingHint() );
366  layout->setMargin( KDialog::marginHint() );
367 
368  m_excludeFilePatternGroupBox = new QGroupBox( page );
369  m_excludeFilePatternGroupBox->setCheckable(true);
370  QHBoxLayout *excludeFileLayout = new QHBoxLayout;
371  m_excludeFilePatternGroupBox->setLayout( excludeFileLayout );
372  m_excludeFilePatternGroupBox->setTitle( i18n( "File Pattern to Exclude" ) );
373  m_excludeFilePatternGroupBox->setToolTip( i18n( "If this is checked you can enter a shell pattern in the text box on the right or select entries from the list." ) );
374  m_excludeFilePatternEditListBox = new KEditListWidget;
375  excludeFileLayout->addWidget( m_excludeFilePatternEditListBox );
376  m_excludeFilePatternEditListBox->setObjectName( "exclude_file_pattern_editlistbox" );
377  m_excludeFilePatternEditListBox->setButtons( KEditListWidget::Add|KEditListWidget::Remove );
378  m_excludeFilePatternEditListBox->setCheckAtEntering( false );
379  m_excludeFilePatternEditListBox->setToolTip( i18n( "Here you can enter or remove a shell pattern or select one or more entries from the list." ) );
380  layout->addWidget( m_excludeFilePatternGroupBox );
381 
382 
383  connect( m_excludeFilePatternGroupBox, SIGNAL(toggled(bool)), this, SLOT(slotExcludeFilePatternToggled(bool)));
384 
385  m_excludeFileNameGroupBox = new QGroupBox( page );
386  m_excludeFileNameGroupBox->setCheckable( true );
387  excludeFileLayout = new QHBoxLayout;
388  m_excludeFileNameGroupBox->setLayout( excludeFileLayout );
389  m_excludeFileNameGroupBox->setTitle( i18n( "File with Filenames to Exclude" ) );
390  m_excludeFileNameGroupBox->setToolTip( i18n( "If this is checked you can enter a filename in the combo box below." ) );
391  m_excludeFileURLComboBox = new KUrlComboBox( KUrlComboBox::Files, true );
392  excludeFileLayout->addWidget( m_excludeFileURLComboBox );
393  m_excludeFileURLComboBox->setObjectName( "exclude_file_urlcombo" );
394  m_excludeFileURLComboBox->setToolTip( i18n( "Here you can enter the URL of a file with shell patterns to ignore during the comparison of the folders." ) );
395  m_excludeFileURLRequester = new KUrlRequester( m_excludeFileURLComboBox,m_excludeFileNameGroupBox );
396  excludeFileLayout->addWidget( m_excludeFileURLRequester );
397  m_excludeFileURLRequester->setObjectName("exclude_file_name_urlrequester" );
398  m_excludeFileURLRequester->setToolTip( i18n( "Any file you select in the dialog that pops up when you click it will be put in the dialog to the left of this button." ) );
399  layout->addWidget( m_excludeFileNameGroupBox );
400 
401  connect( m_excludeFileNameGroupBox, SIGNAL(toggled(bool)), this, SLOT(slotExcludeFileToggled(bool)));
402 
403  layout->addStretch( 1 );
404  page->setMinimumSize( sizeHintForWidget( page ) );
405 
406  m_tabWidget->addTab( page, i18n( "Exclude" ) );
407 }
408 
409 #include "diffpage.moc"
410 
411 //kate: replace-tabs 0; indent-width 4; tab-width 4;
DiffPage::restore
virtual void restore()
No descriptions.
Definition: diffpage.cpp:106
QWidget
DiffPage::m_smallerCheckBox
QCheckBox * m_smallerCheckBox
Definition: diffpage.h:73
DiffPage::m_whitespaceCheckBox
QCheckBox * m_whitespaceCheckBox
Definition: diffpage.h:78
DiffPage::setSettings
void setSettings(DiffSettings *)
Definition: diffpage.cpp:67
DiffPage::m_diffURLRequester
KUrlRequester * m_diffURLRequester
Definition: diffpage.h:70
QButtonGroup::addButton
void addButton(QAbstractButton *button)
DiffPage::m_excludeFilePatternGroupBox
QGroupBox * m_excludeFilePatternGroupBox
Definition: diffpage.h:87
DiffPage::m_ignoreTabExpansionCheckBox
QCheckBox * m_ignoreTabExpansionCheckBox
Definition: diffpage.h:80
DiffPage::m_locSpinBox
QSpinBox * m_locSpinBox
Definition: diffpage.h:95
DiffPage::m_settings
DiffSettings * m_settings
Definition: diffpage.h:68
QHBoxLayout
QDialog::exec
int exec()
DiffPage::DiffPage
DiffPage()
Definition: diffpage.cpp:49
DiffPage::m_ignoreRegExpEdit
KLineEdit * m_ignoreRegExpEdit
Definition: diffpage.h:83
DiffPage::m_newFilesCheckBox
QCheckBox * m_newFilesCheckBox
Definition: diffpage.h:72
QButtonGroup::button
QAbstractButton * button(int id) const
DiffPage::slotExcludeFileToggled
void slotExcludeFileToggled(bool)
Definition: diffpage.cpp:190
DiffPage::setDefaults
virtual void setDefaults()
No descriptions.
Definition: diffpage.cpp:143
DiffPage::apply
virtual void apply()
No descriptions.
Definition: diffpage.cpp:111
DiffPage::settings
DiffSettings * settings(void)
Definition: diffpage.cpp:101
QSpinBox::setRange
void setRange(int minimum, int maximum)
QButtonGroup
DiffPage::slotExcludeFilePatternToggled
void slotExcludeFilePatternToggled(bool)
Definition: diffpage.cpp:185
QLabel::setBuddy
void setBuddy(QWidget *buddy)
DiffPage::~DiffPage
~DiffPage()
Definition: diffpage.cpp:62
QWidget::setMinimumSize
void setMinimumSize(const QSize &)
DiffPage::m_excludeFilePatternEditListBox
KEditListWidget * m_excludeFilePatternEditListBox
Definition: diffpage.h:88
QBoxLayout::addWidget
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
DiffPage::m_tabsCheckBox
QCheckBox * m_tabsCheckBox
Definition: diffpage.h:75
QGroupBox::setChecked
void setChecked(bool checked)
QWidget::setLayout
void setLayout(QLayout *layout)
QGroupBox
QCheckBox
QObject::setObjectName
void setObjectName(const QString &name)
DiffPage::m_modeButtonGroup
QButtonGroup * m_modeButtonGroup
Definition: diffpage.h:97
QVBoxLayout
QString
QLayout::setMargin
void setMargin(int margin)
QSpinBox
PageBase::sizeHintForWidget
QSize sizeHintForWidget(QWidget *widget)
No descriptions.
Definition: pagebase.cpp:35
DiffPage::m_ignoreRegExpDialog
QDialog * m_ignoreRegExpDialog
Definition: diffpage.h:85
PageBase
Definition: pagebase.h:27
QAbstractButton::setChecked
void setChecked(bool)
QButtonGroup::checkedId
int checkedId() const
DiffPage::m_excludeFileNameGroupBox
QGroupBox * m_excludeFileNameGroupBox
Definition: diffpage.h:90
QWidget::setWhatsThis
void setWhatsThis(const QString &)
QBoxLayout::addStretch
void addStretch(int stretch)
QRadioButton
DiffPage::m_linesCheckBox
QCheckBox * m_linesCheckBox
Definition: diffpage.h:77
DiffPage::m_excludeFileURLRequester
KUrlRequester * m_excludeFileURLRequester
Definition: diffpage.h:92
QGroupBox::setTitle
void setTitle(const QString &title)
QSpinBox::setValue
void setValue(int val)
QGroupBox::setCheckable
void setCheckable(bool checkable)
DiffPage::m_excludeFileURLComboBox
KUrlComboBox * m_excludeFileURLComboBox
Definition: diffpage.h:91
DiffPage::m_caseCheckBox
QCheckBox * m_caseCheckBox
Definition: diffpage.h:76
QPushButton
QWidget::setToolTip
void setToolTip(const QString &)
diffpage.h
DiffPage::m_ignoreRegExpCheckBox
QCheckBox * m_ignoreRegExpCheckBox
Definition: diffpage.h:82
QLabel
DiffPage::slotShowRegExpEditor
void slotShowRegExpEditor()
Definition: diffpage.cpp:168
DiffPage::m_largerCheckBox
QCheckBox * m_largerCheckBox
Definition: diffpage.h:74
DiffPage::m_tabWidget
KTabWidget * m_tabWidget
Definition: diffpage.h:100
DiffPage::m_diffProgramGroup
QGroupBox * m_diffProgramGroup
Definition: diffpage.h:98
QBoxLayout::setSpacing
void setSpacing(int spacing)
QBoxLayout::addLayout
void addLayout(QLayout *layout, int stretch)
DiffPage::m_allWhitespaceCheckBox
QCheckBox * m_allWhitespaceCheckBox
Definition: diffpage.h:79
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kompare

Skip menu "kompare"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal