Eneboo - Documentación para desarrolladores
src/qt/tools/designer/plugins/cppeditor/mainfilesettings.ui.h
Ir a la documentación de este archivo.
00001 /****************************************************************************
00002 ** ui.h extension file, included from the uic-generated form implementation.
00003 **
00004 ** If you wish to add, delete or rename slots use Qt Designer which will
00005 ** update this file, preserving your code. Create an init() slot in place of
00006 ** a constructor, and a destroy() slot in place of a destructor.
00007 *****************************************************************************/
00008 
00009 #include <designerinterface.h>
00010 
00011 void CppMainFile::init()
00012 {
00013 }
00014 
00015 void CppMainFile::setup( QUnknownInterface *appIface )
00016 {
00017     DesignerInterface *dIface = 0;
00018     appIface->queryInterface( IID_Designer, (QUnknownInterface**)&dIface );
00019     if ( !dIface )
00020         return;
00021     QStringList l = dIface->currentProject()->formNames();
00022     editFileName->setText( "main.cpp" );
00023     listForms->clear();
00024     listForms->insertStringList( l );
00025     listForms->setCurrentItem( 0 );
00026     updateOkButton();
00027     editFileName->setFocus();
00028     editFileName->selectAll();
00029 }
00030 
00031 void CppMainFile::updateOkButton()
00032 {
00033     buttonOk->setEnabled( editFileName->text().length() > 0 && listForms->currentItem() != -1 );
00034 }
00035 
00036 
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'