summaryrefslogtreecommitdiffstats
path: root/src/kile/latexconfigwidget.ui.h
blob: d152918244b8a8a81e6adfa3b9e7dd38aee0d5dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/****************************************************************************
** ui.h extension file, included from the uic-generated form implementation.
**
** If you want to add, delete, or rename functions or slots, use
** TQt Designer to update this file, preserving your code.
**
** You should not define a constructor or destructor in this file.
** Instead, write your code in functions called init() and destroy().
** These will automatically be called by the form's constructor and
** destructor.
*****************************************************************************/


void KileWidgetLatexConfig::init() 
{ 
	int w = m_tlType->tqsizeHint().width();  
	
	int wi = m_tlPath->tqsizeHint().width(); 
	if ( wi > w ) w = wi;
	
	wi = m_pbCommands->tqsizeHint().width(); 
	if ( wi > w ) w = wi;
	
	w += 8;
	m_tlType->setFixedWidth(w);    
	m_tlPath->setFixedWidth(w);     
	m_pbCommands->setFixedWidth(w);     
}



void KileWidgetLatexConfig::slotConfigure()
{
    KileDialog::LatexCommandsDialog *dlg = new KileDialog::LatexCommandsDialog(m_config,m_commands,this);
    dlg->exec();
    delete dlg;
}


void KileWidgetLatexConfig::setLatexCommands( KConfig *config, KileDocument::LatexCommands *commands )
{
    m_config = config;
    m_commands = commands;
}