refs #751, hint of how data are published

* user object in stash components
* publish button text changed to reflect user`s rights
* User object in form read only
This commit is contained in:
Klaus Basan
2016-09-02 13:03:07 +02:00
committed by Roland Winklmeier
parent 23ccb35ed8
commit 7330ccba1b
4 changed files with 43 additions and 5 deletions

View File

@@ -54,11 +54,11 @@ namespace BlackGui
bool isReadOnly() const { return m_readOnly; }
//! Authenticated DB user
const BlackMisc::Network::CAuthenticatedUser &getSwiftDbUser() const;
BlackMisc::Network::CAuthenticatedUser getSwiftDbUser() const;
protected:
bool m_readOnly = false; //!< read only
BlackMisc::CData<BlackCore::Data::TAuthenticatedDbUser> m_swiftDbUser {this, &CForm::ps_userChanged}; //!< authenticated user
BlackMisc::CDataReadOnly<BlackCore::Data::TAuthenticatedDbUser> m_swiftDbUser {this, &CForm::ps_userChanged}; //!< authenticated user
protected slots:
//! User has been changed