void BtAboutDialog::init_contributors_tab()
{
	selectTab(1);
	setTabText(tr("Contributors"));
	QString content;
	content += make_bold(tr("The following people contributed to BibleTime:")) + make_br();
	// sorted alphabetically (last name)
	content += "<ul>";
	content += "<li>Thomas Abthorpe (" + tr("documentation and translation manager") + ")</li>";
	content += "<li>Joachim Ansorg (" + tr("project founder, developer") + ")</li>";
	content += "<li>David Blue (" + tr("designer") + ")</li>";
	content += "<li>Tim Brodie (" + tr("developer") + ")</li>";
	content += "<li>Timothy R. Butler (" + tr("designer") + ")</li>";
	content += "<li>Jim Campbell (" + tr("developer") + ")</li>";
	content += "<li>Lee Carpenter (" + tr("developer") + ")</li>";
	content += "<li>Jeremy Erickson (" + tr("packager") + ")</li>";
	content += "<li>Troy A. Griffitts (" + tr("creator of The Sword Project") + ")</li>";
	content += "<li>Martin Gruner (" + tr("project manager, developer") + ")</li>";
	content += "<li>Thomas Hagedorn (" + tr("domain sponsor") + ")</li>";
	content += "<li>Bob Harman (" + tr("howto") + ")</li>";
	content += "<li>Gary Holmlund (" + tr("developer") + ")</li>";
	content += "<li>Nikolay Igotti (" + tr("developer") + ")</li>";
	content += "<li>Eeli Kaikkonnen (" + tr("developer") + ")</li>";
	content += "<li>Chris Kujawa (" + tr("developer") + ")</li>";
	content += "<li>Mark Lybarger (" + tr("developer") + ")</li>";
	content += "<li>Luke Mauldin (" + tr("developer") + ")</li>";
	content += "<li>James Ots (" + tr("designer") + ")</li>";
	content += "<li>Fred Saalbach (" + tr("documentation") + ")</li>";
	content += "<li>Gary Sims (" + tr("developer") + ")</li>";
	content += "<li>Wolfgang Stradner (" + tr("tester, usability expert") + ")</li>";
	content += "<li>Thorsten Uhlmann (" + tr("developer") + ")</li>";
	content += "<li>David White (" + tr("developer") + ")</li>";
	content += "<li>Mark Zealey (" + tr("developer") + ")</li>";
	content += "</ul>";

	content += make_bold(tr("The following people translated BibleTime into their language:")) + make_br();
	// sorted alphabetically (last name)
	content += "<ul>";
	content += "<li>Horatiu Alexe</li>";
	content += "<li>Chun-shek Chan</li>";
	content += "<li>Ilpo Kantonen</li>";
	content += "<li>Pavel Laukko</li>";
	content += "<li>Piotr Markiewicz</li>";
	content += "<li>Gabriel P&eacute;rez</li>";
	content += "<li>Igor Plisco</li>";
	content += "<li>Igor Rykhlin</li>";
	content += "<li>Vlad Savitsky</li>";
	content += "<li>Johan van der Lingen</li>";
	content += "<li>Jean Van Schaftingen</li>";
	content += "<li>Dmitry Yurevich</li>";
	content += "<li>Esteban Zeller</li>";
	content += "</ul>";

	QString contributors = make_html(make_head("") + make_body(content));
	setHtml(contributors);
}
Esempio n. 2
0
void add_body(struct body **b, int x, int y)
{
    if (!(*b)) {
        *b = make_body(x, y);
        (**b).rest = NULL;
    }
    else {
        add_body(&((*b)->rest), x, y);
    }
}
Esempio n. 3
0
//void demography  :: add()
//{
////    if(false)
//    {
//        b2CircleShape Shape;
//        Shape.m_radius = radius;
//        auto position =
//            Vec2(wsize.x*getrangerand(.1,.9),
//                 wsize.y*getrangerand(.1,.9));
//
//        auto Body = makebody(World,&Shape,conv(position),b2_dynamicBody,0,0.01,0,.9);
//
//        Body->SetLinearVelocity(
//        b2Vec2(5*getrangerand(-1,1),
//            5*getrangerand(-1,1)));
//        cellbodies.push_back(Body);
//        pos.push_back(b2Vec2());
//        
////        cells.push_back(CircleShape(0,4));
////        cells.back().setFillColor(Color(255,80,160));
////        cells.back().setRadius(SCALE*radius*GR_PH_COEFF);
////        cells.back().setOrigin(cells.back().getRadius(), cells.back().getRadius());
//        vbunk.add();
//    //    cells.back().setPosition(conv(position));
//    }
//    if(false)
//    {
//        pos.push_back(b2Vec2());
//    //    pos_sf.push_back(Vec2());
//        
//        b2BodyDef BodyDef;
//        BodyDef.position = b2Vec2
//        ((getrand(0.3)+0.2)*wsize.x/SCALE,
//         (getrand(0.3)+0.2)*wsize.y/SCALE);
//        BodyDef.type = b2_dynamicBody;
//    //    BodyDef.linearDamping=dampen;
//        b2Body* Body = World.CreateBody(&BodyDef);
//        
//        b2CircleShape Shape;
//        Shape.m_radius = radius;
//        //Body->setv
//        b2FixtureDef FixtureDef;
//        FixtureDef.density = 4.f;
//        FixtureDef.restitution = .9f;
//        FixtureDef.shape = &Shape;
//        Body->CreateFixture(&FixtureDef);
//        Body->SetLinearVelocity(b2Vec2
//            (5*getrangerand(-1,1),
//             5*getrangerand(-1,1)));
//        cellbodies.push_back(Body);
//        
//        cells.push_back(CircleShape(SCALE,4));
//        cells.back().setFillColor(Color(255,80,160));
//        cells.back().setRadius(SCALE*radius);
//        cells.back().setOrigin(cells.back().getRadius(), cells.back().getRadius());
//    }
//    lb2(cells.size());
//}
void demography  :: add_agent(Vec2 position, int is_enemy)

