1 //
2 // C++ Implementation: textprogression
3 //
4 // Description:
5 //
6 //
7 // Author: Pierre Marchand <pierremarc@oep-h.com>, (C) 2008
8 //
9 // Copyright: See COPYING file that comes with this distribution
10 //
11 //
12 #include "textprogression.h"
13 
14 TextProgression *TextProgression::instance = 0;
TextProgression()15 TextProgression::TextProgression()
16 {
17 	instance = this;
18 //	setupUi(this);
19 
20 //	connect(inlineBTT,SIGNAL(released()),this,SLOT(forwardStateChanged()));
21 //	connect(inlineRTL,SIGNAL(released()),this,SLOT(forwardStateChanged()));
22 //	connect(inlineLTR,SIGNAL(released()),this,SLOT(forwardStateChanged()));
23 //	connect(inlineTTB,SIGNAL(released()),this,SLOT(forwardStateChanged()));
24 //	connect(blockTTB,SIGNAL(released()),this,SLOT(forwardStateChanged()));
25 //	connect(blockRTL,SIGNAL(released()),this,SLOT(forwardStateChanged()));
26 //	connect(blockLTR,SIGNAL(released()),this,SLOT(forwardStateChanged()));
27 }
28 
inBlock()29 TextProgression::Progression TextProgression::inBlock()
30 {
31 //	if(blockTTB->isChecked())
32 //		return BLOCK_TTB;
33 //	else if(blockRTL->isChecked())
34 //		return BLOCK_RTL;
35 //	else if(blockLTR->isChecked())
36 //		return BLOCK_LTR;
37 
38 	return BLOCK_TTB;
39 }
40 
inLine()41 TextProgression::Progression TextProgression::inLine()
42 {
43 //	if(inlineLTR->isChecked())
44 //		return INLINE_LTR;
45 //	else if(inlineRTL->isChecked())
46 //		return INLINE_RTL;
47 //	else if(inlineTTB->isChecked())
48 //		return INLINE_TTB;
49 //	else if(inlineBTT->isChecked())
50 //		return INLINE_BTT;
51 
52 	return INLINE_LTR;
53 }
54 
55 //void TextProgression::forwardStateChanged( )
56 //{
57 //	emit stateChanged();
58 //}
59