📄 list.h
字号:
// List.h: interface for the CList class.
//
//////////////////////////////////////////////////////////////////////
#ifndef _WG_LIST_H_
#define _WG_LIST_H_
#include "Widget.h"
#include "callinfo.h"
#include "config.h"
class CList : public CWidget
{
public:
CList(CWidget* parent=(CWidget*)NULL);
virtual ~CList();
inline int GetSelectedRow()
{
if(GTK_CLIST(m_hHandle)->selection)
return GPOINTER_TO_INT (GTK_CLIST(m_hHandle)->selection->data);
return -1;
}
inline int RowCounts() { return GTK_CLIST(m_hHandle)->rows; }
inline void Freeze() { gtk_clist_freeze(GTK_CLIST(m_hHandle)); }
inline void Thaw() { gtk_clist_thaw(GTK_CLIST(m_hHandle)); }
inline void SelectRow(int row);
inline void RemoveRow(int row);
virtual GtkWidget* Create();
inline const gchar* GetTel(int nth);
inline const gchar* GetName(int nth);
void Fresh(CCallsInfo* cif);
inline void Clear() ;
void set_double_click_row_func(GtkSignalFunc fun, gpointer user_data);
private:
int m_Seleted_row;
typedef void (*CListDoubleClickRowFunc)(CList* list, int row, gpointer user_data);
CListDoubleClickRowFunc on_double_click_row;
static void on_clist_select_row (GtkCList *clist,
gint row,
gint column,
GdkEvent *event,
gpointer user_data);
};
#endif // _WG_LIST_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -