mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-16 10:30:01 -04:00
Added new method to GxsGroupDialog to allow the service group dialogs to set own string for the gui elements.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6062 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
6d9782217b
commit
1c7e374fcd
13 changed files with 81 additions and 70 deletions
|
@ -51,22 +51,29 @@ PostedGroupDialog::PostedGroupDialog(const RsPostedGroup& grp, Mode mode, QWidge
|
|||
{
|
||||
}
|
||||
|
||||
QString PostedGroupDialog::serviceHeader()
|
||||
QString PostedGroupDialog::uiText(UiType uiType)
|
||||
{
|
||||
switch (mode())
|
||||
switch (uiType)
|
||||
{
|
||||
case MODE_CREATE:
|
||||
return tr("Create New Posted Topic");
|
||||
case MODE_SHOW:
|
||||
return tr("Posted Topic");
|
||||
case MODE_EDIT:
|
||||
return tr("Edit Posted Topic");
|
||||
case UITYPE_SERVICE_HEADER:
|
||||
switch (mode())
|
||||
{
|
||||
case MODE_CREATE:
|
||||
return tr("Create New Posted Topic");
|
||||
case MODE_SHOW:
|
||||
return tr("Posted Topic");
|
||||
case MODE_EDIT:
|
||||
return tr("Edit Posted Topic");
|
||||
}
|
||||
break;
|
||||
default:
|
||||
// remove compiler warnings
|
||||
break;
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
QPixmap PostedGroupDialog::serviceImage()
|
||||
{
|
||||
return QPixmap(":/images/posted_add_64.png");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue