~lidaobing/+junk/zhcon

« back to all changes in this revision

Viewing changes to src/nativebarclient.h

  • Committer: LI Daobing
  • Date: 2008-11-04 04:39:18 UTC
  • Revision ID: lidaobing@gmail.com-20081104043918-nfwwvgfb0uied0mt
importĀ 1:0.2.6-5.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// vi:ts=4:shiftwidth=4:expandtab
 
2
/***************************************************************************
 
3
                          nativebarclient.h  -  description
 
4
                             -------------------
 
5
    begin                : Tue Oct 16 2001
 
6
    copyright            : (C) 2001 by huyong
 
7
    email                : ccpaging@online.sh.cn
 
8
 ***************************************************************************/
 
9
 
 
10
/***************************************************************************
 
11
 *                                                                         *
 
12
 *   This program is free software; you can redistribute it and/or modify  *
 
13
 *   it under the terms of the GNU General Public License as published by  *
 
14
 *   the Free Software Foundation; either version 2 of the License, or     *
 
15
 *   (at your option) any later version.                                   *
 
16
 *                                                                         *
 
17
 ***************************************************************************/
 
18
 
 
19
#ifndef NATIVEBARLIENT_H
 
20
#define NATIVEBARCLIENT_H
 
21
 
 
22
#include <inputclient.h>
 
23
#include <window.h>
 
24
 
 
25
class Candilist;
 
26
 
 
27
class NativeBarClient : public Window,public InputClient {
 
28
    public:
 
29
        NativeBarClient(string& sColors);
 
30
        ~NativeBarClient();
 
31
        void Update();
 
32
        void Hide();
 
33
        void Show();
 
34
        void VtSizeDelta(int &ColDelta, int &RowDelta);
 
35
        void Connect(InputServer *pServer);
 
36
    private:
 
37
        int mOveredRows;
 
38
        string mTitle;
 
39
        string mKey;
 
40
        int mShownWords;
 
41
        void PutTitle();
 
42
        void PutKey();
 
43
        void PutList();
 
44
        void Draw();
 
45
  string GetPromptStr();
 
46
        Candilist mList;
 
47
};
 
48
 
 
49
#endif