Freeciv21
Develop your civilization from humble roots to a global empire
view_research.cpp File Reference
#include <QComboBox>
#include <QGridLayout>
#include <QMouseEvent>
#include <QPainter>
#include <QPushButton>
#include <QScrollArea>
#include <QStringLiteral>
#include <QTimer>
#include <QToolButton>
#include <QToolTip>
#include "fc_types.h"
#include "game.h"
#include "government.h"
#include "icons.h"
#include "research.h"
#include "citydlg.h"
#include "client_main.h"
#include "climisc.h"
#include "fc_client.h"
#include "helpdlg.h"
#include "page_game.h"
#include "text.h"
#include "tileset/sprite.h"
#include "tooltips.h"
#include "top_bar.h"
#include "views/view_research.h"
#include "views/view_research_reqtree.h"
+ Include dependency graph for view_research.cpp:

Go to the source code of this file.

Functions

QString split_text (const QString &text, bool cut)
 Splits long text to 80 characters. More...
 
QString cut_helptext (const QString &text)
 Remove some text from given text(help text) to show as tooltip. More...
 
QString get_tooltip_improvement (impr_type *building, struct city *pcity, bool ext)
 
QString get_tooltip_unit (struct unit_type *unit, bool ext)
 
bool comp_less_than (const qlist_item &q1, const qlist_item &q2)
 Compare unit_items (used for techs) by name. More...
 
void real_science_report_dialog_update (void *unused)
 Update the science report. More...
 
void popdown_science_report ()
 Closes science report. More...
 
void science_report_dialog_redraw (void)
 Resize and redraw the requirement tree. More...
 
void science_report_dialog_popup (bool raise)
 Display the science report. More...
 

Function Documentation

◆ comp_less_than()

bool comp_less_than ( const qlist_item q1,
const qlist_item q2 
)

Compare unit_items (used for techs) by name.

Definition at line 58 of file view_research.cpp.

Referenced by top_bar_right_click_science(), and science_report::update_report().

◆ cut_helptext()

QString cut_helptext ( const QString &  text)

Remove some text from given text(help text) to show as tooltip.

Definition at line 87 of file optiondlg.cpp.

Referenced by research_diagram::mouseMoveEvent().

◆ get_tooltip_improvement()

QString get_tooltip_improvement ( impr_type building,
struct city pcity,
bool  ext 
)

◆ get_tooltip_unit()

QString get_tooltip_unit ( struct unit_type unit,
bool  ext 
)

◆ popdown_science_report()

void popdown_science_report ( )

Closes science report.

Definition at line 726 of file view_research.cpp.

Referenced by popdown_all_game_dialogs().

◆ real_science_report_dialog_update()

void real_science_report_dialog_update ( void *  unused)

Update the science report.

Definition at line 660 of file view_research.cpp.

Referenced by fc_client::current_page(), gui_qt_apply_font(), and science_report_dialog_update().

◆ science_report_dialog_popup()

void science_report_dialog_popup ( bool  raise)

Display the science report.

Optionally raise it. Typically triggered by F6.

Definition at line 764 of file view_research.cpp.

Referenced by handle_research_info(), and mr_menu::slot_show_research_tab().

◆ science_report_dialog_redraw()

void science_report_dialog_redraw ( void  )

Resize and redraw the requirement tree.

Definition at line 744 of file view_research.cpp.

Referenced by handle_research_info().

◆ split_text()

QString split_text ( const QString &  text,
bool  cut 
)

Splits long text to 80 characters.

Definition at line 45 of file optiondlg.cpp.

Referenced by option_dialog::add_option(), and research_diagram::mouseMoveEvent().