KDevelop API Documentation

ctags2_widgetbase.cpp

Go to the documentation of this file.
00001 #include <kdialog.h>
00002 #include <klocale.h>
00003 /****************************************************************************
00004 ** Form implementation generated from reading ui file './ctags2_widgetbase.ui'
00005 **
00006 ** Created: Tue Mar 22 23:49:31 2005
00007 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.4   edited Nov 24 2003 $)
00008 **
00009 ** WARNING! All changes made in this file will be lost!
00010 ****************************************************************************/
00011 
00012 #include "ctags2_widgetbase.h"
00013 
00014 #include <qvariant.h>
00015 #include <qheader.h>
00016 #include <klistview.h>
00017 #include <qlabel.h>
00018 #include <qlineedit.h>
00019 #include <qpushbutton.h>
00020 #include <qlayout.h>
00021 #include <qtooltip.h>
00022 #include <qwhatsthis.h>
00023 
00024 /*
00025  *  Constructs a CTags2WidgetBase as a child of 'parent', with the
00026  *  name 'name' and widget flags set to 'f'.
00027  */
00028 CTags2WidgetBase::CTags2WidgetBase( QWidget* parent, const char* name, WFlags fl )
00029     : QWidget( parent, name, fl )
00030 {
00031     if ( !name )
00032     setName( "CTags2WidgetBase" );
00033     CTags2WidgetBaseLayout = new QVBoxLayout( this, 2, 6, "CTags2WidgetBaseLayout"); 
00034 
00035     output_view = new KListView( this, "output_view" );
00036     output_view->addColumn( tr2i18n( "Tag" ) );
00037     output_view->addColumn( tr2i18n( "Type" ) );
00038     output_view->addColumn( tr2i18n( "File" ) );
00039     output_view->setAllColumnsShowFocus( TRUE );
00040     output_view->setResizeMode( KListView::AllColumns );
00041     CTags2WidgetBaseLayout->addWidget( output_view );
00042 
00043     layout3 = new QHBoxLayout( 0, 0, 6, "layout3"); 
00044 
00045     textLabel1 = new QLabel( this, "textLabel1" );
00046     layout3->addWidget( textLabel1 );
00047 
00048     input_edit = new QLineEdit( this, "input_edit" );
00049     layout3->addWidget( input_edit );
00050 
00051     hitcount_label = new QLabel( this, "hitcount_label" );
00052     layout3->addWidget( hitcount_label );
00053     spacer1 = new QSpacerItem( 80, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00054     layout3->addItem( spacer1 );
00055 
00056     datetime_label = new QLabel( this, "datetime_label" );
00057     layout3->addWidget( datetime_label );
00058 
00059     generate_button = new QPushButton( this, "generate_button" );
00060     generate_button->setFocusPolicy( QPushButton::NoFocus );
00061     layout3->addWidget( generate_button );
00062     CTags2WidgetBaseLayout->addLayout( layout3 );
00063     languageChange();
00064     resize( QSize(780, 397).expandedTo(minimumSizeHint()) );
00065     clearWState( WState_Polished );
00066 
00067     // signals and slots connections
00068     connect( input_edit, SIGNAL( returnPressed() ), this, SLOT( line_edit_changed() ) );
00069     connect( input_edit, SIGNAL( textChanged(const QString&) ), this, SLOT( line_edit_changed_delayed() ) );
00070     connect( generate_button, SIGNAL( clicked() ), this, SLOT( regeneratebutton_clicked() ) );
00071 
00072     // tab order
00073     setTabOrder( input_edit, output_view );
00074 }
00075 
00076 /*
00077  *  Destroys the object and frees any allocated resources
00078  */
00079 CTags2WidgetBase::~CTags2WidgetBase()
00080 {
00081     // no need to delete child widgets, Qt does it all for us
00082 }
00083 
00084 /*
00085  *  Sets the strings of the subwidgets using the current
00086  *  language.
00087  */
00088 void CTags2WidgetBase::languageChange()
00089 {
00090     setCaption( QString::null );
00091     output_view->header()->setLabel( 0, tr2i18n( "Tag" ) );
00092     output_view->header()->setLabel( 1, tr2i18n( "Type" ) );
00093     output_view->header()->setLabel( 2, tr2i18n( "File" ) );
00094     QWhatsThis::add( output_view, tr2i18n( "Result view for a tag lookup. Click a line to go to the corresponding place in the code." ) );
00095     textLabel1->setText( tr2i18n( "Lookup:" ) );
00096     QWhatsThis::add( input_edit, tr2i18n( "Type the identifier you want to lookup. <p> The identifier will populate and display a reducing list as you type." ) );
00097     hitcount_label->setText( tr2i18n( "Hits:" ) );
00098     datetime_label->setText( tr2i18n( "Date:" ) );
00099     generate_button->setText( tr2i18n( "Regenerate" ) );
00100     QWhatsThis::add( generate_button, tr2i18n( "Press to regenerate CTAGS database.<p>This will take some time on a large project." ) );
00101 }
00102 
00103 void CTags2WidgetBase::line_edit_changed_delayed()
00104 {
00105     qWarning( "CTags2WidgetBase::line_edit_changed_delayed(): Not implemented yet" );
00106 }
00107 
00108 void CTags2WidgetBase::line_edit_changed()
00109 {
00110     qWarning( "CTags2WidgetBase::line_edit_changed(): Not implemented yet" );
00111 }
00112 
00113 void CTags2WidgetBase::regeneratebutton_clicked()
00114 {
00115     qWarning( "CTags2WidgetBase::regeneratebutton_clicked(): Not implemented yet" );
00116 }
00117 
00118 #include "ctags2_widgetbase.moc"
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:54 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003