home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 Mobile / Chip_Mobile_2001.iso / palm / hobby / ghardeno / ghardeno.EXE / Ghardeno.h < prev    next >
C/C++ Source or Header  |  2000-10-03  |  2KB  |  54 lines

  1. /*
  2.     Ghardeno: Information Gardening for PalmOS
  3.     Copyright (C) 2000 Laurent Moussault
  4.  
  5.     This program is free software; you can redistribute it and/or modify
  6.     it under the terms of the GNU General Public License as published by
  7.     the Free Software Foundation; either version 2 of the License, or
  8.     (at your option) any later version.
  9.  
  10.     This program is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.     GNU General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU General Public License
  16.     along with this program; if not, write to the Free Software
  17.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  18. */
  19.  
  20. #ifndef ghardeno_h
  21. #define ghardeno_h
  22.  
  23. #include "MyTable.h"
  24.  
  25.  
  26. #define bulletWidth 11
  27.  
  28.  
  29. typedef struct {
  30.   Word category; // The current category.
  31.   Word positionInCategory; // Position of the top row in the current category.
  32.   Word currentIndex; // Record index of the currently selected or edited row.
  33.   Boolean isSelected; // Is 'current' (and 'currentRecord') selected ?
  34.   Boolean isEditing; // Is 'current' (and 'currentRecord') being edited ?
  35.   Boolean AutoShift;
  36.   Boolean Click;
  37. } PreferenceType;
  38.  
  39. int StartApplication (void);
  40. Err OpenDatabase (void);
  41. void EventLoop (void);
  42. Boolean ApplicationHandleEvent (EventPtr);
  43. void StopApplication (void);
  44. void UpdateToolBar (MyTableType *d);
  45. DWord  PilotMain (Word cmd, Ptr cmdPBP, Word launchFlags);
  46. Boolean ghardenoHandleEvent (EventPtr ev);
  47. Boolean toolBarHandleEvent(EventPtr ev);
  48. void InitGhardenoForm ();
  49.  
  50.  
  51. extern DmOpenRef GhardenoDB;
  52.  
  53. #endif /* ghardeno_h */
  54.