1
/***************************************************************************
2
* Copyright (C) 2006 by Jens Dagerbo *
3
* jens.dagerbo@swipnet.se *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
10
***************************************************************************/
12
#include <kurlrequester.h>
13
#include <klineedit.h>
15
#include "ctags2_createtagfile.h"
16
#include "ctags2_part.h"
19
CreateTagFile::CreateTagFile(QWidget* parent, const char* name, bool modal, WFlags fl)
20
: CTags2CreateTagFileBase( parent, name, modal, fl )
22
dirToTag->setMode( KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly);
23
newTagFilePath->setMode( KFile::File | KFile::LocalOnly );
24
createTagFileButton->setEnabled( false );
27
CreateTagFile::~CreateTagFile()
31
void CreateTagFile::validate()
33
bool valid = ( !displayName->text().isEmpty() && !newTagFilePath->url().isEmpty() && !dirToTag->url().isEmpty() );
35
createTagFileButton->setEnabled( valid );
38
QString CreateTagFile::name( )
40
return displayName->text();
43
QString CreateTagFile::tagsfilePath( )
45
return newTagFilePath->url();
48
QString CreateTagFile::directory( )
50
return dirToTag->url();
53
// kate: space-indent off; indent-width 4; tab-width 4; show-tabs off;