Permalink
Browse files

Removed welcome_tab (old welcome page based off of html)

  • Loading branch information...
1 parent 1cbd01d commit eaf8c71666a4a3ec3c42960cbf246ab095aad6e6 @bmcdorman bmcdorman committed Jan 19, 2013
Showing with 0 additions and 134 deletions.
  1. +0 −59 include/welcome_tab.hpp
  2. +0 −1 src/main.cpp
  3. +0 −1 src/main_window.cpp
  4. +0 −73 src/welcome_tab.cpp
View
@@ -1,59 +0,0 @@
-/**************************************************************************
- * Copyright 2007-2011 KISS Institute for Practical Robotics *
- * *
- * This file is part of KISS (Kipr's Instructional Software System). *
- * *
- * KISS is free software: you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation, either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * KISS 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 General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with KISS. Check the LICENSE file in the project root. *
- * If not, see <http://www.gnu.org/licenses/>. *
- **************************************************************************/
-
-#ifndef _WELCOME_TAB_HPP_
-#define _WELCOME_TAB_HPP_
-
-// DEPRECATED
-
-#include "build_options.hpp"
-
-#include <QObject>
-
-namespace Kiss
-{
- namespace Widget
- {
- class WelcomeTab;
- }
-}
-
-#ifdef BUILD_WEB_TAB
-
-#include "web_tab.hpp"
-
-namespace Kiss
-{
- namespace Widget
- {
- class WelcomeTab : public WebTab
- {
- Q_OBJECT
- public:
- WelcomeTab(MainWindow *parent = 0);
- void activate();
- void completeSetup();
- };
- }
-}
-
-#endif
-
-#endif
View
@@ -19,7 +19,6 @@
**************************************************************************/
#include "main_window.hpp"
-#include "welcome_tab.hpp"
#include "declarative_tab.hpp"
#include "log_stream_buf.hpp"
#include "log.hpp"
View
@@ -21,7 +21,6 @@
#include "main_window.hpp"
#include "kiss.hpp"
#include "source_file.hpp"
-#include "welcome_tab.hpp"
#include "message_dialog.hpp"
#include "menus.hpp"
#include "project.hpp"
View
@@ -1,73 +0,0 @@
-/**************************************************************************
- * Copyright 2007-2011 KISS Institute for Practical Robotics *
- * *
- * This file is part of KISS (Kipr's Instructional Software System). *
- * *
- * KISS is free software: you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation, either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * KISS 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 General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with KISS. Check the LICENSE file in the project root. *
- * If not, see <http://www.gnu.org/licenses/>. *
- **************************************************************************/
-
-// DEPRECATED
-
-#include "welcome_tab.hpp"
-
-#ifdef BUILD_WEB_TAB
-
-#include <QPalette>
-#include <QFile>
-#include <QDebug>
-#include <QWebPage>
-#include <QSettings>
-#include "main_window.hpp"
-
-#include "web_tab_menu.hpp"
-
-#define FIRST_RUN "First Run"
-
-using namespace Kiss::Widget;
-
-WelcomeTab::WelcomeTab(MainWindow *parent)
- : WebTab(parent)
-{
-
-}
-
-void WelcomeTab::activate()
-{
- WebTab::activate();
- mainWindow()->activateMenuable(Menu::WebTabMenu::menuName(), 0);
- mainWindow()->hideErrors();
-}
-
-void WelcomeTab::completeSetup()
-{
- WebTab::completeSetup();
- load("", true); // Hide URL Bar
-
- QFile file(":/welcome/index.html");
- if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) return;
-
- QByteArray data = file.readAll();
-#ifndef Q_OS_WIN
- data.replace(KISS_BACKGROUND, palette().color(QPalette::Background).name().toAscii());
-#else
- data.replace(KISS_BACKGROUND, "#FFFFFF");
-#endif
-
- webView()->setHtml(data.data());
-
- actionOpenInBrowser->setEnabled(false);
-}
-
-#endif

0 comments on commit eaf8c71

Please sign in to comment.