00001 #include <kdialog.h>
00002 #include <klocale.h>
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include "filegroupsconfigwidgetbase.h"
00013
00014 #include <qvariant.h>
00015 #include <kdialog.h>
00016 #include <qpushbutton.h>
00017 #include <qlabel.h>
00018 #include <qheader.h>
00019 #include <qlistview.h>
00020 #include <qlayout.h>
00021 #include <qtooltip.h>
00022 #include <qwhatsthis.h>
00023
00024
00025
00026
00027
00028 FileGroupsConfigWidgetBase::FileGroupsConfigWidgetBase( QWidget* parent, const char* name, WFlags fl )
00029 : QWidget( parent, name, fl )
00030 {
00031 if ( !name )
00032 setName( "filegroups_config_widget" );
00033 filegroups_config_widgetLayout = new QHBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint(), "filegroups_config_widgetLayout");
00034
00035 Layout3 = new QVBoxLayout( 0, 0, KDialog::spacingHint(), "Layout3");
00036
00037 title_label = new QLabel( this, "title_label" );
00038 Layout3->addWidget( title_label );
00039
00040 listview = new QListView( this, "listview" );
00041 listview->addColumn( tr2i18n( "Group" ) );
00042 listview->addColumn( tr2i18n( "Pattern" ) );
00043 listview->setAllColumnsShowFocus( TRUE );
00044 listview->setResizeMode( QListView::AllColumns );
00045 Layout3->addWidget( listview );
00046 filegroups_config_widgetLayout->addLayout( Layout3 );
00047
00048 Layout3_2 = new QVBoxLayout( 0, 0, KDialog::spacingHint(), "Layout3_2");
00049 Spacer6 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
00050 Layout3_2->addItem( Spacer6 );
00051
00052 addgroup_button = new QPushButton( this, "addgroup_button" );
00053 Layout3_2->addWidget( addgroup_button );
00054
00055 editgroup_button = new QPushButton( this, "editgroup_button" );
00056 Layout3_2->addWidget( editgroup_button );
00057
00058 deletegroup_button = new QPushButton( this, "deletegroup_button" );
00059 Layout3_2->addWidget( deletegroup_button );
00060 Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
00061 Layout3_2->addItem( Spacer3 );
00062
00063 moveup_button = new QPushButton( this, "moveup_button" );
00064 Layout3_2->addWidget( moveup_button );
00065
00066 movedown_button = new QPushButton( this, "movedown_button" );
00067 Layout3_2->addWidget( movedown_button );
00068 Spacer4 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
00069 Layout3_2->addItem( Spacer4 );
00070 filegroups_config_widgetLayout->addLayout( Layout3_2 );
00071 languageChange();
00072 resize( QSize(599, 496).expandedTo(minimumSizeHint()) );
00073 clearWState( WState_Polished );
00074
00075
00076 connect( moveup_button, SIGNAL( clicked() ), this, SLOT( moveUp() ) );
00077 connect( deletegroup_button, SIGNAL( clicked() ), this, SLOT( removeGroup() ) );
00078 connect( addgroup_button, SIGNAL( clicked() ), this, SLOT( addGroup() ) );
00079 connect( editgroup_button, SIGNAL( clicked() ), this, SLOT( editGroup() ) );
00080 connect( movedown_button, SIGNAL( clicked() ), this, SLOT( moveDown() ) );
00081
00082
00083 title_label->setBuddy( listview );
00084 }
00085
00086
00087
00088
00089 FileGroupsConfigWidgetBase::~FileGroupsConfigWidgetBase()
00090 {
00091
00092 }
00093
00094
00095
00096
00097
00098 void FileGroupsConfigWidgetBase::languageChange()
00099 {
00100 setCaption( tr2i18n( "File Group View" ) );
00101 title_label->setText( tr2i18n( "&Groups in the file view and their corresponding patterns:" ) );
00102 listview->header()->setLabel( 0, tr2i18n( "Group" ) );
00103 listview->header()->setLabel( 1, tr2i18n( "Pattern" ) );
00104 addgroup_button->setText( tr2i18n( "&Add Group..." ) );
00105 editgroup_button->setText( tr2i18n( "&Edit Group..." ) );
00106 deletegroup_button->setText( tr2i18n( "De&lete Group" ) );
00107 moveup_button->setText( tr2i18n( "Move &Up" ) );
00108 movedown_button->setText( tr2i18n( "Move &Down" ) );
00109 }
00110
00111 void FileGroupsConfigWidgetBase::addGroup()
00112 {
00113 qWarning( "FileGroupsConfigWidgetBase::addGroup(): Not implemented yet" );
00114 }
00115
00116 void FileGroupsConfigWidgetBase::editGroup()
00117 {
00118 qWarning( "FileGroupsConfigWidgetBase::editGroup(): Not implemented yet" );
00119 }
00120
00121 void FileGroupsConfigWidgetBase::removeGroup()
00122 {
00123 qWarning( "FileGroupsConfigWidgetBase::removeGroup(): Not implemented yet" );
00124 }
00125
00126 void FileGroupsConfigWidgetBase::moveUp()
00127 {
00128 qWarning( "FileGroupsConfigWidgetBase::moveUp(): Not implemented yet" );
00129 }
00130
00131 void FileGroupsConfigWidgetBase::moveDown()
00132 {
00133 qWarning( "FileGroupsConfigWidgetBase::moveDown(): Not implemented yet" );
00134 }
00135
00136 #include "filegroupsconfigwidgetbase.moc"