Changeset 213 for trunk/src/MainPter.cxx

Show
Ignore:
Timestamp:
06/10/06 14:14:55 (2 years ago)
Author:
jordi
Message:

configure script now sets a Makefile condition about printing support. A new empty print dialog has been added.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/MainPter.cxx

    r212 r213  
    446446} 
    447447 
     448#if defined (HAVE_CUPS) 
     449/// 
     450/// @brief The "print" action was activated. 
     451/// 
     452void 
     453MainPter::printActivated () 
     454{ 
     455    PrintPter *print = new PrintPter (); 
     456    IPrintView *view = getView ().getPrintView (); 
     457    if ( NULL != view ) 
     458    { 
     459        print->setView (view); 
     460    } 
     461    else 
     462    { 
     463        delete print; 
     464    } 
     465    // There's no need to keep a pointer to the presenter because 
     466    // it will destroy itself when the dialog is closed. 
     467} 
     468#endif // HAVE_CUPS 
     469 
    448470/// 
    449471/// @brief The "Preferences" was activated. 
     
    458480        preferences->setView (view); 
    459481    } 
     482    else 
     483    { 
     484        delete preferences; 
     485    } 
    460486    // There's no need to keep a pointer of the preferences presenter because 
    461     // when the dialog is closed of the application is finished it will 
     487    // when the dialog is closed or the application is finished it will 
    462488    // destroy itself. 
    463489}