billr@saab.CNA.TEK.COM (Bill Randle) (04/06/91)
Submitted-by: Bill Randle <billr@saab.CNA.TEK.COM> Posting-number: Volume 17, Issue 94 Archive-name: calentool/part13 #! /bin/sh # This is a shell archive. Remove anything before this line, then unpack # it by saving it into a file and typing "sh file". To overwrite existing # files, type "sh file -c". You can also feed this as standard input via # unshar, or by typing "sh <file", e.g.. If this archive is complete, you # will see the following message at the end: # "End of archive 13 (of 23)." # Contents: dates/lives6 event.c wpaint.c # Wrapped by billr@saab on Thu Mar 28 08:38:24 1991 PATH=/bin:/usr/bin:/usr/ucb ; export PATH if test -f 'dates/lives6' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'dates/lives6'\" else echo shar: Extracting \"'dates/lives6'\" \(32402 characters\) sed "s/^X//" >'dates/lives6' <<'END_OF_FILE' X# CalenTool V2.2 - nflag=1 range=11,12 - DO NOT REMOVE THIS LINE X# $Header: lives6,v 1.1 91/03/07 16:19:01 billr Exp $ X# (Nov-Dec) X# Famous people's births, deaths and marriages file for calentool X# extracted from ProLine's today file and Today in History provided X# by Robert Heckendorn at Hewlett-Packard in Fort Collins, Colorado. X# converted to calentool format by lwv27%cas.BITNET@CUNYVM.CUNY.Edu. X# X# There may be duplicates where I don't have a definitive correct X# date. billr@saab.cna.tek.com X# X** 11 01 99 99 00 Fernando Valenzuela, baseball pitcher (1960) X** 11 01 99 99 00 Gary Player, golfer and Longwood Florida resident (1935) X** 11 01 99 99 00 James J. Kilpatrick, newspaper columnist (1920) X** 11 01 99 99 00 Jeannie Berlin, actress (1949) X** 11 01 99 99 00 Larry Flynt, magazine publisher (1942) X** 11 01 99 99 00 Rick Allen, rock musician (1963) X** 11 01 99 99 00 Robert Foxworth, actor (1941) X** 11 02 99 99 00 Alfre Woodard, actress (1953) X** 11 02 99 99 00 Burt Lancaster, actor (1913) X** 11 02 99 99 00 Daniel Boone born near Reading, PA (1734) X** 11 02 99 99 00 Harlow Shapley, US astronomer (1885) X** 11 02 99 99 00 James K. Polk, 11th President (1845-1849) (1795) X** 11 02 99 99 00 Keith Emerson born (1944) X** 11 02 99 99 00 Patrick J. Buchanan, political commentator (1938) X** 11 02 99 99 00 Ray Walston, actor (1914) X** 11 02 99 99 00 Shere Hite, author (1942) X** 11 02 99 99 00 Warren G. Harding, 29th President (1921-1923) (1865) X** 11 03 99 99 00 James Reston, journalist (1909) X** 11 03 99 99 00 James Taylor & Carly Simon married (Manhattan, 1972) X** 11 03 99 99 00 John Montague, 4th Earl of Sandwich, inventor of same. (1718) X** 11 03 99 99 00 Mary Martin, stage actress of Peter Pan and South Pacific, dies (1990) X** 11 03 99 99 00 Michael Dukakis (1933) X** 11 04 99 99 00 Art Carney, actor, is born (1918) X** 11 04 99 99 00 Cameron Mitchell, actor (1918) X** 11 04 99 99 00 Jakob Ludwig Felix Mendelssohn-Bartholdy (Felix Mendelssohn), the composer, dies in Leipzig (1847) X** 11 04 99 99 00 King William III of Orange born (1650) X** 11 04 99 99 00 Loretta Swit, actress, is born (1937) X** 11 04 99 99 00 Markie Post, actress (1950) X** 11 04 99 99 00 Walter Cronkite, CBS newsman, is born (1916) X** 11 04 99 99 00 Will Rogers, humorist, born (1879) X** 11 05 99 99 00 Andrea McArdle, actress (1963) X** 11 05 99 99 00 Art Garfunkel, singer (1941) X** 11 05 99 99 00 Bryan Adams, singer (1959) X** 11 05 99 99 00 Eugene Victor Debs, American labor organizer and socialist, is born (1855) X** 11 05 99 99 00 Ida Tarbell, muckraker (Standard Oil was VERY unhappy) (1857) X** 11 05 99 99 00 Ike Turner, singer-songwriter (1931) X** 11 05 99 99 00 Paul Simon, singer and songwriter, is born (1942) X** 11 05 99 99 00 Roy Rogers, actor and singer, is born in Cincinnati, OH (1912) X** 11 05 99 99 00 Sam Shepard, actor-playwright (1943) X** 11 05 99 99 00 Tatum O'Neal, actress (1963) X** 11 05 99 99 00 Vladimir Horowitz, pianist, dies (1989) X** 11 06 99 99 00 Aloys Senefelder, inventor of lithography. (1771) X** 11 06 99 99 00 Charles Henry Dow, founded Dow Jones & Co. (1851) X** 11 06 99 99 00 Dr. James Naismith, Canadian inventor of Basketball, is born (1861) X** 11 06 99 99 00 Edsel Ford is born (1893) X** 11 06 99 99 00 Glenn Frey, rock singer (1948) X** 11 06 99 99 00 John Philip Sousa, band leader and composer, is born in Washington D.C. (1854) X** 11 06 99 99 00 Lance Kerwin, actor (1960) X** 11 06 99 99 00 Maria Shriver, TV newscaster (1955) X** 11 06 99 99 00 Mike Nichols, movie and stage director (1931) X** 11 06 99 99 00 Peter Ilich Tchaikovsky, Russian composer, dies of Cholera after knowingly drinking unboiled water (1893) X** 11 06 99 99 00 Sally Field, actress, is born (1946) X** 11 06 99 99 00 Sir John Falstaff, English knight, dies (1406) X** 11 07 99 99 00 Al Hirt, jazz musician (1922) X** 11 07 99 99 00 Albert Camus born in Mondavi, Algeria (1913) X** 11 07 99 99 00 Billy Graham, evangelist, is born (1913) X** 11 07 99 99 00 Eleanor Roosevelt dies (1962) X** 11 07 99 99 00 Elijah P Lovejoy, Abolitionist newspaperman, murdered by mob (1837) X** 11 07 99 99 00 Joni Mitchell (Roberta Joan Anderson) born in Alberta, Canada (1943) X** 11 07 99 99 00 Madame Marie Curie, discovered radium. (1867) X** 11 07 99 99 00 Mary Travers, singer (1937) X** 11 08 99 99 00 Bobby Bowden, Florida State University football coach (1929) X** 11 08 99 99 00 Doc Holliday, notorious dentist of the Old West, dies (1887) X** 11 08 99 99 00 Edmond Halley, astronomer, 1st to calculate a comet's orbit. (1656) X** 11 08 99 99 00 Katherine Hepburn, actress, born (1909) X** 11 08 99 99 00 Mary Hart, television personality, is born (1951) X** 11 08 99 99 00 Morley Safer, newsman of TV program 60 Minutes, is born (1931) X** 11 08 99 99 00 Patti Page, singer, born (1927) X** 11 09 99 99 00 Bob Graham, former governor of Florida (1936) X** 11 09 99 99 00 Carl Sagan, astronomer, author and popularist of the sciences, is born (1934) X** 11 09 99 99 00 Charles de Gaulle, French military and political leader, dies (1970) X** 11 09 99 99 00 Charlie Jones, sportscaster (1930) X** 11 09 99 99 00 Dylan Thomas, Welsh romantic poet, dies in New York (1953) X** 11 09 99 99 00 Ed Wynn, actor, is born (1886) X** 11 09 99 99 00 Lou Ferrigno, actor (1952) X** 11 09 99 99 00 Spiro T. Agnew, former Vice President (1918) X** 11 09 99 99 00 Whitey Herzog, former baseball manager (1931) X** 11 10 99 99 00 Ann Reinking, actress-dancer (1949) X** 11 10 99 99 00 Bob Marshall, Alaskan explorer, dies (1939) X** 11 10 99 99 00 Captain Wirz, commandant of Andersonville Prison hanged (1865) X** 11 10 99 99 00 Cyrus West Field, financier known for the success of the 1st transatlantic cable (1819) X** 11 10 99 99 00 Francois Couperin, composer (1668) X** 11 10 99 99 00 Greg Lake born (Bournemouth, England, 1948) X** 11 10 99 99 00 John Knudsen Northrop, aircraft designer. (1895) X** 11 10 99 99 00 Martin Luther, church reformer, born in Eisleben, Germany (1483) X** 11 10 99 99 00 Richard Burton, the actor, is born (1925) X** 11 10 99 99 00 Roy Scheider, actor (1935) X** 11 10 99 99 00 Soviet President Leonid Brezhnev dies at age 75 (1982) X** 11 10 99 99 00 William Hogarth, artist, is born (1697) X** 11 11 99 99 00 Alger Hiss, former State Department official (1904) X** 11 11 99 99 00 Daniel Ortega, former president of Nicaragua (1945) X** 11 11 99 99 00 Demi Moore, actress (1962) X** 11 11 99 99 00 Fyodor Dostoyevsky, author, "Crime and Punishment" (1821) X** 11 11 99 99 00 General George Patton, World War II tank strategist, is born in San Gabriel, California (1885) X** 11 11 99 99 00 Jonathan Winters, comedian (1925) X** 11 11 99 99 00 Kurt Vonnegut, Jr, author, born in Indianapolis (1922) X** 11 11 99 99 00 Nat Turner, slave who lead a slave revolt, hanged (1831) X** 11 11 99 99 00 Typhoid Mary dies. She was under permanent detention for refusing to give up serving food and would even use false names to continue to do so. (1938) X** 11 11 99 99 00 William Proxmire, former Senator (1915) X** 11 12 99 99 00 Auguste Rodin, French sculptor, is born (1840) X** 11 12 99 99 00 Charles Manson, crazed murderer, born (1934) X** 11 12 99 99 00 Elizabeth Stanton, early leader of women's rights movement. (1815) X** 11 12 99 99 00 Grace Kelly, actress and monagesque princess, is born (1929) X** 11 12 99 99 00 Harry Blackmun, Supreme Court Justice (1908) X** 11 12 99 99 00 Kim Hunter, actress (1922) X** 11 12 99 99 00 Nadia Comaneci, former Romanian gymnast (1961) X** 11 12 99 99 00 Neil Young, musician-songwriter, born in Toronto (1945) X** 11 12 99 99 00 Percival Lowell, astronomer, dies at Flagstaff Arizona (1916) X** 11 12 99 99 00 Sun Yat-sen, father of modern China (ROC and PRC) (1866) X** 11 13 99 99 00 Dack Rambo, actor (1941) X** 11 13 99 99 00 Garry Marshall, producer-director (1934) X** 11 13 99 99 00 Gioacchino Rossini, opera composer, dies (1868) X** 11 13 99 99 00 Justice Louis Brandeis (1856) X** 11 13 99 99 00 Karen Silkwood dies under unusual circumstances (1974) X** 11 13 99 99 00 Madeleine Sherwood, actress (1922) X** 11 13 99 99 00 Richard Mulligan, actor (1932) X** 11 13 99 99 00 Robert Louis Stevenson, author of Treasure Island and Dr Jekyll and Mr. Hyde, born in Edinburgh (1850) X** 11 13 99 99 00 St. Augustine of Hippo born in Numidia, Algeria (354) X** 11 13 99 99 00 Whoopi Goldberg, actress-comedian (1949) X** 11 14 99 99 00 Aaron Copland, American composer (Billy the Kid, Appalachian Spring) (1900) X** 11 14 99 99 00 Brian Keith, actor (1921) X** 11 14 99 99 00 Claude Monet, impressionist (1840) X** 11 14 99 99 00 Don Stewart, actor (1935) X** 11 14 99 99 00 Gottfried Wilhelm Leibnitz, German mathematician and philosopher, died (1716) X** 11 14 99 99 00 HRH Charles, Prince of Wales, first son of Queen Elizabeth II, is born (1948) X** 11 14 99 99 00 Henri Dutrochet, discovered & named process of osmosis (1776) X** 11 14 99 99 00 Jordan's King Hussein (1935) X** 11 14 99 99 00 McLean Stevenson, actor (1929) X** 11 14 99 99 00 Robert Fulton, built 1st commercial steamboat (1765) X** 11 15 99 99 00 Edward Asner, actor (1929) X** 11 15 99 99 00 Erwin Rommel, German tactician, general known as "The Desert Fox", is born (1891) X** 11 15 99 99 00 Georgia O'Keeffe, Southwestern artist, was born (1887) X** 11 15 99 99 00 Howard H. Baker, former White House chief of staff (1925) X** 11 15 99 99 00 Joanna Barnes, actress (1934) X** 11 15 99 99 00 Johannes Kepler, the astronomer, dies (1630) X** 11 15 99 99 00 Mark Acres, Orlando Magic forward-center (1962) X** 11 15 99 99 00 Petula Clark, singer (1932) X** 11 15 99 99 00 William Cowper, poet, is born (1731) X** 11 15 99 99 00 Willim Herschel born (1738) X** 11 16 99 99 00 Burgess Meredith, actor (1908) X** 11 16 99 99 00 Clark Gable, film actor, dies (1960) X** 11 16 99 99 00 Dwight Gooden, baseball player (1964) X** 11 16 99 99 00 Elizabeth Drew, journalist (1935) X** 11 16 99 99 00 Emperor of Rome, Tiberius born (42 BC) X** 11 16 99 99 00 George Gallop, pollster (1901) X** 11 16 99 99 00 Joanna Pettet, actress (1944) X** 11 16 99 99 00 Lisa Bonet, actress (1967) X** 11 16 99 99 00 Lucas von Hildebrandt, architect, dies (1745) X** 11 16 99 99 00 William Handy, established the popularity of the blues in band music (1873) X** 11 17 99 99 00 "Bloody" Mary Tudor, Queen of England dies (1558) X** 11 17 99 99 00 August Mobius, the mathematician, was born (1790) X** 11 17 99 99 00 Bob Mathias, Olympian-turned-politician (1930) X** 11 17 99 99 00 Danny DeVito, actor (1944) X** 11 17 99 99 00 Gordon Lightfoot, singer, is born (1938) X** 11 17 99 99 00 Lauren Hutton, actress, is born (1944) X** 11 17 99 99 00 Lyndon Baines Johnson married Claudia Alta Taylor, better known as "Lady Bird" (1934) X** 11 17 99 99 00 Rock Hudson, the actor, is born (1925) X** 11 18 99 99 00 Alan Sheppard, 1st American into space. (1923) X** 11 18 99 99 00 Boatswain (Lord Byron's dog) dies (1808) X** 11 18 99 99 00 Eugene Ormandy, conductor, was born (1889) X** 11 18 99 99 00 Imogene Coca, actress-comedian (1908) X** 11 18 99 99 00 Linda Evans, actress (1942) X** 11 18 99 99 00 Louis-Jacques-Mande Daguerre, developed a method of photography (1789) X** 11 18 99 99 00 Sir William S. Gilbert, playwright (of Gilbert & Sullivan fame) (1836) X** 11 19 99 99 00 Alan Young, actor (1919) X** 11 19 99 99 00 Dick Cavett, talk show host (1936) X** 11 19 99 99 00 Franz Schubert, composer, dies (1828) X** 11 19 99 99 00 Garrick Utley, NBC newsman (1939) X** 11 19 99 99 00 George Rogers Clark, frontier military leader in Revolutionary War (1752) X** 11 19 99 99 00 James A. Garfield, 20th President (March 4-September 19, 1881) (1831) X** 11 19 99 99 00 Jeane Kirkpatrick, former United Nations Ambassador (1926) X** 11 19 99 99 00 Jodie Foster, actress (1962) X** 11 19 99 99 00 Joe Hill (labor organizer) executed in Salt Lake City (1915) X** 11 19 99 99 00 Larry King, talk show host (1933) X** 11 19 99 99 00 Roy Campanella, baseball hall-of-famer (1921) X** 11 19 99 99 00 Ted Turner, broadcasting and sports executive (1938) X** 11 19 99 99 00 Tommy Dorsey, band leader, is born (1905) X** 11 20 99 99 00 Alistair Cooke, author, is born (1908) X** 11 20 99 99 00 Bo Derek, actress, is born (1956) X** 11 20 99 99 00 Britain's future queen, Princess Elizabeth, married Philip Mountbatten, Duke of Edinburgh (1947) X** 11 20 99 99 00 Chester Gould, author of Dick Tracy, is born in Pawnee, Oklahoma (1900) X** 11 20 99 99 00 Dick Smothers, comedian, is born (1939) X** 11 20 99 99 00 Duane Allman born (Nashville, TN, 1946) X** 11 20 99 99 00 Edwin Hubble, astronomer, is born (1889) X** 11 20 99 99 00 Estelle Parsons, actress (1927) X** 11 20 99 99 00 Francisco Franco, dictator of Spain, dies in Madrid (1975) X** 11 20 99 99 00 Joe Walsh born (Cleveland, 1947) X** 11 20 99 99 00 Judy Woodruff, broadcast journalist (1946) X** 11 20 99 99 00 Otto von Guericke, invented the air pump (1602) X** 11 20 99 99 00 Peregrine White is born aboard the Mayflower in Massachusetts Bay becoming the first child born of English parents in the New England (1620) X** 11 20 99 99 00 Robert F. Kennedy, Attorney General and Senator, is born (1925) X** 11 21 99 99 00 Coleman Hawkins, virtually created the tenor saxophone for jazz, born (1904) X** 11 21 99 99 00 Francois Marie Arouet Voltaire is born (1694) X** 11 21 99 99 00 Goldie Hawn, actress, is born (1945) X** 11 21 99 99 00 Juliet Mills, actress (1941) X** 11 21 99 99 00 Laurence Luckinbill, actor (1934) X** 11 21 99 99 00 Lorna Luft, actress-singer (1952) X** 11 21 99 99 00 Marlo Thomas, actress (1937) X** 11 21 99 99 00 Natalia Makarova, ballet dancer (1940) X** 11 21 99 99 00 Rene Magritte, artist, is born (1898) X** 11 21 99 99 00 Sir Samuel Cunard, founded 1st regular Atlantic steamship line (1787) X** 11 21 99 99 00 Stan Musial, baseball Hall-of-Famer (1920) X** 11 21 99 99 00 Vivian Blaine, actress-singer (1921) X** 11 21 99 99 00 Voltaire, thinker (1694) X** 11 22 99 99 00 Aldous Huxley, English author, dies (1963) X** 11 22 99 99 00 Arthur S. Eddington dies (1944) X** 11 22 99 99 00 Billie Jean King, tennis player (1943) X** 11 22 99 99 00 Boris Becker, tennis player (1967) X** 11 22 99 99 00 Charles de Gaulle (1890) X** 11 22 99 99 00 Greg Luzinski, baseball player (1950) X** 11 22 99 99 00 Guion S. Bluford, astronaut (1942) X** 11 22 99 99 00 Hoagy Carmichael, composed 'Star Dust'. (1899) X** 11 22 99 99 00 Jack London, author, dies (1916) X** 11 22 99 99 00 Jamie Lee Curtis, actress (1958) X** 11 22 99 99 00 Mae West, actress and sex idol, dies in LA at 87 (1980) X** 11 22 99 99 00 Mariel Hemingway, actress (1961) X** 11 22 99 99 00 President John Kennedy assasinated in Dallas. (1963) X** 11 22 99 99 00 Robert Vaughn, actor (1932) X** 11 22 99 99 00 Robin Hood dies according to "A Lytell Geste of Robyn Hood" printed in 1495 (1247) X** 11 22 99 99 00 Terry Gilliam, comedy writer-animator (1940) X** 11 22 99 99 00 The English pirate Blackbeard was killed off the coast of Virginia (1718) X** 11 22 99 99 00 Tom Conti, actor (1941) X** 11 23 99 99 00 Boris Karloff, the actor, is born in Dulwich, England. (1887) X** 11 23 99 99 00 Franklin Pierce, 14th President (1853-1857) (1804) X** 11 23 99 99 00 Harpo Marx of the Marx brothers is born (1893) X** 11 23 99 99 00 Jerry Bock, broadway composer (1928) X** 11 23 99 99 00 Maurice Zolotow, author (1913) X** 11 23 99 99 00 William E. Brock, former Labor Secretary (1930) X** 11 23 99 99 00 William H. Bonney (Billy the Kid) is born (1859) X** 11 24 99 99 00 Baruch Spinoza, Dutch philosopher and theologian, is born (1632) X** 11 24 99 99 00 Erskine Childers, Irish nationalist writer, is executed by the Irish in Dublin (1922) X** 11 24 99 99 00 Father Junipero Serra, who had a mission in California (1713) X** 11 24 99 99 00 Henri de Toulouse-Lautrec, painter and graphic artist, is born in Albi, France (1864) X** 11 24 99 99 00 John Knox, Scottish religious and political reformer, dies (1572) X** 11 24 99 99 00 Lee Harvey Oswald killed by Jack Ruby (Dallas, 1963) X** 11 24 99 99 00 Marlin Fitzwater, White House spokesman (1942) X** 11 24 99 99 00 Scott Joplin, entertainer (1868) X** 11 24 99 99 00 William F. Buckley, columnist (1925) X** 11 24 99 99 00 Zachary Taylor, 12th President (1849-1850) (1784) X** 11 25 99 99 00 Amy Grant, singer (1960) X** 11 25 99 99 00 Andrew Carnegie, steelman and librarian (1835) X** 11 25 99 99 00 Bernie Kosar, football player (1963) X** 11 25 99 99 00 Carry Nation, scrouge of barkeepers and drinkers. (1846) X** 11 25 99 99 00 Christina Applegate, actress (1971) X** 11 25 99 99 00 Joe DiMaggio, baseball Hall-of-Famer (1914) X** 11 25 99 99 00 John F. Kennedy Jr. (1960) X** 11 25 99 99 00 John Larroquette, actor (1947) X** 11 25 99 99 00 Kathryn Crosby, actress (1933) X** 11 25 99 99 00 Ms. Elaine Esposito dies at age 43 after having been in a coma since her appendectomy when she was 6. (1978) X** 11 25 99 99 00 Pope John XXIII was born Angelo Roncalli in a village near Bergamo, Italy (1881) X** 11 25 99 99 00 Richardo Montalban, actor, is born (1920) X** 11 26 99 99 00 Charles M. Schultz, creator of Peanuts cartoon strip, is born in Minneapolis (1922) X** 11 26 99 99 00 Charles W. Goddard, the author of "The Perils of Pauline", is born (1879) X** 11 26 99 99 00 Eugene Ionesco, playwright (1912) X** 11 26 99 99 00 John Harvard, minister, philanthropist, and founder of Harvard University, is born (1607) X** 11 26 99 99 00 Louisa May Alcott, little woman (1832) X** 11 26 99 99 00 Norbert Weiner born (1894) X** 11 26 99 99 00 Rich Little, impressionist (1938) X** 11 26 99 99 00 Robert Goulet, singer (1933) X** 11 26 99 99 00 St Peter, martyr and bishop of Alexandria, dies (311) X** 11 26 99 99 00 Tina Turner, rock singer, is born (1938) X** 11 26 99 99 00 Willis Haviland Carrier, developed air-conditioning equipment (1876) X** 11 27 99 99 00 Ada Byron (Countess of Lovelace) only child of Lord and Lady Byron dies (1852) X** 11 27 99 99 00 Alexander M. Haig, former Secretary of State (1924) X** 11 27 99 99 00 Anders Celsius (1701) X** 11 27 99 99 00 Eugene O'Neill, dramatist, dies in Boston (1953) X** 11 27 99 99 00 Jimi Hendrix (Johnny Allen Hendrix), rock guitarist, is born in Seattle (1942) X** 11 27 99 99 00 Tracy Austin, tennis player (1962) X** 11 28 99 99 00 "Buffalo" Bob Smith, children's entertainer, is born (1917) X** 11 28 99 99 00 Berry Gordy Jr., recording executive (1929) X** 11 28 99 99 00 Hope Lange, actress, is born (1933) X** 11 28 99 99 00 Judd Nelson, actor (1959) X** 11 28 99 99 00 Paul Shaffer, musician, is born (1949) X** 11 28 99 99 00 Randy Newman, singer (1943) X** 11 28 99 99 00 Rosalind Russell, actress, dies of cancer at 63 (1976) X** 11 28 99 99 00 Washington Irving, American writer and diplomat dies (1859) X** 11 28 99 99 00 William Blake, the English poet and painter, is born (1757) X** 11 29 99 99 00 C.S. Lewis, author, is born (1898) X** 11 29 99 99 00 Cardinal Thomas Wolsey, one time advisor to Henry VIII, dies (1530) X** 11 29 99 99 00 Cathy Moriarty, actress (1960) X** 11 29 99 99 00 Christian Doppler, discovered Doppler Effect (frequency shift) (1803) X** 11 29 99 99 00 Chuck Mangione, musician (1940) X** 11 29 99 99 00 Garry Shandling (1949) X** 11 29 99 99 00 Howie Mandel, actor-comedian (1955) X** 11 29 99 99 00 John Mayall born (Cheshire, England, 1933) X** 11 29 99 99 00 Louisa May Alcott, author of "Little Women", is born (1832) X** 11 29 99 99 00 Natalie Wood, actress, drowned in a boating accident off Santa Catalina Island, California, at age 43 (1981) X** 11 29 99 99 00 Nellie Taylor Ross, the first woman governor (Wyoming) and first woman director of the US Mint is born (1876) X** 11 29 99 99 00 Sir Ambrose Fleming, inventor of the diode. (1849) X** 11 29 99 99 00 Suzy Chaffee, skier (1946) X** 11 29 99 99 00 Vin Scully, sportscaster (1927) X** 11 30 99 99 00 Billy Idol, singer (1955) X** 11 30 99 99 00 Bo Jackson, football and baseball player (1962) X** 11 30 99 99 00 Cleopatra, queen of Egypt, commits suicide by snake (30 BC) X** 11 30 99 99 00 Dick Clark, host of "American Bandstand", is born (1929) X** 11 30 99 99 00 Jonathan Swift, satirist, wrote "Gulliver's Travels" (1667) X** 11 30 99 99 00 Mark Twain (Samuel Langhorne Clemens) born in Florida, Missouri (1835) X** 11 30 99 99 00 Oliver Fisher Winchester, rifle maker. (1810) X** 11 30 99 99 00 Oscar Wilde, Irish author, dies (1900) X** 11 30 99 99 00 Shirley Chisholm, former U.S. Representative, D-N.Y. (1924) X** 11 30 99 99 00 St. Andrew is crucified (70) X** 11 30 99 99 00 Winston Churchill, statesman, born in Blenheim Palace (1874) X** 12 01 99 99 00 Bette Midler, singer, is born in Paterson, NJ (1945) X** 12 01 99 99 00 Bill Scott who did the voice of Bullwinkle, Doright and Mr. Peabody dies (1985) X** 12 01 99 99 00 Mary Martin the actress was born (1914) X** 12 01 99 99 00 Rex Stout, American detective story writer, creator of Nero Wolfe, born in Noblesville, Indiana (1886) X** 12 01 99 99 00 Woody Allen (Allen Stuart Konigsberg) born in Brooklyn, NY (1935) X** 12 02 99 99 00 Aaron Copland, Americian composer, dies (1990) X** 12 02 99 99 00 Edmond Rostand, dramatist, and author of "Cyrano de Bergerac", dies in Paris (1914) X** 12 02 99 99 00 Hernando Cortez, the conqueror of Mexico, dies (1547) X** 12 02 99 99 00 John Brown, militant abolitionist, hung for treason, murder and conspiracy in Charlestown, Virginia (1859) X** 12 02 99 99 00 Peter Carl Goldmark, developed color TV & LP records. (1906) X** 12 02 99 99 00 St. Francis Xavier, founder of the Jesuits, dies (1552) X** 12 03 99 99 00 Antonio Soler, famed late 18th century Spanish composer. (1729) X** 12 03 99 99 00 John Bartlett, author of Bartlett's Familiar Quotations, dies (1905) X** 12 03 99 99 00 Joseph Conrad, author of "Lord Jim", is born (1857) X** 12 03 99 99 00 Mary Baker Eddy, founder of the "Church of Christ, Scientist", dies (1910) X** 12 03 99 99 00 Robert Louis Stevenson, author, dies in Samoa (1895) X** 12 04 99 99 00 Samuel Butler, English novelist, born (1835) X** 12 04 99 99 00 Tommy Bolin dies of heroin overdose (Miami, 1976) X** 12 05 99 99 00 Claude Monet the French impressionist painter dies (1926) X** 12 05 99 99 00 Director Fritz Lang (Metropolis?) born in Vienna (1890) X** 12 05 99 99 00 General George A. Custer (1839) X** 12 05 99 99 00 Martin Van Buren, 8th President (1837-1841) (1782) X** 12 05 99 99 00 Scottish King MacBeth dies (1057) X** 12 05 99 99 00 Walt (Walter Elias) Disney born in Chicago (1901) X** 12 05 99 99 00 Wolfgang Amadeus Mozart dies (1791) X** 12 06 99 99 00 John Eberhard, built 1st large scale pencil factory in US. (1822) X** 12 06 99 99 00 St. Nicholas, archbishop of Myrna and confessor, patron saint of Russia, mariners, youth and virgins, dies (342) X** 12 06 99 99 00 William S. Hart, star of silent Western movies (1870) X** 12 07 99 99 00 Harry Chapin born (New York City, 1942) X** 12 07 99 99 00 Madame du Barry, mistress of French King Louis XV, is guillotined (1793) X** 12 07 99 99 00 Mary Queen of Scots is born (1532) X** 12 07 99 99 00 Noam Chomsky, linguist, is born (1928) X** 12 07 99 99 00 Theodore Schwann, physiologist, is born (1810) X** 12 07 99 99 00 Thornton Wilder, novelist, author of "The Bridge of San Luis Rey", dies (1975) X** 12 07 99 99 00 Willa Cather, a novelist, is born in Virginia (1873) X** 12 07 99 99 00 William Bligh, captain of the Bounty, dies (1817) X** 12 08 99 99 00 Eli Whitney, the inventor of the cotton gin, is born (1765) X** 12 08 99 99 00 Horace (Quintus Horatius Flaccus) born in Venosa, Italy (65 BC) X** 12 08 99 99 00 James (Grover) Thurber born in Columbus, Ohio (1894) X** 12 08 99 99 00 Jean Sibelius, major Scandinavian composer. (1865) X** 12 08 99 99 00 Jim Morrison born (Melbourne, FL, 1943) X** 12 08 99 99 00 John Lennon, musician and composer, assassinated in New York City (1980) X** 12 08 99 99 00 Sammy Davis Jr., entertainer, is born in New York, New York (1925) X** 12 08 99 99 00 Scaramouche dies (1694) X** 12 08 99 99 00 Vitus Bering the discoverer of the Bering strait dies (1741) X** 12 08 99 99 00 William Durant, founded General Motors Corp. (1861) X** 12 09 99 99 00 Clarence Birdseye, became the frozen vegetable king (1886) X** 12 09 99 99 00 Hermione Gingold, actress who played the mayor's wife in "The Music Man", was born (1887) X** 12 09 99 99 00 Joel Chandler Harris, author of "Uncle Remus", is born (1848) X** 12 09 99 99 00 John Milton, epic poet, is born (1608) X** 12 09 99 99 00 Joseph Stalin, Soviet dictator, is born (1879) X** 12 09 99 99 00 Natsume Soseki, Japanese novelist and critic, dies (1916) X** 12 10 99 99 00 Alfred Nobel, the inventor of dynamite, dies (1896) X** 12 10 99 99 00 Emily Dickinson, the poet, is born (1830) X** 12 10 99 99 00 Melvil Dewey, created the Dewey Decimal System for libraries (1851) X** 12 11 99 99 00 Aleksandr Solzhenitsyn (1918) X** 12 11 99 99 00 Hector Berlioz, the composer, is born (1803) X** 12 11 99 99 00 Llewellyn, last native prince of Wales, is ambushed and killed at the orders of Edward I (1282) X** 12 11 99 99 00 Teri Garr, actress, is born in Lakewood, Ohio (1949) X** 12 12 99 99 00 Douglas Fairbanks Sr., actor, dies (1939) X** 12 12 99 99 00 Edward G. Robinson, actor, born in Bucharest, Romania (1893) X** 12 12 99 99 00 Frank Sinatra, singer, is born (1915) X** 12 12 99 99 00 Gustave Flaubert, novelist, 'Madame Bovary'. (1821) X** 12 12 99 99 00 Henry Wells, founded American Express Co. and Wells Fargo & Co. (1805) X** 12 12 99 99 00 Robert Browning, the poet, dies (1889) X** 12 13 99 99 00 Anna Mary "Grandma" Moses, American primitive painter, dies (1961) X** 12 13 99 99 00 Dick Van Dyke, entertainer, is born (1925) X** 12 13 99 99 00 Heinrich Heine, poet, journalist, satirist, is born (1797) X** 12 13 99 99 00 Nero, Roman emperor, is born (37) X** 12 13 99 99 00 Nostradamus, French physician and astrologer, is born (1503) X** 12 13 99 99 00 Russell Porter born (1871) X** 12 13 99 99 00 Ted Nugent, the motor city madman, born (Detroit, 1949) X** 12 14 99 99 00 Andrei Sakharov, physicist, Nobel Prize winner and dissident, dies (1989) X** 12 14 99 99 00 George Washington, president, general, surveyor, dies at Mount Vernon (1799) X** 12 14 99 99 00 Michael de Nostradamus, supposed seer into the future, is born (1503) X** 12 14 99 99 00 Prince Albert, husband of Queen Victoria, dies of Typhoid (1861) X** 12 14 99 99 00 Sir John Oldcastle, prototype for Shakespeare's Falstaff, is burned as a Lollard (1417) X** 12 14 99 99 00 Tycho Brahe, the astronomer, is born (1553) X** 12 15 99 99 00 Alexandre-Gustave Eiffel, built a tower in Paris. (1832) X** 12 15 99 99 00 Charles Edgar Duryea, with his brother, invented 1st auto to be built and operated in US (1861) X** 12 15 99 99 00 Sitting Bull shot in head while submitting to arrest (1890) X** 12 15 99 99 00 Walt Disney, animator and film producer, dies (1966) X** 12 16 99 99 00 Arthur C. Clarke, science fiction author, is born in Somerset (1917) X** 12 16 99 99 00 George Santayana, philosopher, poet, humanist. (1863) X** 12 16 99 99 00 Jane Austen, author, is born (1775) X** 12 16 99 99 00 Liv Ullmann, the actress, is born (1939) X** 12 16 99 99 00 Ludwig van Beethoven christened in Bonn, Germany (often treated as his birthday since the real date is not known) (1770) X** 12 16 99 99 00 Sir Noel Coward, playwright (1899) X** 12 16 99 99 00 Somerset Maugham, novelist and dramatist, dies (1965) X** 12 17 99 99 00 Arthur Fiedler (1894-1979) X** 12 17 99 99 00 Grigori Efimovich Rasputin, Russian monk, assassinated (1916) X** 12 17 99 99 00 Lord Kelvin, the physicist, dies (1907) X** 12 17 99 99 00 Simon Bolivar, revolutionary leader in South America, dies (1830) X** 12 17 99 99 00 Sir Humphrey Davy, discovered several chemical elements (1778) X** 12 17 99 99 00 Willard Libby, chemist, discoverer of carbon dating is born in Grand Valley, Colorado (1908) X** 12 17 99 99 00 William Safire (Safir) born (1929) X** 12 18 99 99 00 Antonio Stradivari, renowned violin maker, dies in Cremona, Italy (1737) X** 12 18 99 99 00 Edwin Armstrong, radio pioneer (invented FM) (1890) X** 12 18 99 99 00 Keith Richards, rock star, is born (1943) X** 12 18 99 99 00 Saki, the British short-story writer is born in Burma (1870) X** 12 18 99 99 00 Soviet Premier, Alexei Kosygin suffers a fatal heart attack (1980) X** 12 18 99 99 00 Stephen Spielberg, the movie director, is born in Cincinnati, OH (1947) X** 12 18 99 99 00 Ty Cobb, baseball player, (1886) X** 12 19 99 99 00 Henry Clay Frick, industrialist; worked for Carnegie. (1849) X** 12 19 99 99 00 William Turner, the artist known for is brilliant impressionistic skies, dies (1851) X** 12 20 99 99 00 Arthur Rubinstein, pianist, dies in Geneva, Switzerland (1982) X** 12 20 99 99 00 Bridie Murphy is born (1798) X** 12 20 99 99 00 Harvey Firestone, rubber manufacturer, is born (1868) X** 12 20 99 99 00 John Geary, 1st Postmaster, 1st Mayor (May 1, 1850) of San Francisco (?) is born (1819) X** 12 20 99 99 00 John Steinbeck, author, dies (1968) X** 12 20 99 99 00 Richard Daley, mayor of Chicago, dies (1976) X** 12 20 99 99 00 Thomas Graham, the father of colloid chemistry (1805) X** 12 21 99 99 00 Benjamin Disraeli, statesman and novelist, is born (1804) X** 12 21 99 99 00 F. Scott Fitzgerald, author, dies in Hollywood (1940) X** 12 21 99 99 00 Frank Zappa, musician and song writer, born in Baltimore (1940) X** 12 21 99 99 00 General George S. Patton dies of injuries received in a car accident (1945) X** 12 21 99 99 00 Josh Gibson, in professional baseball, the "Negro Babe Ruth" (1911) X** 12 22 99 99 00 Giacomo Puccini, composer of "La Boheme", and "Madame Butterfly", is born (1858) X** 12 22 99 99 00 Glenn Miller disappears crossing the English Channel (1944) X** 12 22 99 99 00 Lady Bird Johnson, wife of president and Texas environmental proponent, is born (1913) X** 12 22 99 99 00 Srinivasa Ramanujan, one of the most brilliant mathematicians to ever live, was born (1887) X** 12 23 99 99 00 Jean-Francois Champollion, deciphered Egyptian hieroglyphics (1790) X** 12 23 99 99 00 Joseph Smith, founder of the The Church of Jesus Christ of Latter-day Saints (The Mormons), is born in Sharon, Vermont (1805) X** 12 24 99 99 00 Howard Hughes, aircraft manufacturer, was born (1905) X** 12 24 99 99 00 John Muir, naturalist, dies (1914) X** 12 24 99 99 00 Kit Carson, explorer, is born (1809) X** 12 25 99 99 00 Anwar Sadat, president of Egypt, is born (1918) X** 12 25 99 99 00 Cab Calloway, bandleader, is born (1907) X** 12 25 99 99 00 Humphrey Bogart, actor, is born (1899) X** 12 25 99 99 00 Jesus of Nazareth, Christian messiah, is born. Actually it is suspected that he was born in the summer. (4 BC) X** 12 25 99 99 00 Sir Isaac Newton born in Grantham, England (1642) X** 12 25 99 99 00 Sissy Spacek, actress, is born (1949) X** 12 25 99 99 00 W.C. Fields dies (1946) X** 12 26 99 99 00 Charles Babbage, credited with designing the first computer, is born (1791) X** 12 26 99 99 00 Henry Miller, the author, is born (1891) X** 12 26 99 99 00 Mao Tse-tung, revolutionary, is born in Hunan Province (1893) X** 12 27 99 99 00 Hoagy Carmichael, songwriter, dies (1981) X** 12 27 99 99 00 Johannes Kepler, astronomer, is born (1571) X** 12 27 99 99 00 Marlene Dietrich, singer and actor, is born (1904) X** 12 27 99 99 00 Philippus Paracelsus, Alchemist and physician, opposed humoral theory, stressed observation, is born (1493) X** 12 28 99 99 00 Arthur S. Eddington born (1882) X** 12 28 99 99 00 Edgar Winter born (Beaumont, TX, 1946) X** 12 28 99 99 00 John von Neumann, mathematician and computer scientist, born (1903) X** 12 28 99 99 00 Stan Lee (Stanley Martin Lieber), editor and publisher for Marvel Comics, was born (1922) X** 12 28 99 99 00 Woodrow Wilson, 28th President (1912-1921) (1856) X** 12 29 99 99 00 Andrew Johnson, 17th President (1865-1869) (1808) X** 12 29 99 99 00 Charles Goodyear, invented vulcanization process for rubber (1800) X** 12 29 99 99 00 Pablo Casals, Spanish Cellist, is born (1876) X** 12 29 99 99 00 William Ewart Gladstone, British statesman (1809) X** 12 30 99 99 00 Alfred Whitehead, mathematician and philosopher, dies (1947) X** 12 30 99 99 00 Amelia Bloomer, women's rights activist, popularized the term bloomers, dies (1894) X** 12 30 99 99 00 Robert Boyle, chemist and physicist, dies (1691) X** 12 30 99 99 00 Rudyard Kipling, author and poet, is born (1865) X** 12 30 99 99 00 Stephen Leacock, economist and humourist, is born (1869) X** 12 31 99 99 00 Henri Matisse, painter, is born (1869) X** 12 31 99 99 00 John Denver, song writer and singer, born in Roswell, NM (1943) X** 12 31 99 99 00 Ricky Nelson, singer, his band and girlfriend all killed in a light plane crash in Texas (1985) END_OF_FILE if test 32402 -ne `wc -c <'dates/lives6'`; then echo shar: \"'dates/lives6'\" unpacked with wrong size! fi # end of 'dates/lives6' fi if test -f 'event.c' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'event.c'\" else echo shar: Extracting \"'event.c'\" \(8590 characters\) sed "s/^X//" >'event.c' <<'END_OF_FILE' X/* X * $Header: event.c,v 2.4 91/03/27 16:45:33 billr Exp $ X */ X/* X * event.c X * X * Author: Philip Heller, Sun Microsystems. Inc. <terrapin!heller@sun.com> X * X * Original source Copyright (C) 1987, Sun Microsystems, Inc. X * All Rights Reserved X * Permission is hereby granted to use and modify this program in source X * or binary form as long as it is not sold for profit and this copyright X * notice remains intact. X * X * X * Changes/additions by: Bill Randle, Tektronix, Inc. <billr@saab.CNA.TEK.COM> X * X * Changes and additions Copyright (C) 1988, 1989, 1991 Tektronix, Inc. X * All Rights Reserved X * Permission is hereby granted to use and modify the modifications in source X * or binary form as long as they are not sold for profit and this copyright X * notice remains intact. X */ X/******************************************************** X * * X * Main driver and month and year event routines * X * for main subwindow * X * * X ********************************************************/ X X X#include <stdio.h> X#include <suntool/sunview.h> X#include <suntool/panel.h> X#include <suntool/canvas.h> X#include <suntool/seln.h> X#include <sys/file.h> X#include "ct.h" X#include "event.h" X Xextern Frame frame; Xextern Frame fframe, sframe, mframe, fileframe; Xextern struct tm olddate, closedate; Xextern int update_interval, show_time; Xextern char timestr[]; Xextern Icon icon; Xextern int monday_first, hour24; Xextern Pixfont *sfont; Xextern Seln_client s_client; Xextern int locked; XNotify_value myframe_interposer(); X Xvoid Xmainsw_inputevent(canvas, event) XCanvas canvas; XEvent *event; X{ X if (locked) /* no updates allowed */ X return; X X /* check for L7 key and close frame if found */ X if (event_id(event) == KEY_LEFT(7) && event_is_up(event)) { X close_frame(); X#ifdef SUN3_5 X } else if (event_id(event) == KEY_LEFT(5) && event_is_up(event)) { X /* expose (L5) event */ X int rootfd, myfd; X struct screen frame_screen; X X /* Get root window from frame's desktop */ X myfd = (int)window_get(frame, WIN_FD); X (void)win_screenget(myfd, &frame_screen); X rootfd = open(frame_screen.scr_rootname, O_RDONLY, 0); X if (rootfd == -1) { X err_rpt("couldn't open root screen", NON_FATAL); X return; X } X if (win_fdtonumber(myfd) == win_getlink(rootfd, WL_TOPCHILD)) X /* we're on top */ X wmgr_bottom(myfd, rootfd); X else X wmgr_top(myfd, rootfd); X close(rootfd); X#endif X } else { X switch (mainsw_state) { X case DISPLAYING_DAY: X if (event_id(event) == KEY_LEFT(6) && event_is_up(event)) { X if (seln_acquire(s_client, SELN_PRIMARY) != SELN_PRIMARY) { X err_rpt("Can't acquire selection primary", NON_FATAL); X return; X } X if (seln_acquire(s_client, SELN_SHELF) != SELN_SHELF) { X err_rpt("Can't acquire selection shelf", NON_FATAL); X return; X } X seln_report_event(s_client, event); X } X day_inputevent(canvas, event); X break; X case DISPLAYING_WEEK: X week_inputevent(canvas, event); X break; X case DISPLAYING_MONTH: X month_inputevent(canvas, event); X break; X case DISPLAYING_YEAR: X year_inputevent(canvas, event); X break; X } X } X} X Xmonth_inputevent(canvas, event) XCanvas canvas; XEvent *event; X{ X int i, x, y, week_index, new_day; X X /* translate coordinates to pixwin space */ X event = canvas_window_event(canvas, event); X x = event_x(event); X y = event_y(event); X if (event_id(event) != MS_LEFT) X return; X X if (event_is_up(event)) { /* Button up. */ X fix_current_day(); X if (selected_type == DAY) { X mainsw_state = DISPLAYING_DAY; X window_set(canvas, WIN_CURSOR, day_cursor, 0); X draw_day(); X } X else if (selected_type == WEEK) { X mainsw_state = DISPLAYING_WEEK; X window_set(canvas, WIN_CURSOR, week_cursor, 0); X draw_week(); X } X return; X } X X /* Button down. */ X selected_type = NONE; X for (i=0; i<monthlength(current.tm_mon); i++) { /* In a day? */ X if ((x >= boxlims[i].lowx) && X (x <= boxlims[i].highx) && X (y >= boxlims[i].lowy) && X (y <= boxlims[i].highy)) { X current.tm_mday = i + 1; X selected_type = DAY; X pw_write(main_pixwin,boxlims[i].lowx+3, X boxlims[i].lowy+3,58,58,PIX_NOT(PIX_DST),NULL,0,0); X return; X } X } X for (i=0; i<6; i++) { /* No. In a week? */ X if (week_arrows[i].active == 0) X return; X if ((x >= week_arrows[i].left) && X (x <= week_arrows[i].right) && X (y >= week_arrows[i].top) && X (y <= week_arrows[i].bottom)) { X week_index = i; X current.tm_mday = -current.tm_wday + 1 + (7 * week_index); X if (monday_first) { X current.tm_mday++; X if (current.tm_wday == SUN) X current.tm_mday -= 7; X } X selected_type = WEEK; X pw_write(main_pixwin,week_arrows[week_index].left, X week_arrows[week_index].top,smallarrow_pr->pr_size.x, X smallarrow_pr->pr_size.y,PIX_SRC^PIX_DST, X smallarrow_pr,0,0); X return; X } X } X} X Xyear_inputevent(canvas, event) XCanvas canvas; XEvent *event; X{ X int x, y, i; X static int mday; X X /* translate coordinates to pixwin space */ X event = canvas_window_event(canvas, event); X x = event_x(event); X y = event_y(event); X if (event_id(event) != MS_LEFT) X return; X if (event_is_up(event)) { /* Button up. */ X if (selected_type == MONTH) { X mainsw_state = DISPLAYING_MONTH; X window_set(canvas, WIN_CURSOR, month_cursor, 0); X draw_month(); X } X return; X } X X /* Button down. */ X selected_type = NONE; X for (i=0; i<12; i++) { /* In a month? */ X if ((x >= mboxlims[i].lowx) && X (x <= mboxlims[i].highx) && X (y >= mboxlims[i].lowy) && X (y <= mboxlims[i].highy)) { X selected_type = MONTH; X current.tm_mday = 1; X current.tm_mon = i; X pw_write(main_pixwin,mboxlims[i].lowx, X mboxlims[i].lowy,7*ybox_width,ybox_height-1,PIX_NOT(PIX_DST),NULL,0,0); X break; X } X } X} X XNotify_value Xcheck_close(client, event, arg, when) XNotify_client client; XEvent *event; XNotify_arg arg; XNotify_event_type when; X{ X /* check for L7 key and close frame if found */ X /*** DEBUG ***/ X /* X fprintf(stderr, "checking for L7: event = %d\n", event_id(event)); X */ X if (event_id(event) == KEY_LEFT(7) && event_is_up(event)) X return (myframe_interposer(client, event, arg, when)); X else X return (notify_next_event_func(client, event, arg, when)); X} X Xclose_frame() X{ X Icon cur_icon; X X /* save some information as we close */ X if (mainsw_state == DISPLAYING_DAY && day_is_open) X close_day(); X /* if frame not closed yet, close it now (for the canvas) */ X if (!(int)window_get(frame, FRAME_CLOSED)) X window_set(frame, FRAME_CLOSED, TRUE, 0); X olddate = current; X get_today(); X closedate = today; X if (fframe) { X /* kill off future appt popup */ X window_destroy(fframe); X fframe = 0; X } X /* hide file frame */ X window_set(fileframe, WIN_SHOW, FALSE, 0); X#ifndef NO_SUN_MOON X /* kill sun/moon data frames */ X if (mframe) X mframe_done(0); X if (sframe) X sframe_done(0); X#endif X check_calendar(); /* update icon */ X if (show_time) X /* update time label */ X update_icon_time(); X} X X/* update the time field of the current icon */ Xupdate_icon_time() X{ X Icon cur_icon; X X format_icon_time(); X cur_icon = (Icon) window_get(frame, FRAME_ICON); X icon_set(cur_icon, ICON_LABEL, timestr, 0); X window_set(frame, FRAME_ICON, cur_icon, 0); X} X Xformat_icon_time() X{ X if (update_interval >= 60) X /* display hh:mm */ X sprintf(timestr, " %2d:%02d", today.tm_hour, today.tm_min); X else X /* display hh:mm:ss */ X sprintf(timestr, " %2d:%02d:%02d", today.tm_hour, today.tm_min, today.tm_sec); X if (!hour24) { X /* display am/pm for 12-hour time */ X if (today.tm_hour > 12) { X strcat(timestr, "pm"); X timestr[1] = ((today.tm_hour - 12) / 10) + '0'; X timestr[2] = ((today.tm_hour - 12) % 10) + '0'; X } else if (today.tm_hour == 12) { X strcat(timestr, "pm"); X } else { X strcat(timestr, "am"); X } X if (timestr[1] == '0') X timestr[1] = ' '; X } X} END_OF_FILE if test 8590 -ne `wc -c <'event.c'`; then echo shar: \"'event.c'\" unpacked with wrong size! fi # end of 'event.c' fi if test -f 'wpaint.c' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'wpaint.c'\" else echo shar: Extracting \"'wpaint.c'\" \(10863 characters\) sed "s/^X//" >'wpaint.c' <<'END_OF_FILE' X/* X * $Header: wpaint.c,v 2.5 91/03/27 16:46:49 billr Exp $ X */ X/* X * wpaint.c X * X * Author: Philip Heller, Sun Microsystems. Inc. <terrapin!heller@sun.com> X * X * Original source Copyright (C) 1987, Sun Microsystems, Inc. X * All Rights Reserved X * Permission is hereby granted to use and modify this program in source X * or binary form as long as it is not sold for profit and this copyright X * notice remains intact. X * X * X * Changes/additions by: Bill Randle, Tektronix, Inc. <billr@saab.CNA.TEK.COM> X * X * Changes and additions Copyright (C) 1988, 1989, 1991 Tektronix, Inc. X * All Rights Reserved X * Permission is hereby granted to use and modify the modifications in source X * or binary form as long as they are not sold for profit and this copyright X * notice remains intact. X */ X/*************************************************** X * * X * Artistic routines that draw in the main * X * subwindow for the week display. * X * * X ***************************************************/ X X#include <suntool/sunview.h> X#include <suntool/canvas.h> X#include <ctype.h> X#include <stdio.h> X#include "ct.h" X#include "paint.h" X Xextern int week_message_size; X X/* X * Routine to draw "Week-at-a-Glance". X */ X Xdraw_week() X{ X struct tm Save; X extern void fix_current_day(); X X lock_cursors(); X /* destory future appts popup, if it exists */ X if (fframe) { X window_destroy(fframe); X fframe = 0; X } X fix_current_day(); X Save = current; X current.tm_mday -= current.tm_wday; /* Sunday of this week */ X if (monday_first) { X if (current.tm_wday == SUN) X current.tm_mday -= 7; X if (nr_weekdays == 7) X current.tm_mday++; /* start on Monday */ X } X fix_current_day(); X if (nr_weekdays < 7) { X current.tm_mday++; X fix_current_day(); X } X working(TRUE); X get_week_appts(); X working(FALSE); X pw_batch_on(main_pixwin); X paint_week_outline(); X paint_week_trim(); X working(TRUE); X draw_week_appts(); X pw_batch_off(main_pixwin); X /* X (void)win_post_id(canvas, WIN_REPAINT, NOTIFY_SAFE); X */ X free_week_appts(); X current = Save; X (void)get_day_appts(); X working(FALSE); X unlock_cursors(); X} X X X/* Paint the outline for "Week-at-a-Glance". */ Xpaint_week_outline() X{ X Rect *rect; X int x, y, i, j, colx; X X rect = (Rect *) window_get(canvas, WIN_RECT); X pw_writebackground(main_pixwin,0,0,rect->r_width,rect->r_height,PIX_CLR); X startx = (rect->r_width - nr_weekdays*weekslot_width) / 2; X starty = 10 + (rect->r_height - (n_slots*(weekslot_height+1))) / 2; X X First = current; X for (i=0; i<nr_weekdays; i++) { X x = startx + i*weekslot_width; X y = starty; X week_boxes[i].wday_pos.left = x; X week_boxes[i].wday_pos.top = y; X week_boxes[i].wday_pos.right = x + weekslot_width; X week_boxes[i].wday_pos.bottom = starty + n_slots*weekslot_height; X week_boxes[i].moreb_pos.left = x + (weekslot_width - morebutton->pr_size.x) / 2; X week_boxes[i].moreb_pos.top = week_boxes[i].wday_pos.bottom + font->pf_defaultsize.y + font->pf_defaultsize.y/2; X week_boxes[i].moreb_pos.right = week_boxes[i].moreb_pos.left + morebutton->pr_size.x; X week_boxes[i].moreb_pos.bottom = week_boxes[i].moreb_pos.top + morebutton->pr_size.y; X for (j=0; j<n_slots; j++) { X if (ymd_compare(today, current) == 0) X pw_write(main_pixwin,x,y,weekslot_width, X weekslot_height,PIX_SRC,weekslot_td_pr,0,0); X else X pw_write(main_pixwin,x,y,weekslot_width, X weekslot_height,PIX_SRC,weekslot_pr,0,0); X y += weekslot_height; X } X current.tm_mday++; X fix_current_day(); X } X pw_vector(main_pixwin,startx,starty,startx+nr_weekdays*weekslot_width,starty,PIX_SET,1); X pw_vector(main_pixwin,startx,y-1,startx+nr_weekdays*weekslot_width,y-1,PIX_SET,1); X current = First; X sun_moon_buttons(FALSE); X print_button(TRUE); X} X X Xpaint_week_trim() X{ X int i, j, x, y, month, day, rightx; X char c[8]; X X First = current; X for (i=0; i<nr_weekdays; i++) { X x = startx + i*weekslot_width + (weekslot_width - 2*(font->pf_defaultsize.x+2))/2; X if (monday_first && i == 6) X sprintf(c, "%3.3s", daynames[SUN]); X else X sprintf(c, "%3.3s", daynames[First.tm_wday + i]); X pw_text(main_pixwin, x, starty-5, PIX_SRC, font, c); X } X X y = starty + weekslot_height - 4; X rightx = startx + nr_weekdays*weekslot_width + 10; X for (i=0; i<n_slots; i++) { X if (i < n_tslots) { X if (hour24) X sprintf(c, "%2d:%s", X start_hour+(i/2), X i%2 == 0 ? "00" : "30"); X else X sprintf(c, "%2d:%s%s", X (start_hour+(i/2))%12 == 0 ? 12 : (start_hour+(i/2))%12, X i%2 == 0 ? "00" : "30", (start_hour+(i/2) < 12 ? "am" : "pm")); X } else if (i == n_tslots) { X sprintf(c, (hour24 ? "Notes" : " Notes")); X } else { X sprintf(c, " "); X } X if (hour24) { X pw_text(main_pixwin, startx-7*font->pf_defaultsize.x, y, PIX_SRC, font, c); X pw_text(main_pixwin, rightx, y, PIX_SRC, font, c); X } else { X pw_text(main_pixwin, startx-8*font->pf_defaultsize.x, y, PIX_SRC, font, c); X pw_text(main_pixwin, rightx-font->pf_defaultsize.x, y, PIX_SRC, font, c); X } X y += weekslot_height; X } X X x = startx + (weekslot_width - 7*(font->pf_defaultsize.x+2))/2 + font->pf_defaultsize.x+7; X X sprintf(c, "%d", 1900 + current.tm_year); X pw_text(main_pixwin, startx-3*font->pf_defaultsize.x, X y+weekslot_height, PIX_SRC, font, c); X X sprintf(c, "Week: %d", week_number()); X pw_text(main_pixwin, startx+nr_weekdays*weekslot_width-2*font->pf_defaultsize.x, X y+weekslot_height, PIX_SRC, font, c); X X /* display week dates (month, day) */ X for (i=0; i<nr_weekdays; i++) { X if (day_first) X sprintf(c, "%2d %3.3s", X current.tm_mday, monthnames[current.tm_mon]); X else X sprintf(c, "%3.3s %2d", X monthnames[current.tm_mon], current.tm_mday); X pw_text(main_pixwin, x, y, PIX_SRC, font, c); X x += weekslot_width; X current.tm_mday++; X fix_current_day(); X } X current = First; X fix_current_day(); X} X X Xget_week_appts() X{ X int i, j, save_read; X struct tm Current; X X save_read = read_only; X read_only = 1; X Current = current; X for (i=0; i<nr_weekdays; i++) { X get_day_appts(); /* fills in slots[] array */ X for (j=0; j<n_slots; j++) X week_boxes[i].weekslots[j] = slots[j]; X current.tm_mday++; X fix_current_day(); X } X read_only = save_read; X current = Current; X fix_current_day(); X} X X/* draw in week appointments */ Xdraw_week_appts() X{ X int index, slotno, offset, i; X int narrows, pixoffset; X struct dayslot *slptr; X X for (index=0; index<nr_weekdays; index++) { X /* clear all arrow position information */ X for (slotno=0; slotno<n_slots; slotno++) X week_boxes[index].weekslots[slotno].arrow_pos = 0; X week_boxes[index].more = 0; X for (slotno=0; slotno<n_slots; slotno++) { X slptr = &week_boxes[index].weekslots[slotno]; X if (slptr->active) { X x_coord = week_boxes[index].wday_pos.left; X y_coord = week_boxes[index].wday_pos.top + X slotno*weekslot_height; X write_week_str(index, slotno); X if ((narrows = slptr->cur_appt->arrows) > 0) { X /* find first free position for arrow */ X offset = 0; X while (slptr->arrow_pos & 1<<offset) X offset++; X slptr->arrow_pos |= 1<<offset; X i = slotno + narrows; X week_boxes[index].weekslots[i].arrow_pos |= 1<<offset; X draw_weekarrowhead(index, i, offset, FALSE); X while (--narrows > 0) { X week_boxes[index].weekslots[--i].arrow_pos X |= 1<<offset; X draw_weekarrowshaft(index, i, offset, FALSE); X } X } X wmore_check(index, slotno); X } X } X } X} X Xdraw_weekarrowshaft(day, bi, offset, gray) Xint day, bi; Xint offset, gray; X{ X int x, y; X int pixoffset; X X /* mark this position as used */ X week_boxes[day].weekslots[bi].arrow_pos |= 1<<offset; X pixoffset = (offset + 1) * 16; X if (pixoffset > weekslot_width - 16) X pixoffset = weekslot_width - 16; X y = week_boxes[day].wday_pos.top + bi*weekslot_height; X x = week_boxes[day].wday_pos.left; X pw_write(main_pixwin, x+1+pixoffset, y, 14, weekslot_height, X PIX_SRC|PIX_DST, (gray ? gr_weekarrowshaft_pr : weekarrowshaft_pr), 0, 0); X} X Xdraw_weekarrowhead(day, bi, offset, gray) Xint day, bi; Xint offset, gray; X{ X int x, y; X int pixoffset; X X /* mark this position as used */ X week_boxes[day].weekslots[bi].arrow_pos |= 1<<offset; X pixoffset = (offset + 1) * 16; X if (pixoffset > weekslot_width - 16) X pixoffset = weekslot_width - 16; X y = week_boxes[day].wday_pos.top + bi*weekslot_height; X x = week_boxes[day].wday_pos.left; X pw_write(main_pixwin, x+1+pixoffset, y, 14, weekslot_height, X PIX_SRC|PIX_DST, (gray ? gr_weekarrowhead_pr : weekarrowhead_pr), 0, 0); X} X Xwrite_week_str(day, bi) Xint day; Xint bi; X{ X char slot_str[MAX_STRLEN]; X char *ptr; X int strl; X X strl = strlen(week_boxes[day].weekslots[bi].cur_appt->str); X if (strl <= week_message_size) X strcpy(slot_str, week_boxes[day].weekslots[bi].cur_appt->str); X else { X /* show leading part */ X X strncpy(slot_str, week_boxes[day].weekslots[bi].cur_appt->str, week_message_size); X slot_str[week_message_size+1] = '\0'; X } X pw_write(main_pixwin, x_coord+1, y_coord+1, weekslot_width-2, X weekslot_height-2, PIX_SET, NULL, 0, 0); X pw_text(main_pixwin, x_coord+4, y_coord+font->pf_defaultsize.y, PIX_NOT(PIX_SRC), X font, slot_str); X} X X/* free memory alloc'd for appts */ Xfree_week_appts() X{ X int index, slotno; X struct appt_entry *aptr, *optr; X X for (index=0; index<nr_weekdays; index++) { X for (slotno=0; slotno<n_slots; slotno++) { X if (week_boxes[index].weekslots[slotno].first) X for (aptr=week_boxes[index].weekslots[slotno].first; aptr; ) { X optr = aptr; X aptr = aptr->next; X free(optr); X } X } X } X} X X/* display "more" button if necessary */ Xwmore_check(day, bi) Xint day, bi; X{ X int i, narrows, offset; X int x, y; X struct appt_entry *aptr; X struct dayslot *slptr; X X slptr = &week_boxes[day].weekslots[bi]; X if (slptr->active > 1) { X for (aptr=slptr->first; aptr; aptr=aptr->next) { X if (aptr == slptr->cur_appt) X continue; /* already did this one */ X if (chk_deleted(slptr, aptr)) X continue; X if ((narrows = aptr->arrows) > 0) { X /* find first free position for arrow */ X offset = 0; X while (slptr->arrow_pos & 1<<offset) X offset++; X slptr->arrow_pos |= 1<<offset; X i = bi + narrows; X week_boxes[day].weekslots[i].arrow_pos |= 1<<offset; X draw_weekarrowhead(day, i, offset, TRUE); X while (--narrows > 0) { X week_boxes[day].weekslots[--i].arrow_pos X |= 1<<offset; X draw_weekarrowshaft(day, i, offset, TRUE); X } X } X } X x = morebutton->pr_size.x; X y = morebutton->pr_size.y; X week_boxes[day].more = 1; X /* display more button at bottom of slot */ X pw_write(main_pixwin, week_boxes[day].moreb_pos.left, X week_boxes[day].moreb_pos.top, X x, y, PIX_SRC, morebutton, 0, 0); X } X} X END_OF_FILE if test 10863 -ne `wc -c <'wpaint.c'`; then echo shar: \"'wpaint.c'\" unpacked with wrong size! fi # end of 'wpaint.c' fi echo shar: End of archive 13 \(of 23\). cp /dev/null ark13isdone MISSING="" for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ; do if test ! -f ark${I}isdone ; then MISSING="${MISSING} ${I}" fi done if test "${MISSING}" = "" ; then echo You have unpacked all 23 archives. rm -f ark[1-9]isdone ark[1-9][0-9]isdone else echo You still need to unpack the following archives: echo " " ${MISSING} fi ## End of shell archive. exit 0 exit 0 # Just in case... -- Kent Landfield INTERNET: kent@sparky.IMD.Sterling.COM Sterling Software, IMD UUCP: uunet!sparky!kent Phone: (402) 291-8300 FAX: (402) 291-4362 Please send comp.sources.misc-related mail to kent@uunet.uu.net.