|
Rapicorn - Experimental UI Toolkit - Source Code 10.08.1
|
00001 /* Rapicorn 00002 * Copyright (C) 2006 Tim Janik 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2.1 of the License, or (at your option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * A copy of the GNU Lesser General Public License should ship along 00015 * with this library; if not, see http://www.gnu.org/copyleft/. 00016 */ 00017 #include <ui/container.hh> 00018 00019 namespace Rapicorn { 00020 00021 class TestContainer : public virtual ContainerImpl { 00022 protected: 00023 explicit TestContainer (); 00024 public: 00025 virtual String value () const = 0; 00026 virtual void value (const String &val) = 0; 00027 virtual String assert_value () const = 0; 00028 virtual void assert_value (const String &val) = 0; 00029 virtual double assert_left () const = 0; 00030 virtual void assert_left (double val) = 0; 00031 virtual double assert_right () const = 0; 00032 virtual void assert_right (double val) = 0; 00033 virtual double assert_top () const = 0; 00034 virtual void assert_top (double val) = 0; 00035 virtual double assert_bottom () const = 0; 00036 virtual void assert_bottom (double val) = 0; 00037 virtual double assert_width () const = 0; 00038 virtual void assert_width (double val) = 0; 00039 virtual double assert_height () const = 0; 00040 virtual void assert_height (double val) = 0; 00041 virtual double epsilon () const = 0; 00042 virtual void epsilon (double val) = 0; 00043 virtual bool paint_allocation () const = 0; 00044 virtual void paint_allocation (bool val) = 0; 00045 virtual bool fatal_asserts () const = 0; 00046 virtual void fatal_asserts (bool val) = 0; 00047 virtual String accu () const = 0; 00048 virtual void accu (const String &val) = 0; 00049 virtual String accu_history () const = 0; 00050 virtual void accu_history (const String &val) = 0; 00051 static uint seen_test_items (); 00052 const PropertyList& list_properties (); 00053 Signal<TestContainer, void (const String &assertion)> sig_assertion_ok; 00054 Signal<TestContainer, void ()> sig_assertions_passed; 00055 }; 00056 00057 class TestBox : public virtual ContainerImpl { 00058 public: 00059 virtual String snapshot_file () const = 0; 00060 virtual void snapshot_file (const String &val) = 0; 00061 const PropertyList& list_properties (); 00062 }; 00063 00064 } // Rapicorn
1.7.4