mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-31 02:09:15 -04:00
Added Wiki GUI Elements.
- This is a new Plugin, for development with the new cache system. - We want to get the GUI right before finalising the back-end. - This will start life here, then be moved to the Plugin section. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-new_cache_system@4887 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
efddc9afab
commit
42acb5007e
10 changed files with 1554 additions and 0 deletions
83
retroshare-gui/src/gui/WikiPoos/WikiDialog.h
Normal file
83
retroshare-gui/src/gui/WikiPoos/WikiDialog.h
Normal file
|
@ -0,0 +1,83 @@
|
|||
/*
|
||||
* Retroshare Wiki Plugin.
|
||||
*
|
||||
* Copyright 2012-2012 by Robert Fernie.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* License Version 2.1 as published by the Free Software Foundation.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
* USA.
|
||||
*
|
||||
* Please report all bugs and problems to "retroshare@lunamutt.com".
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef MRK_WIKI_DIALOG_H
|
||||
#define MRK_WIKI_DIALOG_H
|
||||
|
||||
#include "gui/mainpage.h"
|
||||
#include "ui_WikiDialog.h"
|
||||
|
||||
#include <retroshare/rswiki.h>
|
||||
|
||||
#include <map>
|
||||
|
||||
class WikiAddDialog;
|
||||
class WikiEditDialog;
|
||||
|
||||
class WikiDialog : public MainPage
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
WikiDialog(QWidget *parent = 0);
|
||||
|
||||
private slots:
|
||||
|
||||
void checkUpdate();
|
||||
void OpenOrShowAddPageDialog();
|
||||
void OpenOrShowAddGroupDialog();
|
||||
void OpenOrShowEditDialog();
|
||||
|
||||
void groupTreeChanged();
|
||||
void modTreeChanged();
|
||||
|
||||
private:
|
||||
|
||||
void clearWikiPage();
|
||||
void clearGroupTree();
|
||||
void clearModsTree();
|
||||
|
||||
void insertWikiGroups();
|
||||
void insertModsForPage(std::string &origPageId);
|
||||
|
||||
void updateWikiPage(const RsWikiPage &page);
|
||||
|
||||
std::string getSelectedPage();
|
||||
std::string getSelectedGroup();
|
||||
std::string getSelectedMod();
|
||||
|
||||
WikiAddDialog *mAddPageDialog;
|
||||
WikiAddDialog *mAddGroupDialog;
|
||||
WikiEditDialog *mEditDialog;
|
||||
|
||||
std::string mGroupSelected;
|
||||
std::string mPageSelected;
|
||||
std::string mModSelected;
|
||||
|
||||
/* UI - from Designer */
|
||||
Ui::WikiDialog ui;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue