📄 callbacks.h
字号:
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- *//* * callbacks.h * Copyright (C) wwsh 2008 <wwssir@gmail.com> * * callbacks.h is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * callbacks.h is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */#include <gtk/gtk.h>#include <glade/glade.h>typedef struct _MainWindow MainWindow;struct _MainWindow { GladeXML *gxml; GtkWindow *window; GtkToolButton *tbr_new; GtkToolButton *tbr_open; GtkToolButton *tbr_save; GtkTreeView *treeview; GtkProgressBar *progressbar; GtkButton *btn_ok; GtkButton *btn_apply; GtkButton *btn_undo; GtkEntry *p1_entry_FilePathName; GtkFileChooserButton *p1_btn_filechooser; GtkImage *p1_image; GtkTextView *p2_textview; GtkEntry *p2_entry_text; // page 3 GtkRadioButton *p3_radiobutton1; GtkRadioButton *p3_radiobutton2; GtkRadioButton *p3_radiobutton3; GtkCheckButton *p3_checkbutton1; GtkCheckButton *p3_checkbutton2; GtkComboBox *p3_combobox; GtkComboBoxEntry *p3_comboboxentry; GtkHScale *p3_hscale; GtkVScale *p3_vscale; GtkAboutDialog *aboutdlg;};extern MainWindow* mwin;GtkWindow* create_main_window(void);// Action Callbackvoid on_btn_OK_clicked(GtkWidget* w, gpointer user_data);void on_btn_Apply_clicked(GtkWidget* w, gpointer user_data);void on_btn_Undo_clicked(GtkWidget* w, gpointer user_data);// ToolButton Callbackvoid on_New_clicked(GtkWidget* w, gpointer user_data);void on_Open_clicked(GtkWidget* w, gpointer user_data);void on_Save_clicked(GtkWidget* w, gpointer user_data);// FileChooserButton Callbackvoid on_page1_btn_filechooser_file_set(GtkWidget* w, gpointer user_data);/* Prototype for selection handler callback */void on_treeview_selection_changed (GtkTreeSelection *selection, gpointer data);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -