summaryrefslogtreecommitdiff
path: root/libopie2/opieui/big-screen/omodalhelper.h
authorclem <clem>2004-10-08 14:28:40 (UTC)
committer clem <clem>2004-10-08 14:28:40 (UTC)
commit057abc0180c8d821960d6957a8c3f64f0b86b229 (patch) (side-by-side diff)
tree5aaadbd1924a89637ccf534ed91493b6406d8a5b /libopie2/opieui/big-screen/omodalhelper.h
parent0e41f335c0db28250216a5292a2b7bcee2a1cf4a (diff)
downloadopie-057abc0180c8d821960d6957a8c3f64f0b86b229.zip
opie-057abc0180c8d821960d6957a8c3f64f0b86b229.tar.gz
opie-057abc0180c8d821960d6957a8c3f64f0b86b229.tar.bz2
small doxygen doc fixes
Diffstat (limited to 'libopie2/opieui/big-screen/omodalhelper.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opieui/big-screen/omodalhelper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opieui/big-screen/omodalhelper.h b/libopie2/opieui/big-screen/omodalhelper.h
index 096cec4..ed6fee3 100644
--- a/libopie2/opieui/big-screen/omodalhelper.h
+++ b/libopie2/opieui/big-screen/omodalhelper.h
@@ -191,97 +191,97 @@ public:
OModalQueuedDialog(QDialog *mainWidget);
~OModalQueuedDialog();
QDialog* centerDialog()const;
void setQueueBarEnabled( bool = true );
void setRecord( int record, int count );
signals:
void next();
void prev();
private:
OModalQueueBar *m_bar;
QDialog *m_center;
};
/*
* Tcpp Template Implementation
*/
/**
* This is the simple Template c'tor. It takes the mode
* this helper should operate in and the parent object.
* This helper will be deleted when the parent gets deleted
* or you delete it yourself.
*
* @param mode The mode this dialog should be in
* @param parent The parent QObject of this helper.
*/
template<class Dialog, class Record, typename Id>
OModalHelper<Dialog, Record, Id>::OModalHelper( enum Mode mode, QObject* parent )
{
m_disabled = false;
m_mode = mode;
m_signal = new OModalHelperSignal( this, parent );
m_controler = new OModalHelperControler( this, m_signal );
}
/**
* This functions looks for your record and sees if it is
* handled with this helper. Note that done records
* will not be returned.
*
* @return true if the record is currenlty edited otherwise false
*
- * @param Id The id which might be handled
+ * @param id The id which might be handled
*/
template<class Dialog, class Record, typename Id>
bool OModalHelper<Dialog, Record, Id>::handles( Id id )const
{
if ( m_transactions.isEmpty() )
return false;
TransactionMap::ConstIterator it = m_transactions.begin();
for ( ; it != m_transactions.end(); ++it )
if ( it.data() == id )
return true;
return false;
}
/**
* just like handles( Id ) but returns the TransactionId
*/
template<class Dialog, class Record, typename Id>
TransactionID OModalHelper<Dialog, Record, Id>::transactionID( Id id)const
{
if ( m_transactions.isEmpty() || !m_ids.contains( id ) )
return 0;
TransactionMap::ConstIterator it = m_transactions.begin();
for ( ; it != m_transactions.end(); ++it )
if ( it.data() == id )
return it.key();
return 0;
}
/**
* If you're requested to flush your data and you do not want
* to call cancel with this method you can disable and enabled
* all dialogs.
* The state gets saved so if you want to handle a new record the dialog
* will be disabled as well.
*
* @param sus If true setDisabled(TRUE) will be called otherwise FALSE
*/
template<class Dialog, class Record, typename Id>
void OModalHelper<Dialog, Record, Id>::suspend(bool sus)
{
m_disabled = sus;
if (m_mode == New )
for (DialogMap::Iterator it = m_editing.begin(); it != m_editing.end(); ++it )