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

📄 ciconview.h

📁 Gambas is a graphical development environment based on a Basic interpreter, like Visual Basic. It us
💻 H
字号:
/***************************************************************************  CIconView.h  The IconView class  (c) 2000-2003 Beno顃 Minisini <gambas@users.sourceforge.net>  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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.***************************************************************************/#ifndef __CICONVIEW_H#define __CICONVIEW_H#include "gambas.h"#include <qasciidict.h>#include <qiconview.h>#include <qevent.h>#include "CWidget.h"#include "CPicture.h"#ifndef __CICONVIEW_CPPextern GB_DESC CIconViewItemDesc[];extern GB_DESC CIconViewDesc[];#else#define WIDGET ((QIconView *)((CWIDGET *)_object)->widget)#define THIS ((CICONVIEW *)_object)#define CICONVIEW_PROPERTIES CWIDGET_PROPERTIES \  ",Mode,Arrangement,GridX,GridY,WordWrap,Border,ScrollBar"#define ARRANGEMENT_FREE (-1)#endifclass MyIconViewItem;typedef  struct {    CWIDGET widget;    QAsciiDict<MyIconViewItem> *dict;    bool sorted;    bool asc;    MyIconViewItem *item;    MyIconViewItem *last;    }  CICONVIEW;class MyIconViewItem : public QIconViewItem{public:  MyIconViewItem(QIconView *parent);  MyIconViewItem(QIconView *parent, MyIconViewItem *after);  ~MyIconViewItem();  CPICTURE *picture;  char *key;  CICONVIEW *container;  void setPicture(GB_OBJECT *pict);private:  void initData(void);};class CIconView : public QObject{  Q_OBJECTpublic:  static CIconView manager;  static MyIconViewItem *getItem(CICONVIEW *view, char *key);public slots:  void selected(void);  void activated(QIconViewItem *);  void clicked(QIconViewItem *);  void renamed(QIconViewItem *);private:  void raiseEvent(int, QIconViewItem *);};#endif

⌨️ 快捷键说明

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