{
    b2CircleShape shape,shape_s,shape_s_e;
    shape       .m_radius = radius;
    shape_s     .m_radius = sensor_radius;
    shape_s_e   .m_radius = sensor_radius_e;

    auto Body = make_body(World,conv(position),b2_dynamicBody,dampen);
    b2FixtureDef fixdef, fixdef_s, fixdef_s_e;
    if(use_masks)
    {
        fixdef      = make_fixture(static_cast<b2Shape*>(&shape),    false, &filters[is_enemy][0],.1,4);
        //fixdef_s    = make_fixture(static_cast<b2Shape*>(&shape_s),  true,  &filters[is_enemy][1]    );
        //fixdef_s_e  = make_fixture(static_cast<b2Shape*>(&shape_s_e),true,  &filters[is_enemy][2]);
    }
    else
    {
        fixdef = make_fixture  (static_cast<b2Shape*>(&shape),false);
        fixdef.density=4;
        //fixdef_s = make_fixture(static_cast<b2Shape*>(&shape_s),true);
        //fixdef_s_e = make_fixture(static_cast<b2Shape*>(&shape_s_e),true);
    }
    Body->CreateFixture(&fixdef);
    //Body->CreateFixture(&fixdef_s);
    //Body->CreateFixture(&fixdef_s_e);
    if(!is_enemy)cellbodies.insert(Body);
    //if(draw_sensors)
    //{
    //    sensors[Body]=(CircleShape(SCALE*shape_s.m_radius,16));
    //    sensors[Body].setFillColor(Color(0,0,0,0));
    //    sensors[Body].setOutlineColor(Color(64,64,64));
    //    //sensors[Body].setOutlineColor(Color(0,64,0));
    //    sensors[Body].setOutlineThickness(0.5);
    //    sensors[Body].setOrigin(sensors[Body].getRadius(), sensors[Body].getRadius());

    //    sensors2[Body]=(CircleShape(SCALE*shape_s_e.m_radius,16));
    //    sensors2[Body].setFillColor(Color(0,0,0,0));
    //    //sensors2[Body].setOutlineColor(Color(96,0,0));
    //    sensors2[Body].setOutlineColor(Color(64,64,64));
    //    sensors2[Body].setOutlineThickness(0.5);
    //    sensors2[Body].setOrigin(sensors2[Body].getRadius(), sensors2[Body].getRadius());
    //}
#define USE_SHAPES
#ifdef USE_SHAPES
    cells[Body]=CircleShape(SCALE,getrangerand(3,6));
    cells[Body].setFillColor(rgb_from_hue(getrand(1)));
    cells[Body].setRadius(SCALE*radius);
    cells[Body].setOrigin(cells[Body].getRadius(), cells[Body].getRadius());
#else
    vbunk.add();
#endif
    nears[Body]=unordered_set<b2Body*>();
    pos.push_back(b2Vec2());
}
Esempio n. 4
0
std::vector<char> response_serializer::operator()(const http::response &response) noexcept {
    auto header = make_header(response);
    auto body = make_body(response);
    auto ending = make_ending(response);

    std::vector<char> buffer;
    buffer.reserve(getpagesize());
    buffer.insert(buffer.end(), std::make_move_iterator(header.begin()), std::make_move_iterator(header.end()));
    buffer.insert(buffer.end(), std::make_move_iterator(body.begin()), std::make_move_iterator(body.end()));
    buffer.insert(buffer.end(), std::make_move_iterator(ending.begin()), std::make_move_iterator(ending.end()));
    return buffer;
}
Esempio n. 5
0
void connection::process()
{
	read_request();
	parse_request();
	make_body();
	make_header();
	send_header();
	if (is_get())
	{
		send_body();
	}
	m_socket.close();
}
void BtAboutDialog::init_bt_tab()
{
	selectTab(0);
	setTabText("BibleTime" );
	QString content;
	content = make_file_icon("bibletime");
	content += "&nbsp;&nbsp;";
	content += make_bold("BibleTime " + make_version());
	content = make_center(content) + make_br();
	content += tr("BibleTime is an easy to use but powerful Bible study tool.");
	content += make_br() + make_br();
	content += tr("We are looking for developers and translators.");
	content += tr("If you would like to join our team, please send an email to [email protected].");
	content += make_br() + make_br();
	content += tr("(c)1999-2009, The BibleTime Team");
	content += make_br();
	content += make_link("http://www.bibletime.info","http://www.bibletime.info");
	QString bibletime = make_html(make_head("") + make_body(content));
	setHtml(bibletime);
}
void BtAboutDialog::init_qt_tab()
{
	selectTab(3);
	setTabText("Qt");
	QString content;
	content += make_br() + make_br();
	content += make_center(make_bold("Qt"));
	content += make_br();
	content += tr("This program uses Qt Open Source Edition version ");
	content += qVersion();
	content += make_br() + make_br();
	content += tr("Qt Open Source Edition is intended for the development of Open Source applications.");
	content += tr("Qt is a C++ toolkit for cross-platform application development.");
	content += make_br() + make_br();
	content += tr("Please see ");
	content += make_link("http://qtsoftware.com/company/model/","qtsoftware.com/company/model");
	content += tr(" for an overview of Qt licensing.");
	QString qt = make_html(make_head("") + make_body(content));
	setHtml(qt);
}
Esempio n. 8
0
struct bodyNode* body()
{
	struct bodyNode* bod;

	ttype = getToken();
	//printf("LBRACE %d\n", ttype);
	if (ttype == LBRACE)
	{	
		bod = make_body();
		bod->stmt_list = stmt_list();
		if (ttype == RBRACE)
		{	
			return bod;
		}	
		else
		{	
			return NULL;
		}
	} 
	else
	{	
		return NULL; 
	}
}