droptestdialogbase.h

来自「应用qt库」· C头文件 代码 · 共 77 行

H
77
字号
/****************************************************************************** Form interface generated from reading ui file '.\droptestdialogbase.ui'**** Created: Thu May 15 11:27:45 2008**      by:  The User Interface Compiler (uic)**** WARNING! All changes made in this file will be lost!****************************************************************************/#ifndef DROPTESTDIALOGBASE_H#define DROPTESTDIALOGBASE_H#include <qvariant.h>#include <qdialog.h>
#include <qlabel.h>
#include <qdragobject.h> 
#include <qfile.h>
#include <qcstring.h>
#include <qlineedit.h>
#include <qcombobox.h>
#include <qpushbutton.h>
#include <qprogressbar.h>
class QVBoxLayout; class QHBoxLayout; class QGridLayout; 

typedef QUriDrag QUrlDrag;

class dropLabel : public QLabel
{
Q_OBJECT
public:
    dropLabel( QWidget *parent = 0, const char *name = 0 );
	
signals:
    void message( QString& );

protected:
    void dragEnterEvent( QDragEnterEvent * );
    void dragMoveEvent( QDragMoveEvent * );
    void dragLeaveEvent( QDragLeaveEvent * );
    void dropEvent( QDropEvent * );

};class droptestDialogBase : public QDialog{     Q_OBJECTpublic:    droptestDialogBase( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );    ~droptestDialogBase();

	void initSubPath( const QString &parentPath );
	void treatDir( QString &dirName, QString &sfilepath );

private slots:
	void displayMessage( QString & );
	void slotAddPath();
	void textChanged( QString & );
	void refreshLine( int );
private:
	dropLabel *droplabel;
	QLabel *fnLabel;
	QLineEdit *rootEdit;
	QLineEdit *addPathEdit;
	QPushButton *addButton;
	QComboBox *subPathBox;
	QProgressBar *pb;

//	QString gDirName;};#endif // DROPTESTDIALOGBASE_H

⌨️ 快捷键说明

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