[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[vidalia-svn] r3968: Added placeholder HerdictWeb files with basic ui file. (in vidalia/branches/extension-api/src/vidalia: . HerdictWebReporterPlugin)
Author: tyree731
Date: 2009-07-21 20:05:00 -0400 (Tue, 21 Jul 2009)
New Revision: 3968
Added:
vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/
vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPanel.cpp
vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPanel.h
vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPanel.ui
vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPlugin.cpp
vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPlugin.h
Log:
Added placeholder HerdictWeb files with basic ui file.
Added: vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPanel.cpp
===================================================================
--- vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPanel.cpp (rev 0)
+++ vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPanel.cpp 2009-07-22 00:05:00 UTC (rev 3968)
@@ -0,0 +1,39 @@
+/*
+** This file is part of Vidalia, and is subject to the license terms in the
+** LICENSE file, found in the top level directory of this distribution. If you
+** did not receive the LICENSE file with this file, you may obtain it from the
+** Vidalia source package distributed by the Vidalia Project at
+** http://www.vidalia-project.net/. No part of Vidalia, including this file,
+** may be copied, modified, propagated, or distributed except according to the
+** terms described in the LICENSE file.
+*/
+
+/*
+** \file HerdictWebReporterPanel.cpp
+** \version $Id$
+** \brief The user's home panel, containing important status' and buttons
+*/
+
+#include "HomePanel.h"
+
+HerdictWebReporterPanel::HerdictWebReporterPanel(VidaliaPluginInterface* parent)
+: VidaliaPanel(parent)
+{
+ ui.setupUi(this);
+}
+
+HerdictWebReporterPanel::~HerdictWebReporterPanel()
+{
+}
+
+QString
+HerdictWebReporterPanel::tabLabel() const
+{
+ return QString("HerdictWeb Reporter");
+}
+
+QIcon
+HerdictWebReporterPanel::tabIcon() const
+{
+ return QIcon(":/images/16x16/go-home.png");
+}
Property changes on: vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPanel.cpp
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPanel.h
===================================================================
--- vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPanel.h (rev 0)
+++ vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPanel.h 2009-07-22 00:05:00 UTC (rev 3968)
@@ -0,0 +1,44 @@
+/*
+** This file is part of Vidalia, and is subject to the license terms in the
+** LICENSE file, found in the top level directory of this distribution. If you
+** did not receive the LICENSE file with this file, you may obtain it from the
+** Vidalia source package distributed by the Vidalia Project at
+** http://www.vidalia-project.net/. No part of Vidalia, including this file,
+** may be copied, modified, propagated, or distributed except according to the
+** terms described in the LICENSE file.
+*/
+
+/*
+** \file HerdictWebReporterPanel.h
+** \version $Id$
+** \brief The HerdictWeb reporter.
+*/
+
+#ifndef _HERDICTWEBREPORTERPANEL_H
+#define _HERDICTWEBREPORTERPANEL_H
+
+#include <vidalia/VidaliaPanel.h>
+
+#include "ui_HerdictWebReporterPanel.h"
+
+class HerdictWebReporterPlugin;
+
+class HerdictWebReporterPanel : public VidaliaPanel
+{
+ Q_OBJECT
+
+ friend class HerdictWebReporterPlugin;
+
+public:
+ HerdictWebReporterPanel(VidaliaPluginInterface* parent);
+ ~HerdictWebReporterPanel();
+
+ QString tabLabel() const;
+ QIcon tabIcon() const;
+
+private:
+ /** Qt Designer Object */
+ Ui::HomePanel ui;
+};
+
+#endif
Property changes on: vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPanel.h
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPanel.ui
===================================================================
--- vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPanel.ui (rev 0)
+++ vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPanel.ui 2009-07-22 00:05:00 UTC (rev 3968)
@@ -0,0 +1,151 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>HerdictWebReporterPanel</class>
+ <widget class="QMainWindow" name="HerdictWebReporterPanel">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>750</width>
+ <height>694</height>
+ </rect>
+ </property>
+ <property name="windowTitle">
+ <string>MainWindow</string>
+ </property>
+ <property name="documentMode">
+ <bool>true</bool>
+ </property>
+ <widget class="QWidget" name="centralwidget">
+ <layout class="QGridLayout" name="gridLayout_2">
+ <item row="0" column="0">
+ <widget class="QPushButton" name="buttonBack">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ <property name="icon">
+ <iconset resource="../CompSci/vidalia/branches/extension-api/src/vidalia/res/vidalia.qrc">
+ <normaloff>:/images/32x32/go-previous.png</normaloff>
+ <normalon>:/images/32x32/go-previous.png</normalon>:/images/32x32/go-previous.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ <property name="flat">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1">
+ <widget class="QPushButton" name="buttonForward">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ <property name="icon">
+ <iconset resource="../CompSci/vidalia/branches/extension-api/src/vidalia/res/vidalia.qrc">
+ <normaloff>:/images/32x32/go-next.png</normaloff>
+ <normalon>:/images/32x32/go-next.png</normalon>:/images/32x32/go-next.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ <property name="flat">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="2">
+ <widget class="QPushButton" name="buttonRefresh">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ <property name="icon">
+ <iconset resource="../CompSci/vidalia/branches/extension-api/src/vidalia/res/vidalia.qrc">
+ <normaloff>:/images/32x32/view-refresh.png</normaloff>:/images/32x32/view-refresh.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ <property name="flat">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="3">
+ <widget class="QLineEdit" name="lineUrlEntry"/>
+ </item>
+ <item row="1" column="0" colspan="4">
+ <widget class="QSplitter" name="splitter">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <widget class="QWebView" name="webViewTor">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Minimum">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="url">
+ <url>
+ <string>about:blank</string>
+ </url>
+ </property>
+ </widget>
+ <widget class="QWebView" name="webViewPlain">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Minimum">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="url">
+ <url>
+ <string>about:blank</string>
+ </url>
+ </property>
+ </widget>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </widget>
+ <customwidgets>
+ <customwidget>
+ <class>QWebView</class>
+ <extends>QWidget</extends>
+ <header>QtWebKit/QWebView</header>
+ </customwidget>
+ </customwidgets>
+ <resources>
+ <include location="../CompSci/vidalia/branches/extension-api/src/vidalia/res/vidalia.qrc"/>
+ </resources>
+ <connections/>
+</ui>
Property changes on: vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPanel.ui
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPlugin.cpp
===================================================================
--- vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPlugin.cpp (rev 0)
+++ vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPlugin.cpp 2009-07-22 00:05:00 UTC (rev 3968)
@@ -0,0 +1,64 @@
+/*
+** This file is part of Vidalia, and is subject to the license terms in the
+** LICENSE file, found in the top level directory of this distribution. If you
+** did not receive the LICENSE file with this file, you may obtain it from the
+** Vidalia source package distributed by the Vidalia Project at
+** http://www.vidalia-project.net/. No part of Vidalia, including this file,
+** may be copied, modified, propagated, or distributed except according to the
+** terms described in the LICENSE file.
+*/
+
+/*
+** \file HerdictWebReporterPlugin.cpp
+** \version $Id$
+** \brief The HerdictWeb Reporter
+*/
+
+#include "HerdictWebReporterPlugin.h"
+
+HerdictWebReporterPlugin::HerdictWebReporterPlugin()
+{
+ _herdictPanel = 0;
+}
+
+HerdictWebReporterPlugin::~HerdictWebReporterPlugin()
+{
+ if (_herdictPanel)
+ delete _herdictPanel;
+}
+
+VidaliaPanel*
+HerdictWebReporterPlugin::panel()
+{
+ if (!_herdictPanel) {
+ setupUI();
+ }
+ return _herdictPanel;
+}
+
+QString
+HerdictWebReporterPlugin::name() const
+{
+ return QString("HerdictWeb Reporter");
+}
+
+QString
+HerdictWebReporterPlugin::id() const
+{
+ return QString("herdictweb");
+}
+
+QString
+HerdictWebReporterPlugin::description() const
+{
+ return QString("Allows users to interactively report instances of internet censorship to HerdictWeb via Tor..");
+}
+
+void
+HerdictWebReporterPlugin::setupUI()
+{
+ _herdictPanel = new HerdictWebReporterPanel(this);
+}
+
+Q_EXPORT_PLUGIN2(herdictwebreporterplugin, HerdictWebReporterPlugin)
+
Property changes on: vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPlugin.cpp
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPlugin.h
===================================================================
--- vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPlugin.h (rev 0)
+++ vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPlugin.h 2009-07-22 00:05:00 UTC (rev 3968)
@@ -0,0 +1,47 @@
+/*
+** This file is part of Vidalia, and is subject to the license terms in the
+** LICENSE file, found in the top level directory of this distribution. If you
+** did not receive the LICENSE file with this file, you may obtain it from the
+** Vidalia source package distributed by the Vidalia Project at
+** http://www.vidalia-project.net/. No part of Vidalia, including this file,
+** may be copied, modified, propagated, or distributed except according to the
+** terms described in the LICENSE file.
+*/
+
+/*
+** \file HerdictWebReporterPlugin.h
+** \version $Id$
+** \brief The HerdictWeb Reporter
+*/
+
+#ifndef _HERDICTWEBREPORTERPLUGIN_H
+#define _HERDICTWEBREPORTERPLUGIN_H
+
+#include <vidalia/VidaliaPluginInterface.h>
+
+#include <QObject>
+#include <QString>
+
+#include "HerdictWebReporterPanel.h"
+
+class HerdictWebReporterPlugin : public VidaliaPluginInterface
+{
+ Q_OBJECT
+ Q_INTERFACES(VidaliaPluginInterface)
+
+public:
+ HerdictWebReporterPlugin();
+ ~HerdictWebReporterPlugin();
+
+ VidaliaPanel* panel();
+ QString name() const;
+ QString id() const;
+ QString description() const;
+
+private:
+ void setupUI();
+ HerdictWebReporterPanel* _homePanel;
+};
+
+#endif
+
Property changes on: vidalia/branches/extension-api/src/vidalia/HerdictWebReporterPlugin/HerdictWebReporterPlugin.h
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native