X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=c%2B%2B%2Fcursespad.cc;h=815f51ce0df7d54781f19b38f3a82394abfd1503;hp=b82d39399b459f494fb411ad67120cffe9c8ed8c;hb=46722468f47c2b77b3987729b4bcf2321cccfd01;hpb=c633e5103a29a38532cf1925257b91cea33fd090 diff --git a/c++/cursespad.cc b/c++/cursespad.cc index b82d3939..815f51ce 100644 --- a/c++/cursespad.cc +++ b/c++/cursespad.cc @@ -1,6 +1,6 @@ // * this is for making emacs happy: -*-Mode: C++;-*- /**************************************************************************** - * Copyright (c) 1999 Free Software Foundation, Inc. * + * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -28,14 +28,15 @@ ****************************************************************************/ /**************************************************************************** - * Author: Juergen Pfeifer 1999 * + * Author: Juergen Pfeifer, 1999 * + * Contact: http://www.familiepfeifer.de/Contact.aspx?Lang=en * ****************************************************************************/ +#include "internal.h" #include "etip.h" #include "cursesw.h" -#include "internal.h" -MODULE_ID("$Id: cursespad.cc,v 1.2 1999/09/11 23:25:54 tom Exp $") +MODULE_ID("$Id: cursespad.cc,v 1.6 2002/09/22 19:32:55 tom Exp $") NCursesPad::NCursesPad(int lines, int cols) : NCursesWindow(), @@ -53,7 +54,8 @@ NCursesPad::NCursesPad(int lines, int cols) } -int NCursesPad::driver (int key) { +int NCursesPad::driver (int key) +{ // Default implementation switch(key) { case KEY_UP: @@ -79,7 +81,8 @@ int NCursesPad::driver (int key) { } -void NCursesPad::operator()(void) { +void NCursesPad::operator()(void) +{ NCursesWindow* W = Win(); if ((NCursesWindow*)0 != W) { @@ -164,7 +167,8 @@ void NCursesPad::operator()(void) { } -int NCursesPad::refresh() { +int NCursesPad::refresh() +{ int res = noutrefresh(); if (res==OK && ((NCursesWindow*)0 != viewWin)) { res = (viewWin->refresh()); @@ -172,7 +176,8 @@ int NCursesPad::refresh() { return(res); } -int NCursesPad::noutrefresh() { +int NCursesPad::noutrefresh() +{ int res = OK; NCursesWindow* W = Win(); if ((NCursesWindow*)0 != W) { @@ -210,7 +215,8 @@ void NCursesPad::setSubWindow(NCursesWindow& sub) viewSub = ⊂ } -void NCursesFramedPad::OnOperation(int pad_req) { +void NCursesFramedPad::OnOperation(int pad_req) +{ NCursesWindow* W = Win(); NCursesWindow* Win = getWindow();