Main Page   Class Hierarchy   Compound List   File List   Compound Members  

C_DisplayHelp.cpp

00001 /*
00002  *  This program is free software; you can redistribute it and/or modify
00003  *  it under the terms of the GNU General Public License as published by
00004  *  the Free Software Foundation; either version 2 of the License, or
00005  *  (at your option) any later version.
00006  *
00007  *  This program is distributed in the hope that it will be useful,
00008  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00009  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010  *  GNU General Public License for more details.
00011  *
00012  *  You should have received a copy of the GNU General Public License
00013  *  along with this program; if not, write to the Free Software
00014  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00015  *
00016  * (c)Copyright 2006 Hewlett-Packard Development Company, LP.
00017  *
00018  */
00019 
00020 #include "C_DisplayHelp.hpp"
00021 
00022 
00023 C_DisplayHelp::C_DisplayHelp(){
00024   m_display_ctrl = NULL ;
00025   m_counter = 0 ;
00026   m_ret = 0 ;
00027 }
00028 
00029 C_DisplayHelp::~C_DisplayHelp(){
00030   m_display_ctrl = NULL ;
00031 }
00032 
00033 void C_DisplayHelp::set_display_control(C_DisplayControl *P_display_ctrl) {
00034   m_display_ctrl = P_display_ctrl ;
00035 }
00036 
00037 void C_DisplayHelp::displayScreen() {
00038   if (m_display_ctrl) {
00039     // m_display_ctrl->help_all_screens();
00040     m_ret = m_display_ctrl->help_all_screens(m_counter);
00041   }
00042 }
00043 
00044 void C_DisplayHelp::setCurrentScreen(bool P_first) {
00045   if (P_first == true) {
00046     m_counter = 0 ;
00047     m_ret = 0 ;
00048   } else {
00049     if (m_ret) {
00050       if (m_ret < 20) {
00051         m_ret = 0 ;
00052         m_counter = 0 ; 
00053       } else {
00054         m_counter += m_ret ;
00055       }
00056     }
00057   }
00058 }
00059 

Generated on Wed Mar 7 14:44:49 2007 for Seagull by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002