📄 openfiles.cpp
字号:
/****************************************************************************** Form implementation generated from reading ui file 'openfiles.ui'**** Created by: The User Interface Compiler ($Id: qt/main.cpp 3.3.6 edited Aug 31 2005 $)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "openfiles.h"#include <qvariant.h>#include <qheader.h>#include <qlistview.h>#include <qlabel.h>#include <qlineedit.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include <qimage.h>#include <qpixmap.h>#include "qmessagebox.h"#include "qstring.h"#include "openfiles.ui.h"/* * Constructs a OpenFiles as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * * The dialog will by default be modeless, unless you set 'modal' to * TRUE to construct a modal dialog. */OpenFiles::OpenFiles( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ){ if ( !name ) setName( "OpenFiles" ); setIcon( QPixmap::fromMimeSource( "process.png" ) ); OpenFilesLayout = new QGridLayout( this, 1, 1, 11, 6, "OpenFilesLayout"); spacer9 = new QSpacerItem( 40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); OpenFilesLayout->addItem( spacer9, 2, 0 ); spacer10 = new QSpacerItem( 20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding ); OpenFilesLayout->addMultiCell( spacer10, 0, 1, 1, 1 ); listView2 = new QListView( this, "listView2" ); listView2->addColumn( tr( "FD " ) ); listView2->addColumn( trUtf8( "\xe6\x89\x93\xe5\xbc\x80\xe6\x96\x87\xe4\xbb\xb6\x20\x20\x20\x20\x20\x20\x20\x20\x20" "\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" "\x20\x20" ) ); listView2->setFrameShape( QListView::WinPanel ); listView2->setFrameShadow( QListView::Sunken ); listView2->setAllColumnsShowFocus( TRUE ); listView2->setShowSortIndicator( TRUE ); listView2->setSorting(-1,false); OpenFilesLayout->addWidget( listView2, 1, 0 ); layout8 = new QHBoxLayout( 0, 0, 6, "layout8"); textLabel2 = new QLabel( this, "textLabel2" ); layout8->addWidget( textLabel2 ); currentProcesslineEdit = new QLineEdit( this, "currentProcesslineEdit" ); currentProcesslineEdit->setEnabled( FALSE ); currentProcesslineEdit->setPaletteForegroundColor( QColor( 0, 0, 0 ) ); currentProcesslineEdit->setPaletteBackgroundColor( QColor( 0, 0, 0 ) ); layout8->addWidget( currentProcesslineEdit ); OpenFilesLayout->addLayout( layout8, 0, 0 ); languageChange(); resize( QSize(432, 484).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); init();}/* * Destroys the object and frees any allocated resources */OpenFiles::~OpenFiles(){ // no need to delete child widgets, Qt does it all for us}/* * Sets the strings of the subwidgets using the current * language. */void OpenFiles::languageChange(){ setCaption( trUtf8( "\xe6\x89\x93\xe5\xbc\x80\xe7\x9a\x84\xe6\x96\x87\xe4\xbb\xb6" ) ); QToolTip::add( this, trUtf8( "\xe6\x89\x93\xe5\xbc\x80\xe7\x9a\x84\xe6\x96\x87\xe4\xbb\xb6" ) ); listView2->header()->setLabel( 0, tr( "FD " ) ); listView2->header()->setLabel( 1, trUtf8( "\xe6\x89\x93\xe5\xbc\x80\xe6\x96\x87\xe4\xbb\xb6\x20\x20\x20\x20\x20\x20\x20\x20\x20" "\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" "\x20\x20" ) ); textLabel2->setText( trUtf8( "\xe5\xbd\x93\xe5\x89\x8d\xe8\xbf\x9b\xe7\xa8\x8b\xef\xbc\x9a" ) ); currentProcesslineEdit->setText( tr( "currentPorcess" ) );}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -