View | Details | Raw Unified | Return to bug 192783 | Differences between
and this patch

Collapse All | Expand All

(-)panel.h (-7 / +18 lines)
Lines 20-25 Link Here
20
#include <X11/Xmu/WinUtil.h>
20
#include <X11/Xmu/WinUtil.h>
21
#include <sys/wait.h>
21
#include <sys/wait.h>
22
#include <stdlib.h>
22
#include <stdlib.h>
23
#include <stdint.h>
23
#include <signal.h>
24
#include <signal.h>
24
#include <iostream>
25
#include <iostream>
25
#include <string>
26
#include <string>
Lines 86-105 Link Here
86
	void ResetName(void);
87
	void ResetName(void);
87
	void ResetPasswd(void);
88
	void ResetPasswd(void);
88
	void SetName(const std::string &name);
89
	void SetName(const std::string &name);
89
	const std::string& GetName(void) const;
90
	const std::string GetName(void) const;
90
	const std::string& GetPasswd(void) const;
91
	const std::string GetPasswd(void) const;
91
	void SwitchSession();
92
	void SwitchSession();
92
private:
93
private:
93
	Panel();
94
	Panel();
94
	void Cursor(int visible);
95
	void Cursor(int visible);
95
	unsigned long GetColor(const char *colorname);
96
	unsigned long GetColor(const char *colorname);
96
	void OnExpose(void);
97
	void OnExpose(void);
97
	void EraseLastChar(string &formerString);
98
	int FieldEraseLastChar(const uint16_t **buf, int *len);
99
	int FieldClear(const uint16_t **buf, int *len);
98
	bool OnKeyPress(XEvent& event);
100
	bool OnKeyPress(XEvent& event);
99
	void ShowText();
101
	void ShowText();
100
	void ShowSession();
102
	void ShowSession();
101
103
102
	void SlimDrawString8(XftDraw *d, XftColor *color, XftFont *font,
104
	static bool isUtf16CharAllowed(uint16_t c);
105
	void SlimDrawString16(XftDraw *d, XftColor *color, XftFont *font,
106
						  int x, int y, const uint16_t *str, int strLen,
107
						  XftColor* shadowColor, int xOffset, int yOffset);
108
109
	void SlimDrawStringUtf8(XftDraw *d, XftColor *color, XftFont *font,
103
							int x, int y, const std::string &str,
110
							int x, int y, const std::string &str,
104
							XftColor *shadowColor,
111
							XftColor *shadowColor,
105
							int xOffset, int yOffset);
112
							int xOffset, int yOffset);
Lines 136-147 Link Here
136
	XftColor entershadowcolor;
143
	XftColor entershadowcolor;
137
	ActionType action;
144
	ActionType action;
138
	FieldType field;
145
	FieldType field;
146
	XIM displayIm;
147
	XIC displayIc;
139
	//Pixmap   background;
148
	//Pixmap   background;
140
	
149
	
141
	/* Username/Password */
150
	/* Username/Password */
142
	std::string NameBuffer;
151
	uint16_t nameBuffer[INPUT_MAXLENGTH_NAME + 1];
143
	std::string PasswdBuffer;
152
	int nameBufferLen;
144
	std::string HiddenPasswdBuffer;
153
	uint16_t passwdBuffer[INPUT_MAXLENGTH_PASSWD + 1];
154
	int passwdBufferLen;
155
	uint16_t hiddenPasswdBuffer[INPUT_MAXLENGTH_PASSWD + 1];
145
156
146
	/* screen stuff */
157
	/* screen stuff */
147
	Rectangle viewport;
158
	Rectangle viewport;

Return to bug 192783