KDevelop API Documentation

CommitDialog Class Reference

#include <commitdlg.h>

Inheritance diagram for CommitDialog:

Inheritance graph
[legend]
Collaboration diagram for CommitDialog:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CommitDialog (const QString &changeLogfileNamePath, QWidget *parent=0)
QStringList logMessage () const
 Returns the text of the log.
bool mustAddToChangeLog () const
 Returns true if the user requests the log message to be added to the general Changelog file.
void setChangeLogFileName (const QString &fileName)
 We need to set it when showing the dialog and then when saving the file.
QString changeLogFileName () const
 CommitDialog (QWidget *parent=0, const char *name=0)
 ~CommitDialog ()
QString logMessage () const
QString user () const
QString client () const
QString changeList () const
void setUser (const QString &usr)
void setClient (const QString &clnt)
void setFiles (const QStringList &lst)
void autoGuess ()
 tries to fill out user and client

Protected Slots

virtual void accept ()
 Override: must check for message not being void.
void accept ()

Private Slots

void getFilesFinished (const QString &out, const QString &err)

Private Member Functions

void setDepotFiles (const QStringList &lst)

Private Attributes

QTextEditedit
KLineEditclientEdit
KLineEdituserEdit
KListBoxfilesBox

Constructor & Destructor Documentation

CommitDialog::CommitDialog const QString changeLogfileNamePath,
QWidget parent = 0
 

Definition at line 33 of file commitdlg.cpp.

References accept(), and setChangeLogFileName().

CommitDialog::CommitDialog QWidget parent = 0,
const char *  name = 0
 

Definition at line 31 of file commitdlg.cpp.

References autoGuess(), clientEdit, edit, filesBox, KDialogBase::setDetailsWidget(), KDialogBase::setMainWidget(), KDialog::spacingHint(), and userEdit.

CommitDialog::~CommitDialog  ) 
 

Definition at line 72 of file commitdlg.cpp.


Member Function Documentation

void CommitDialog::accept  )  [protected, slot]
 

void CommitDialog::accept  )  [protected, virtual, slot]
 

Override: must check for message not being void.

Definition at line 63 of file commitdlg.cpp.

References KMessageBox::warningContinueCancel().

Referenced by CommitDialog().

void CommitDialog::autoGuess  ) 
 

tries to fill out user and client

Definition at line 76 of file commitdlg.cpp.

References setClient(), and setUser().

Referenced by CommitDialog().

QString CommitDialog::changeList  )  const
 

Definition at line 122 of file commitdlg.cpp.

References client(), filesBox, logMessage(), and user().

Referenced by PerforcePart::commit().

QString CommitDialog::changeLogFileName  )  const
 

Definition at line 87 of file commitdlg.cpp.

Referenced by CvsServicePartImpl::commit().

QString CommitDialog::client  )  const [inline]
 

Definition at line 33 of file commitdlg.h.

References clientEdit.

Referenced by changeList().

void CommitDialog::getFilesFinished const QString out,
const QString err
[private, slot]
 

Definition at line 111 of file commitdlg.cpp.

References filesBox.

Referenced by setDepotFiles().

QString CommitDialog::logMessage  )  const [inline]
 

Definition at line 31 of file commitdlg.h.

References edit.

QStringList CommitDialog::logMessage  )  const
 

Returns the text of the log.

Definition at line 44 of file commitdlg.cpp.

Referenced by changeList(), and CvsServicePartImpl::commit().

bool CommitDialog::mustAddToChangeLog  )  const
 

Returns true if the user requests the log message to be added to the general Changelog file.

Definition at line 56 of file commitdlg.cpp.

Referenced by CvsServicePartImpl::commit().

void CommitDialog::setChangeLogFileName const QString fileName  ) 
 

We need to set it when showing the dialog and then when saving the file.

Definition at line 80 of file commitdlg.cpp.

Referenced by CommitDialog().

void CommitDialog::setClient const QString clnt  )  [inline]
 

Definition at line 37 of file commitdlg.h.

References clientEdit, and KLineEdit::setText().

Referenced by autoGuess().

void CommitDialog::setDepotFiles const QStringList lst  )  [private]
 

Definition at line 97 of file commitdlg.cpp.

References KDialogBase::finished(), and getFilesFinished().

Referenced by setFiles().

void CommitDialog::setFiles const QStringList lst  ) 
 

Definition at line 91 of file commitdlg.cpp.

References filesBox, and setDepotFiles().

Referenced by PerforcePart::commit().

void CommitDialog::setUser const QString usr  )  [inline]
 

Definition at line 36 of file commitdlg.h.

References KLineEdit::setText(), and userEdit.

Referenced by autoGuess().

QString CommitDialog::user  )  const [inline]
 

Definition at line 32 of file commitdlg.h.

References userEdit.

Referenced by changeList().


Member Data Documentation

KLineEdit* CommitDialog::clientEdit [private]
 

Definition at line 52 of file commitdlg.h.

Referenced by client(), CommitDialog(), and setClient().

QTextEdit* CommitDialog::edit [private]
 

Definition at line 51 of file commitdlg.h.

Referenced by CommitDialog(), and logMessage().

KListBox* CommitDialog::filesBox [private]
 

Definition at line 53 of file commitdlg.h.

Referenced by changeList(), CommitDialog(), getFilesFinished(), and setFiles().

KLineEdit * CommitDialog::userEdit [private]
 

Definition at line 52 of file commitdlg.h.

Referenced by CommitDialog(), setUser(), and user().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:38:20 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003