~ubuntu-branches/ubuntu/maverick/apvlv/maverick

« back to all changes in this revision

Viewing changes to src/ApvlvDoc.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ritter
  • Date: 2010-02-04 15:11:57 UTC
  • mfrom: (1.3.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100204151157-nae2guz0p05ir7bc
Tags: 0.0.9.3-1
* New upstream release
* Bumped Standards-Version to 3.8.4, no changes needed

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
 
64
64
  typedef map < char, ApvlvDocPosition > ApvlvDocPositionMap;
65
65
 
 
66
  struct ApvlvWord
 
67
  {
 
68
    ApvlvPos pos;
 
69
    string word;
 
70
  };
 
71
 
 
72
  struct ApvlvLine
 
73
  {
 
74
    ApvlvPos pos;
 
75
      vector < ApvlvWord > mWords;
 
76
  };
 
77
 
66
78
  class ApvlvDoc;
67
79
  class ApvlvDocCache
68
80
  {
89
101
 
90
102
    ApvlvLinks *getlinks ();
91
103
 
 
104
    bool canselect ();
 
105
 
 
106
    ApvlvWord *getword (int x, int y);
 
107
 
 
108
    ApvlvLine *getline (double x, double y);
 
109
 
92
110
  private:
93
111
      ApvlvFile * mFile;
94
112
    ApvlvLinks *mLinks;
100
118
    GdkPixbuf *mBuf;
101
119
    gint mWidth;
102
120
    gint mHeight;
 
121
 
 
122
      vector < ApvlvLine > *mLines;
 
123
 
 
124
    void preparelines (double x1, double y1, double x2, double y2);
 
125
    ApvlvPos prepare_add (ApvlvPos & last, ApvlvPoses * results,
 
126
                          const char *word);
103
127
  };
104
128
 
105
129
  class ApvlvDocStatus:public ApvlvCoreStatus
169
193
    void scrollleft (int times);
170
194
    void scrollright (int times);
171
195
 
172
 
    void search (const char *str, bool reverse = false);
 
196
    bool search (const char *str, bool reverse = false);
173
197
 
174
198
    bool continuous ();
175
199
 
176
200
    returnType process (int times, guint keyval);
177
201
 
 
202
    void gotolink (int ct);
 
203
 
 
204
    void returnlink (int ct);
 
205
 
178
206
  private:
179
207
    void blank (int x, int y);
180
208
 
181
209
    void blankarea (int x1, int y1, int x2, int y2, guchar *, int width,
182
210
                    int height);
183
211
 
 
212
    void blankaction (double x, double y);
 
213
 
184
214
    void togglevisual (int type);
185
215
 
186
216
    int yank (int times);
187
217
 
 
218
    void eventpos (double x, double y, double *rx, double *ry);
 
219
 
188
220
    returnType subprocess (int ct, guint key);
189
221
 
190
222
    bool status_show ();
195
227
 
196
228
    bool needsearch (const char *str, bool reverse = false);
197
229
 
198
 
    void gotolink (int ct);
199
 
 
200
 
    void returnlink (int ct);
201
 
 
202
230
    void refresh ();
203
231
 
204
232
    bool reload ();
234
262
    gint mInVisual;
235
263
    gint mBlankx1, mBlanky1;
236
264
    gint mBlankx2, mBlanky2;
 
265
    gint mLastpress;
237
266
    gint mCurx, mCury;
238
267
 
239
268
    ApvlvDocPositionMap mPositions;