📄 gpsmgruibase.cpp
字号:
/****************************************************************************** Form implementation generated from reading ui file 'gpsMgrUIBase.ui'**** Created: Fri Jul 4 11:45:35 2003** by: The User Interface Compiler ($Id: qt/main.cpp 3.1.2 edited Dec 19 11:45 $)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "gpsMgrUIBase.h"#include <qvariant.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include <qaction.h>#include <qmenubar.h>#include <qpopupmenu.h>#include <qtoolbar.h>#include <qimage.h>#include <qpixmap.h>static const char* const image0_data[] = { "22 22 7 1",". c None","# c #000000","b c #292c29","c c #5a595a","d c #838583","e c #c5c2c5","a c #ffffff","......................","....##########........","....#aaaaaaa#b#.......","....#aaaaaaa#cb#......","....#aaaaaaa#dcb#.....","....#aaaaaaa#edcb#....","....#aaaaaaa#aedcb#...","....#aaaaaaa#######...","....#aaaaaaaaaaaaa#...","....#aaaaaaaaaaaaa#...","....#aaaaaaaaaaaaa#...","....#aaaaaaaaaaaaa#...","....#aaaaaaaaaaaaa#...","....#aaaaaaaaaaaaa#...","....#aaaaaaaaaaaaa#...","....#aaaaaaaaaaaaa#...","....#aaaaaaaaaaaaa#...","....#aaaaaaaaaaaaa#...","....#aaaaaaaaaaaaa#...","....###############...","......................","......................"};static const char* const image1_data[] = { "22 22 5 1",". c None","# c #000000","c c #9c9900","a c #ffff00","b c #ffffff","......................","......................","......................","............####....#.","...........#....##.##.","..................###.",".................####.",".####...........#####.","#abab##########.......","#babababababab#.......","#ababababababa#.......","#babababababab#.......","#ababab###############","#babab##cccccccccccc##","#abab##cccccccccccc##.","#bab##cccccccccccc##..","#ab##cccccccccccc##...","#b##cccccccccccc##....","###cccccccccccc##.....","##cccccccccccc##......","###############.......","......................"};/* * Constructs a GPSMgrUIBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * */GPSMgrUIBase::GPSMgrUIBase( QWidget* parent, const char* name, WFlags fl ) : QMainWindow( parent, name, fl ), image0( (const char **) image0_data ), image1( (const char **) image1_data ){ (void)statusBar(); if ( !name ) setName( "GPSMgrUIBase" ); setEnabled( TRUE ); setCentralWidget( new QWidget( this, "qt_central_widget" ) ); GPSMgrUIBaseLayout = new QHBoxLayout( centralWidget(), 11, 6, "GPSMgrUIBaseLayout"); // actions fileNewAction = new QAction( this, "fileNewAction" ); fileNewAction->setIconSet( QIconSet( image0 ) ); fileOpenAction = new QAction( this, "fileOpenAction" ); fileOpenAction->setIconSet( QIconSet( image1 ) ); fileExitAction = new QAction( this, "fileExitAction" ); downloadGPSAction = new QAction( this, "downloadGPSAction" ); aboutAction = new QAction( this, "aboutAction" ); // toolbars // menubar menubar = new QMenuBar( this, "menubar" ); fileMenu = new QPopupMenu( this ); fileNewAction->addTo( fileMenu ); fileOpenAction->addTo( fileMenu ); fileMenu->insertSeparator(); fileExitAction->addTo( fileMenu ); menubar->insertItem( QString(""), fileMenu, 0 ); PopupMenu_3 = new QPopupMenu( this ); downloadGPSAction->addTo( PopupMenu_3 ); menubar->insertItem( QString(""), PopupMenu_3, 1 ); PopupMenu = new QPopupMenu( this ); aboutAction->addTo( PopupMenu ); menubar->insertItem( QString(""), PopupMenu, 2 ); languageChange(); resize( QSize(196, 134).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( fileNewAction, SIGNAL( activated() ), this, SLOT( fileNew() ) ); connect( fileOpenAction, SIGNAL( activated() ), this, SLOT( fileOpen() ) ); connect( fileExitAction, SIGNAL( activated() ), this, SLOT( fileExit() ) ); connect( downloadGPSAction, SIGNAL( activated() ), this, SLOT( downloadGPS() ) ); connect( aboutAction, SIGNAL( activated() ), this, SLOT( helpAbout() ) );}/* * Destroys the object and frees any allocated resources */GPSMgrUIBase::~GPSMgrUIBase(){ // no need to delete child widgets, Qt does it all for us}/* * Sets the strings of the subwidgets using the current * language. */void GPSMgrUIBase::languageChange(){ setCaption( tr( "GPS Manager" ) ); fileNewAction->setText( tr( "New" ) ); fileNewAction->setMenuText( tr( "&New" ) ); fileNewAction->setAccel( tr( "Ctrl+N" ) ); fileOpenAction->setText( tr( "Open" ) ); fileOpenAction->setMenuText( tr( "&Open..." ) ); fileOpenAction->setAccel( tr( "Ctrl+O" ) ); fileExitAction->setText( tr( "Exit" ) ); fileExitAction->setMenuText( tr( "E&xit" ) ); fileExitAction->setAccel( QString::null ); downloadGPSAction->setText( tr( "Download..." ) ); aboutAction->setText( tr( "About" ) ); menubar->findItem( 0 )->setText( tr( "&File" ) ); menubar->findItem( 1 )->setText( tr( "GPS" ) ); menubar->findItem( 2 )->setText( tr( "Help" ) );}void GPSMgrUIBase::fileNew(){ qWarning( "GPSMgrUIBase::fileNew(): Not implemented yet" );}void GPSMgrUIBase::fileOpen(){ qWarning( "GPSMgrUIBase::fileOpen(): Not implemented yet" );}void GPSMgrUIBase::fileSave(){ qWarning( "GPSMgrUIBase::fileSave(): Not implemented yet" );}void GPSMgrUIBase::fileSaveAs(){ qWarning( "GPSMgrUIBase::fileSaveAs(): Not implemented yet" );}void GPSMgrUIBase::filePrint(){ qWarning( "GPSMgrUIBase::filePrint(): Not implemented yet" );}void GPSMgrUIBase::fileExit(){ qWarning( "GPSMgrUIBase::fileExit(): Not implemented yet" );}void GPSMgrUIBase::editUndo(){ qWarning( "GPSMgrUIBase::editUndo(): Not implemented yet" );}void GPSMgrUIBase::editRedo(){ qWarning( "GPSMgrUIBase::editRedo(): Not implemented yet" );}void GPSMgrUIBase::editCut(){ qWarning( "GPSMgrUIBase::editCut(): Not implemented yet" );}void GPSMgrUIBase::addWaypoint(){ qWarning( "GPSMgrUIBase::addWaypoint(): Not implemented yet" );}void GPSMgrUIBase::deleteWaypoint(){ qWarning( "GPSMgrUIBase::deleteWaypoint(): Not implemented yet" );}void GPSMgrUIBase::editPaste(){ qWarning( "GPSMgrUIBase::editPaste(): Not implemented yet" );}void GPSMgrUIBase::editFind(){ qWarning( "GPSMgrUIBase::editFind(): Not implemented yet" );}void GPSMgrUIBase::helpIndex(){ qWarning( "GPSMgrUIBase::helpIndex(): Not implemented yet" );}void GPSMgrUIBase::helpContents(){ qWarning( "GPSMgrUIBase::helpContents(): Not implemented yet" );}void GPSMgrUIBase::helpAbout(){ qWarning( "GPSMgrUIBase::helpAbout(): Not implemented yet" );}void GPSMgrUIBase::editWaypoint(){ qWarning( "GPSMgrUIBase::editWaypoint(): Not implemented yet" );}void GPSMgrUIBase::downloadGPS(){ qWarning( "GPSMgrUIBase::downloadGPS(): Not implemented yet" );}void GPSMgrUIBase::filterSelectionChanged(int){ qWarning( "GPSMgrUIBase::filterSelectionChanged(int): Not implemented yet" );}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -