cc_frm_header.cpp/h: remove CTextBox types for title allignment

Title object has only width of current text content. This causes CTextBox
types have not a really visible effect. Now we have only three align types for title
and these are related to cc-text object position.

Involved classes adjusted too.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 942a27e3ef
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-11 (Thu, 11 May 2017)



------------------
This commit was generated by Migit
This commit is contained in:
2017-05-11 12:03:28 +02:00
parent babdee806b
commit 064b2cc588
10 changed files with 60 additions and 44 deletions

View File

@@ -221,10 +221,10 @@ int CLuaInstCCWindow::CCWindowSetCaption(lua_State *L)
std::string name = "";
tableLookup(L, "name", name) || tableLookup(L, "title", name) || tableLookup(L, "caption", name);
lua_Integer alignment = (lua_Integer)CTextBox::NO_AUTO_LINEBREAK;
lua_Integer alignment = (lua_Integer)DEFAULT_TITLE_ALIGN;
tableLookup(L, "alignment", alignment);
D->w->setWindowCaption(name, alignment);
D->w->setWindowCaption(name, (cc_title_alignment_t)alignment);
return 0;
}

View File

@@ -29,7 +29,7 @@ class CLuaCCWindow
~CLuaCCWindow() { delete w; }
};
class CLuaInstCCWindow
class CLuaInstCCWindow : CCHeaderTypes
{
public:
CLuaInstCCWindow() {};