⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 notebook.h

📁 多媒体电话记录程序
💻 H
字号:
// NoteBook.h: interface for the CNoteBook class.
//
//////////////////////////////////////////////////////////////////////
#ifndef _WG_NOTEBOOK_H_
#define _WG_NOTEBOOK_H_

#include <gtk/gtk.h>

#include "Widget.h"
#include "List.h"
#include "Detail.h"
#include "callinfo.h"
#include "config.h"


class CNoteBook : public CWidget 
{
public:
	CNoteBook(CWidget* parent=(CWidget*)NULL);
	virtual ~CNoteBook();

	int GetCurPage()	{ return gtk_notebook_get_current_page(GTK_NOTEBOOK(m_hHandle)); }
	GtkWidget* GetPage(int nth) 
	{ return gtk_notebook_get_nth_page(GTK_NOTEBOOK(GetHandle()), nth); }
	void SetPage(int nth) { gtk_notebook_set_page(GTK_NOTEBOOK(m_hHandle), nth); }	
	void ShowDetail(int row);
	virtual GtkWidget* Create();
	void ReLoadData();
	void SetCallType(int type, bool MustFresh=false) 
	{ 
		if((type>=0) && (type<5)){			
			if(MustFresh || (m_nCallType != type))
				m_pList->Fresh(m_pCif[type]);			
			m_nCallType = type;
		}
	}
	int GetCallType() { return m_nCallType; }

	enum tabs { calllist = 0, detail, tabcounts };

public:
	CList *m_pList;
	CCallsInfo* m_pCif[5];
	CCallTimes* m_pCallTimes;
	CDetail* m_Detail;

private:	
	int m_nCallType;

	static void on_clist_double_click_row(CList* list, int row, gpointer user_data); 
	static void on_detail_clear_button_clicked(GtkButton *button, gpointer user_data);
};


#endif  // _WG_NOTEBOOK_H_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -