Show
Ignore:
Timestamp:
04/11/06 10:13:29 (3 years ago)
Author:
jordi
Message:

At last, I have the first presenter's test. At the previous commit I forgot to add the MainPter?.cxx and header filers. Are now included in this commit.

The first check just test that the initial state of the main window is what we expect (i.e., no document yet => all unsensitived).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/DumbDocument.cxx

    r21 r23  
    1616// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
    1717 
     18#include <epdfview.h> 
     19#include "DumbDocument.h" 
     20 
     21using namespace ePDFView; 
     22 
     23//////////////////////////////////////////////////////////////// 
     24// Interface Methods 
     25//////////////////////////////////////////////////////////////// 
     26 
     27DumbDocument::DumbDocument (): 
     28    IDocument () 
     29{ 
     30} 
     31 
     32DumbDocument::~DumbDocument () 
     33{ 
     34} 
     35 
     36gboolean 
     37DumbDocument::isLoaded () 
     38{ 
     39    return false; 
     40} 
     41 
     42gboolean 
     43DumbDocument::loadFile (const gchar *filename, const gchar *password,  
     44                        GError **error) 
     45{ 
     46    return false; 
     47} 
     48 
     49void 
     50DumbDocument::getPageSize (gdouble *width, gdouble *height) 
     51{ 
     52    *width = 10; 
     53    *height = 10; 
     54} 
     55 
     56DocumentPage * 
     57DumbDocument::renderPage () 
     58{ 
     59    return new DocumentPage (); 
     60}