worddlg.h
来自「磁盘管理工具,主要管理光盘信息和内容希望大家喜欢」· C头文件 代码 · 共 78 行
H
78 行
#ifndef WORDDLG_H#define WORDDLG_H//$Id: WordDlg.h,v 1.2 2005/09/05 04:08:46 markus Rel $// This program 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 2 of the License, or// (at your option) any later version.// This program 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, write to the Free Software// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.#include <gtkmm/table.h>#include <gtkmm/treeview.h>#include <gtkmm/liststore.h>namespace Gtk { class Entry; class Button;};/**Table permitting to manipulate the words. */class WordDialog : public Gtk::Table { public: static Gtk::Widget* makeDialog () { return new WordDialog (); } static void commitDialogData (Gtk::Widget* dialog); protected: WordDialog (); virtual ~WordDialog (); void commit (); class WordColumns : public Gtk::TreeModel::ColumnRecord { public: WordColumns () { add (word); } Gtk::TreeModelColumn<Glib::ustring> word; }; void appendWord (const char* value); void appendArticle (const char* value); Gtk::TreeModel::Row append (Glib::RefPtr<Gtk::ListStore>& list, const Glib::ustring& value); void entryChanged (unsigned int which); void entrySelected (unsigned int which); void onAdd (unsigned int which); void onDelete (unsigned int which); private: WordColumns colWords; Glib::RefPtr<Gtk::ListStore> names; Glib::RefPtr<Gtk::ListStore> articles; Gtk::Entry& txtName; Gtk::Entry& txtArticle; Gtk::Button& addName; Gtk::Button& deleteName; Gtk::Button& addArticle; Gtk::Button& deleteArticle; Gtk::TreeView& lstNames; Gtk::TreeView& lstArticles;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?